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