Documentation ¶
Index ¶
- Constants
- func NewReadOnlyServiceHandler(svc ReadOnlyServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- func NewReadWriteServiceHandler(svc ReadWriteServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
- type ReadOnlyServiceClient
- type ReadOnlyServiceHandler
- type ReadWriteServiceClient
- type ReadWriteServiceHandler
- type UnimplementedReadOnlyServiceHandler
- type UnimplementedReadWriteServiceHandler
Constants ¶
const ( // ReadOnlyServiceName is the fully-qualified name of the ReadOnlyService service. ReadOnlyServiceName = "clconnect.v1.ReadOnlyService" // ReadWriteServiceName is the fully-qualified name of the ReadWriteService service. ReadWriteServiceName = "clconnect.v1.ReadWriteService" )
Variables ¶
This section is empty.
Functions ¶
func NewReadOnlyServiceHandler ¶
func NewReadOnlyServiceHandler(svc ReadOnlyServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewReadOnlyServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
func NewReadWriteServiceHandler ¶
func NewReadWriteServiceHandler(svc ReadWriteServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)
NewReadWriteServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type ReadOnlyServiceClient ¶
type ReadOnlyServiceClient interface { }
ReadOnlyServiceClient is a client for the clconnect.v1.ReadOnlyService service.
func NewReadOnlyServiceClient ¶
func NewReadOnlyServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ReadOnlyServiceClient
NewReadOnlyServiceClient constructs a client for the clconnect.v1.ReadOnlyService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type ReadOnlyServiceHandler ¶
type ReadOnlyServiceHandler interface { }
ReadOnlyServiceHandler is an implementation of the clconnect.v1.ReadOnlyService service.
type ReadWriteServiceClient ¶
type ReadWriteServiceClient interface { }
ReadWriteServiceClient is a client for the clconnect.v1.ReadWriteService service.
func NewReadWriteServiceClient ¶
func NewReadWriteServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ReadWriteServiceClient
NewReadWriteServiceClient constructs a client for the clconnect.v1.ReadWriteService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type ReadWriteServiceHandler ¶
type ReadWriteServiceHandler interface { }
ReadWriteServiceHandler is an implementation of the clconnect.v1.ReadWriteService service.
type UnimplementedReadOnlyServiceHandler ¶
type UnimplementedReadOnlyServiceHandler struct{}
UnimplementedReadOnlyServiceHandler returns CodeUnimplemented from all methods.
type UnimplementedReadWriteServiceHandler ¶
type UnimplementedReadWriteServiceHandler struct{}
UnimplementedReadWriteServiceHandler returns CodeUnimplemented from all methods.