diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-07-29 00:43:52 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-07-29 00:43:52 +0900 |
commit | af98780240d247f4df352c364002d1d77e71f31e (patch) | |
tree | 96328d3ea91123062588447ac2b0557495e692fa /docs/sources/lib.md | |
parent | 2a552a49b4991fcf765dbbbbd56619256dab96ac (diff) |
move grpc_server.go from server/ to api/
Now all gRPC code was moved to api/.
server/ isn't dependent on gRPC anymore.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'docs/sources/lib.md')
-rw-r--r-- | docs/sources/lib.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/sources/lib.md b/docs/sources/lib.md index 34b0225a..fd4182ca 100644 --- a/docs/sources/lib.md +++ b/docs/sources/lib.md @@ -13,6 +13,7 @@ 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" @@ -27,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 := gobgp.NewGrpcServer(s, ":50051", s.GrpcReqCh) + g := api.NewGrpcServer(s, ":50051") go g.Serve() // global configuration |