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 RegisterDomainConfigHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterDomainConfigHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.DomainConfigClient) error
- func RegisterDomainConfigHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterDomainConfigHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.DomainConfigServer) error
- func RegisterUserConfigHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserConfigHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.UserConfigClient) error
- func RegisterUserConfigHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserConfigHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.UserConfigServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDomainConfigHandler ¶
func RegisterDomainConfigHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterDomainConfigHandler registers the http handlers for service DomainConfig to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterDomainConfigHandlerClient ¶
func RegisterDomainConfigHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.DomainConfigClient) error
RegisterDomainConfigHandlerClient registers the http handlers for service DomainConfig to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extV1.DomainConfigClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extV1.DomainConfigClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "extV1.DomainConfigClient" to call the correct interceptors.
func RegisterDomainConfigHandlerFromEndpoint ¶
func RegisterDomainConfigHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterDomainConfigHandlerFromEndpoint is same as RegisterDomainConfigHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterDomainConfigHandlerServer ¶
func RegisterDomainConfigHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.DomainConfigServer) error
RegisterDomainConfigHandlerServer registers the http handlers for service DomainConfig to "mux". UnaryRPC :call DomainConfigServer 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 RegisterDomainConfigHandlerFromEndpoint instead.
func RegisterUserConfigHandler ¶
func RegisterUserConfigHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterUserConfigHandler registers the http handlers for service UserConfig to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUserConfigHandlerClient ¶
func RegisterUserConfigHandlerClient(ctx context.Context, mux *runtime.ServeMux, client extV1.UserConfigClient) error
RegisterUserConfigHandlerClient registers the http handlers for service UserConfig to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "extV1.UserConfigClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "extV1.UserConfigClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "extV1.UserConfigClient" to call the correct interceptors.
func RegisterUserConfigHandlerFromEndpoint ¶
func RegisterUserConfigHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUserConfigHandlerFromEndpoint is same as RegisterUserConfigHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUserConfigHandlerServer ¶
func RegisterUserConfigHandlerServer(ctx context.Context, mux *runtime.ServeMux, server extV1.UserConfigServer) error
RegisterUserConfigHandlerServer registers the http handlers for service UserConfig to "mux". UnaryRPC :call UserConfigServer 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 RegisterUserConfigHandlerFromEndpoint instead.
Types ¶
This section is empty.