diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-10-18 15:06:33 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-10-20 10:33:10 +0900 |
commit | a88e0b5592b5f344981983d91f4f55a6d3f002bf (patch) | |
tree | 2fb183724091e4c1b2e2e6b70179821ea9c4b0fe /server/grpc_server.go | |
parent | 7cb50ce1cfdf959a74dad516ef65a6c6c34aaec8 (diff) |
api: support statement modification via grpc
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/grpc_server.go')
-rw-r--r-- | server/grpc_server.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/grpc_server.go b/server/grpc_server.go index 6753417b..d68ecd96 100644 --- a/server/grpc_server.go +++ b/server/grpc_server.go @@ -62,6 +62,7 @@ const ( REQ_DEFINED_SET REQ_MOD_DEFINED_SET REQ_STATEMENT + REQ_MOD_STATEMENT ) const GRPC_PORT = 8080 @@ -481,6 +482,10 @@ func (s *Server) GetStatements(arg *api.Statement, stream api.GobgpApi_GetStatem }) } +func (s *Server) ModStatement(ctx context.Context, arg *api.ModStatementArguments) (*api.Error, error) { + return s.mod(REQ_MOD_STATEMENT, arg) +} + type GrpcRequest struct { RequestType int Name string |