Documentation ¶
Index ¶
- Constants
- func NewIngesterServiceHandler(svc IngesterServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- func RegisterIngesterServiceHandler(mux *mux.Router, svc IngesterServiceHandler, opts ...connect_go.HandlerOption)
- type IngesterServiceClient
- type IngesterServiceHandler
- type UnimplementedIngesterServiceHandler
- func (UnimplementedIngesterServiceHandler) Flush(context.Context, *connect_go.Request[v11.FlushRequest]) (*connect_go.Response[v11.FlushResponse], error)
- func (UnimplementedIngesterServiceHandler) LabelNames(context.Context, *connect_go.Request[v11.LabelNamesRequest]) (*connect_go.Response[v11.LabelNamesResponse], error)
- func (UnimplementedIngesterServiceHandler) LabelValues(context.Context, *connect_go.Request[v11.LabelValuesRequest]) (*connect_go.Response[v11.LabelValuesResponse], error)
- func (UnimplementedIngesterServiceHandler) MergeProfilesLabels(context.Context, ...) error
- func (UnimplementedIngesterServiceHandler) MergeProfilesPprof(context.Context, ...) error
- func (UnimplementedIngesterServiceHandler) MergeProfilesStacktraces(context.Context, ...) error
- func (UnimplementedIngesterServiceHandler) ProfileTypes(context.Context, *connect_go.Request[v11.ProfileTypesRequest]) (*connect_go.Response[v11.ProfileTypesResponse], error)
- func (UnimplementedIngesterServiceHandler) Push(context.Context, *connect_go.Request[v1.PushRequest]) (*connect_go.Response[v1.PushResponse], error)
- func (UnimplementedIngesterServiceHandler) Series(context.Context, *connect_go.Request[v11.SeriesRequest]) (*connect_go.Response[v11.SeriesResponse], error)
Constants ¶
const (
// IngesterServiceName is the fully-qualified name of the IngesterService service.
IngesterServiceName = "ingester.v1.IngesterService"
)
Variables ¶
This section is empty.
Functions ¶
func NewIngesterServiceHandler ¶
func NewIngesterServiceHandler(svc IngesterServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewIngesterServiceHandler 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 RegisterIngesterServiceHandler ¶
func RegisterIngesterServiceHandler(mux *mux.Router, svc IngesterServiceHandler, opts ...connect_go.HandlerOption)
RegisterIngesterServiceHandler register an HTTP handler to a mux.Router from the service implementation.
Types ¶
type IngesterServiceClient ¶
type IngesterServiceClient interface { Push(context.Context, *connect_go.Request[v1.PushRequest]) (*connect_go.Response[v1.PushResponse], error) LabelValues(context.Context, *connect_go.Request[v11.LabelValuesRequest]) (*connect_go.Response[v11.LabelValuesResponse], error) LabelNames(context.Context, *connect_go.Request[v11.LabelNamesRequest]) (*connect_go.Response[v11.LabelNamesResponse], error) ProfileTypes(context.Context, *connect_go.Request[v11.ProfileTypesRequest]) (*connect_go.Response[v11.ProfileTypesResponse], error) Series(context.Context, *connect_go.Request[v11.SeriesRequest]) (*connect_go.Response[v11.SeriesResponse], error) Flush(context.Context, *connect_go.Request[v11.FlushRequest]) (*connect_go.Response[v11.FlushResponse], error) MergeProfilesStacktraces(context.Context) *connect_go.BidiStreamForClient[v11.MergeProfilesStacktracesRequest, v11.MergeProfilesStacktracesResponse] MergeProfilesLabels(context.Context) *connect_go.BidiStreamForClient[v11.MergeProfilesLabelsRequest, v11.MergeProfilesLabelsResponse] MergeProfilesPprof(context.Context) *connect_go.BidiStreamForClient[v11.MergeProfilesPprofRequest, v11.MergeProfilesPprofResponse] }
IngesterServiceClient is a client for the ingester.v1.IngesterService service.
func NewIngesterServiceClient ¶
func NewIngesterServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) IngesterServiceClient
NewIngesterServiceClient constructs a client for the ingester.v1.IngesterService 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 IngesterServiceHandler ¶
type IngesterServiceHandler interface { Push(context.Context, *connect_go.Request[v1.PushRequest]) (*connect_go.Response[v1.PushResponse], error) LabelValues(context.Context, *connect_go.Request[v11.LabelValuesRequest]) (*connect_go.Response[v11.LabelValuesResponse], error) LabelNames(context.Context, *connect_go.Request[v11.LabelNamesRequest]) (*connect_go.Response[v11.LabelNamesResponse], error) ProfileTypes(context.Context, *connect_go.Request[v11.ProfileTypesRequest]) (*connect_go.Response[v11.ProfileTypesResponse], error) Series(context.Context, *connect_go.Request[v11.SeriesRequest]) (*connect_go.Response[v11.SeriesResponse], error) Flush(context.Context, *connect_go.Request[v11.FlushRequest]) (*connect_go.Response[v11.FlushResponse], error) MergeProfilesStacktraces(context.Context, *connect_go.BidiStream[v11.MergeProfilesStacktracesRequest, v11.MergeProfilesStacktracesResponse]) error MergeProfilesLabels(context.Context, *connect_go.BidiStream[v11.MergeProfilesLabelsRequest, v11.MergeProfilesLabelsResponse]) error MergeProfilesPprof(context.Context, *connect_go.BidiStream[v11.MergeProfilesPprofRequest, v11.MergeProfilesPprofResponse]) error }
IngesterServiceHandler is an implementation of the ingester.v1.IngesterService service.
type UnimplementedIngesterServiceHandler ¶
type UnimplementedIngesterServiceHandler struct{}
UnimplementedIngesterServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedIngesterServiceHandler) Flush ¶
func (UnimplementedIngesterServiceHandler) Flush(context.Context, *connect_go.Request[v11.FlushRequest]) (*connect_go.Response[v11.FlushResponse], error)
func (UnimplementedIngesterServiceHandler) LabelNames ¶
func (UnimplementedIngesterServiceHandler) LabelNames(context.Context, *connect_go.Request[v11.LabelNamesRequest]) (*connect_go.Response[v11.LabelNamesResponse], error)
func (UnimplementedIngesterServiceHandler) LabelValues ¶
func (UnimplementedIngesterServiceHandler) LabelValues(context.Context, *connect_go.Request[v11.LabelValuesRequest]) (*connect_go.Response[v11.LabelValuesResponse], error)
func (UnimplementedIngesterServiceHandler) MergeProfilesLabels ¶
func (UnimplementedIngesterServiceHandler) MergeProfilesLabels(context.Context, *connect_go.BidiStream[v11.MergeProfilesLabelsRequest, v11.MergeProfilesLabelsResponse]) error
func (UnimplementedIngesterServiceHandler) MergeProfilesPprof ¶ added in v0.1.3
func (UnimplementedIngesterServiceHandler) MergeProfilesPprof(context.Context, *connect_go.BidiStream[v11.MergeProfilesPprofRequest, v11.MergeProfilesPprofResponse]) error
func (UnimplementedIngesterServiceHandler) MergeProfilesStacktraces ¶
func (UnimplementedIngesterServiceHandler) MergeProfilesStacktraces(context.Context, *connect_go.BidiStream[v11.MergeProfilesStacktracesRequest, v11.MergeProfilesStacktracesResponse]) error
func (UnimplementedIngesterServiceHandler) ProfileTypes ¶
func (UnimplementedIngesterServiceHandler) ProfileTypes(context.Context, *connect_go.Request[v11.ProfileTypesRequest]) (*connect_go.Response[v11.ProfileTypesResponse], error)
func (UnimplementedIngesterServiceHandler) Push ¶
func (UnimplementedIngesterServiceHandler) Push(context.Context, *connect_go.Request[v1.PushRequest]) (*connect_go.Response[v1.PushResponse], error)
func (UnimplementedIngesterServiceHandler) Series ¶
func (UnimplementedIngesterServiceHandler) Series(context.Context, *connect_go.Request[v11.SeriesRequest]) (*connect_go.Response[v11.SeriesResponse], error)