Documentation ¶
Overview ¶
Package isp is a generated protocol buffer package.
It is generated from these files:
proto/backend_service.proto
It has these top-level messages:
Package isp is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterBackendServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBackendServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BackendServiceClient) error
- func RegisterBackendServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBackendServiceServer(s *grpc.Server, srv BackendServiceServer)
- type BackendServiceClient
- type BackendServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBackendServiceHandler ¶
func RegisterBackendServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterBackendServiceHandler registers the http handlers for service BackendService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBackendServiceHandlerClient ¶
func RegisterBackendServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BackendServiceClient) error
RegisterBackendServiceHandler registers the http handlers for service BackendService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BackendServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BackendServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BackendServiceClient" to call the correct interceptors.
func RegisterBackendServiceHandlerFromEndpoint ¶
func RegisterBackendServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBackendServiceHandlerFromEndpoint is same as RegisterBackendServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBackendServiceServer ¶
func RegisterBackendServiceServer(s *grpc.Server, srv BackendServiceServer)
Types ¶
type BackendServiceClient ¶
type BackendServiceClient interface { // ===== SYSTEM ===== Request(ctx context.Context, in *google_protobuf1.Struct, opts ...grpc.CallOption) (*google_protobuf1.Struct, error) Requests(ctx context.Context, in *google_protobuf1.Struct, opts ...grpc.CallOption) (*google_protobuf1.ListValue, error) }
func NewBackendServiceClient ¶
func NewBackendServiceClient(cc *grpc.ClientConn) BackendServiceClient
type BackendServiceServer ¶
type BackendServiceServer interface { // ===== SYSTEM ===== Request(context.Context, *google_protobuf1.Struct) (*google_protobuf1.Struct, error) Requests(context.Context, *google_protobuf1.Struct) (*google_protobuf1.ListValue, error) }