Documentation ¶
Index ¶
- Constants
- func NewStoreGatewayServiceHandler(svc StoreGatewayServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- func RegisterStoreGatewayServiceHandler(mux *mux.Router, svc StoreGatewayServiceHandler, ...)
- type StoreGatewayServiceClient
- type StoreGatewayServiceHandler
- type UnimplementedStoreGatewayServiceHandler
Constants ¶
const (
// StoreGatewayServiceName is the fully-qualified name of the StoreGatewayService service.
StoreGatewayServiceName = "storegateway.v1.StoreGatewayService"
)
Variables ¶
This section is empty.
Functions ¶
func NewStoreGatewayServiceHandler ¶
func NewStoreGatewayServiceHandler(svc StoreGatewayServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewStoreGatewayServiceHandler 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 RegisterStoreGatewayServiceHandler ¶
func RegisterStoreGatewayServiceHandler(mux *mux.Router, svc StoreGatewayServiceHandler, opts ...connect_go.HandlerOption)
RegisterStoreGatewayServiceHandler register an HTTP handler to a mux.Router from the service implementation.
Types ¶
type StoreGatewayServiceClient ¶
type StoreGatewayServiceClient interface { MergeProfilesStacktraces(context.Context) *connect_go.BidiStreamForClient[v1.MergeProfilesStacktracesRequest, v1.MergeProfilesStacktracesResponse] MergeProfilesLabels(context.Context) *connect_go.BidiStreamForClient[v1.MergeProfilesLabelsRequest, v1.MergeProfilesLabelsResponse] MergeProfilesPprof(context.Context) *connect_go.BidiStreamForClient[v1.MergeProfilesPprofRequest, v1.MergeProfilesPprofResponse] }
StoreGatewayServiceClient is a client for the storegateway.v1.StoreGatewayService service.
func NewStoreGatewayServiceClient ¶
func NewStoreGatewayServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) StoreGatewayServiceClient
NewStoreGatewayServiceClient constructs a client for the storegateway.v1.StoreGatewayService 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 StoreGatewayServiceHandler ¶
type StoreGatewayServiceHandler interface { MergeProfilesStacktraces(context.Context, *connect_go.BidiStream[v1.MergeProfilesStacktracesRequest, v1.MergeProfilesStacktracesResponse]) error MergeProfilesLabels(context.Context, *connect_go.BidiStream[v1.MergeProfilesLabelsRequest, v1.MergeProfilesLabelsResponse]) error MergeProfilesPprof(context.Context, *connect_go.BidiStream[v1.MergeProfilesPprofRequest, v1.MergeProfilesPprofResponse]) error }
StoreGatewayServiceHandler is an implementation of the storegateway.v1.StoreGatewayService service.
type UnimplementedStoreGatewayServiceHandler ¶
type UnimplementedStoreGatewayServiceHandler struct{}
UnimplementedStoreGatewayServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedStoreGatewayServiceHandler) MergeProfilesLabels ¶
func (UnimplementedStoreGatewayServiceHandler) MergeProfilesLabels(context.Context, *connect_go.BidiStream[v1.MergeProfilesLabelsRequest, v1.MergeProfilesLabelsResponse]) error
func (UnimplementedStoreGatewayServiceHandler) MergeProfilesPprof ¶
func (UnimplementedStoreGatewayServiceHandler) MergeProfilesPprof(context.Context, *connect_go.BidiStream[v1.MergeProfilesPprofRequest, v1.MergeProfilesPprofResponse]) error
func (UnimplementedStoreGatewayServiceHandler) MergeProfilesStacktraces ¶
func (UnimplementedStoreGatewayServiceHandler) MergeProfilesStacktraces(context.Context, *connect_go.BidiStream[v1.MergeProfilesStacktracesRequest, v1.MergeProfilesStacktracesResponse]) error