Documentation ¶
Overview ¶
Package operatorservice is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterOperatorServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterOperatorServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OperatorServiceClient) error
- func RegisterOperatorServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterOperatorServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OperatorServiceServer) error
- func RegisterOperatorServiceServer(s *grpc.Server, srv OperatorServiceServer)
- type OperatorServiceClient
- type OperatorServiceServer
- type UnimplementedOperatorServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterOperatorServiceHandler ¶
func RegisterOperatorServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterOperatorServiceHandler registers the http handlers for service OperatorService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterOperatorServiceHandlerClient ¶
func RegisterOperatorServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OperatorServiceClient) error
RegisterOperatorServiceHandlerClient registers the http handlers for service OperatorService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "OperatorServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "OperatorServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "OperatorServiceClient" to call the correct interceptors.
func RegisterOperatorServiceHandlerFromEndpoint ¶
func RegisterOperatorServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterOperatorServiceHandlerFromEndpoint is same as RegisterOperatorServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterOperatorServiceHandlerServer ¶
func RegisterOperatorServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OperatorServiceServer) error
RegisterOperatorServiceHandlerServer registers the http handlers for service OperatorService to "mux". UnaryRPC :call OperatorServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterOperatorServiceHandlerFromEndpoint instead.
func RegisterOperatorServiceServer ¶
func RegisterOperatorServiceServer(s *grpc.Server, srv OperatorServiceServer)
Types ¶
type OperatorServiceClient ¶
type OperatorServiceClient interface { // ListSearchAttributes returns comprehensive information about search attributes. ListSearchAttributes(ctx context.Context, in *v1.ListSearchAttributesRequest, opts ...grpc.CallOption) (*v1.ListSearchAttributesResponse, error) }
OperatorServiceClient is the client API for OperatorService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewOperatorServiceClient ¶
func NewOperatorServiceClient(cc grpc.ClientConnInterface) OperatorServiceClient
type OperatorServiceServer ¶
type OperatorServiceServer interface { // ListSearchAttributes returns comprehensive information about search attributes. ListSearchAttributes(context.Context, *v1.ListSearchAttributesRequest) (*v1.ListSearchAttributesResponse, error) }
OperatorServiceServer is the server API for OperatorService service.
type UnimplementedOperatorServiceServer ¶
type UnimplementedOperatorServiceServer struct { }
UnimplementedOperatorServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedOperatorServiceServer) ListSearchAttributes ¶
func (*UnimplementedOperatorServiceServer) ListSearchAttributes(ctx context.Context, req *v1.ListSearchAttributesRequest) (*v1.ListSearchAttributesResponse, error)