diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-07-06 15:49:35 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-07-06 23:56:54 +0900 |
commit | e4031c14a5060c4fadf7e3c655bd0f6d7714b634 (patch) | |
tree | 101986ba40d8cd3a5e2cfa8471bbc41b8bada765 /docs | |
parent | 69f866a77cb83db8925fb95fb55d6086fbfe899c (diff) |
api: decrease the dependency
move grpc_server.go to server/
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/sources/lib.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/sources/lib.md b/docs/sources/lib.md index 390a5970..b7b16698 100644 --- a/docs/sources/lib.md +++ b/docs/sources/lib.md @@ -14,7 +14,6 @@ package main import ( "fmt" log "github.com/sirupsen/logrus" - api "github.com/osrg/gobgp/api" "github.com/osrg/gobgp/config" "github.com/osrg/gobgp/packet/bgp" gobgp "github.com/osrg/gobgp/server" @@ -29,7 +28,7 @@ func main() { // start grpc api server. this is not mandatory // but you will be able to use `gobgp` cmd with this. - g := api.NewGrpcServer(s, ":50051") + g := gobgp.NewGrpcServer(s, ":50051") go g.Serve() // global configuration |