Documentation ¶
Overview ¶
Provides interfaces and adapters for the MetricsService service
Generated code. Do not modify by hand.
Index ¶
- Constants
- func MetricsServiceHostServiceClient(client *MetricsService) catalog.HostServiceClient
- func MetricsServiceHostServiceServer(server MetricsServiceServer) catalog.HostServiceServer
- type AddSampleRequest
- type AddSampleResponse
- type EmitKeyRequest
- type EmitKeyResponse
- type IncrCounterRequest
- type IncrCounterResponse
- type Label
- type MeasureSinceRequest
- type MeasureSinceResponse
- type MetricsService
- type MetricsServiceClient
- type MetricsServiceServer
- type SetGaugeRequest
- type SetGaugeResponse
- type UnimplementedMetricsServiceServer
- type UnsafeMetricsServiceServer
Constants ¶
View Source
const (
MetricsServiceType = "MetricsService"
)
Variables ¶
This section is empty.
Functions ¶
func MetricsServiceHostServiceClient ¶
func MetricsServiceHostServiceClient(client *MetricsService) catalog.HostServiceClient
MetricsServiceHostServiceServer returns a catalog HostServiceServer implementation for the MetricsService plugin.
func MetricsServiceHostServiceServer ¶
func MetricsServiceHostServiceServer(server MetricsServiceServer) catalog.HostServiceServer
MetricsServiceHostServiceServer returns a catalog HostServiceServer implementation for the MetricsService plugin.
Types ¶
type AddSampleRequest ¶
type AddSampleRequest = hostservices.AddSampleRequest //nolint: golint
type AddSampleResponse ¶
type AddSampleResponse = hostservices.AddSampleResponse //nolint: golint
type EmitKeyRequest ¶
type EmitKeyRequest = hostservices.EmitKeyRequest //nolint: golint
type EmitKeyResponse ¶
type EmitKeyResponse = hostservices.EmitKeyResponse //nolint: golint
type IncrCounterRequest ¶
type IncrCounterRequest = hostservices.IncrCounterRequest //nolint: golint
type IncrCounterResponse ¶
type IncrCounterResponse = hostservices.IncrCounterResponse //nolint: golint
type Label ¶
type Label = hostservices.Label //nolint: golint
type MeasureSinceRequest ¶
type MeasureSinceRequest = hostservices.MeasureSinceRequest //nolint: golint
type MeasureSinceResponse ¶
type MeasureSinceResponse = hostservices.MeasureSinceResponse //nolint: golint
type MetricsService ¶
type MetricsService interface { AddSample(context.Context, *AddSampleRequest) (*AddSampleResponse, error) EmitKey(context.Context, *EmitKeyRequest) (*EmitKeyResponse, error) IncrCounter(context.Context, *IncrCounterRequest) (*IncrCounterResponse, error) MeasureSince(context.Context, *MeasureSinceRequest) (*MeasureSinceResponse, error) SetGauge(context.Context, *SetGaugeRequest) (*SetGaugeResponse, error) }
MetricsService is the client interface for the service type MetricsService interface.
func AdaptMetricsServiceHostServiceClient ¶
func AdaptMetricsServiceHostServiceClient(client MetricsServiceClient) MetricsService
type MetricsServiceClient ¶
type MetricsServiceClient = hostservices.MetricsServiceClient //nolint: golint
type MetricsServiceServer ¶
type MetricsServiceServer = hostservices.MetricsServiceServer //nolint: golint
type SetGaugeRequest ¶
type SetGaugeRequest = hostservices.SetGaugeRequest //nolint: golint
type SetGaugeResponse ¶
type SetGaugeResponse = hostservices.SetGaugeResponse //nolint: golint
type UnimplementedMetricsServiceServer ¶
type UnimplementedMetricsServiceServer = hostservices.UnimplementedMetricsServiceServer //nolint: golint
type UnsafeMetricsServiceServer ¶ added in v0.12.0
type UnsafeMetricsServiceServer = hostservices.UnsafeMetricsServiceServer //nolint: golint
Click to show internal directories.
Click to hide internal directories.