Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterSecretHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSecretHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.SecretClient) error
- func RegisterSecretHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSecretHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.SecretServer) error
- func RegisterTrustedSecretHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTrustedSecretHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.TrustedSecretClient) error
- func RegisterTrustedSecretHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTrustedSecretHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.TrustedSecretServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSecretHandler ¶
RegisterSecretHandler registers the http handlers for service Secret to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSecretHandlerClient ¶
func RegisterSecretHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.SecretClient) error
RegisterSecretHandlerClient registers the http handlers for service Secret to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extV1.SecretClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extV1.SecretClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "extV1.SecretClient" to call the correct interceptors.
func RegisterSecretHandlerFromEndpoint ¶
func RegisterSecretHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSecretHandlerFromEndpoint is same as RegisterSecretHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSecretHandlerServer ¶
func RegisterSecretHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.SecretServer) error
RegisterSecretHandlerServer registers the http handlers for service Secret to "mux". UnaryRPC :call SecretServer 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 RegisterSecretHandlerFromEndpoint instead.
func RegisterTrustedSecretHandler ¶
func RegisterTrustedSecretHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterTrustedSecretHandler registers the http handlers for service TrustedSecret to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTrustedSecretHandlerClient ¶
func RegisterTrustedSecretHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.TrustedSecretClient) error
RegisterTrustedSecretHandlerClient registers the http handlers for service TrustedSecret to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extV1.TrustedSecretClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extV1.TrustedSecretClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "extV1.TrustedSecretClient" to call the correct interceptors.
func RegisterTrustedSecretHandlerFromEndpoint ¶
func RegisterTrustedSecretHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTrustedSecretHandlerFromEndpoint is same as RegisterTrustedSecretHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTrustedSecretHandlerServer ¶
func RegisterTrustedSecretHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.TrustedSecretServer) error
RegisterTrustedSecretHandlerServer registers the http handlers for service TrustedSecret to "mux". UnaryRPC :call TrustedSecretServer 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 RegisterTrustedSecretHandlerFromEndpoint instead.
Types ¶
This section is empty.