meter

package
v4.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MeterServiceName = "MeterService"
)
View Source
var (
	MeterServiceServerEndpoints = []v4.EndpointMetadata{
		{
			Name:   "MeterService.Metrics",
			Path:   "/metrics",
			Method: "GET",
			Body:   "",
			Stream: false,
		},
	}
)

Functions

func RegisterMeterServiceServer

func RegisterMeterServiceServer(s server.Server, sh MeterServiceServer, opts ...options.Option) error

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(opts ...Option) *Handler

func (*Handler) Metrics

func (h *Handler) Metrics(ctx context.Context, req *codecpb.Frame, rsp *codecpb.Frame) error

type MeterServiceServer

type MeterServiceServer interface {
	Metrics(ctx context.Context, req *codec.Frame, rsp *codec.Frame) error
}

type Option

type Option func(*Options)

func Meter

func Meter(m meter.Meter) Option

func MeterOptions

func MeterOptions(opts ...options.Option) Option

func Name

func Name(name string) Option

type Options

type Options struct {
	Meter        meter.Meter
	Name         string
	MeterOptions []options.Option
}

func NewOptions

func NewOptions(opts ...Option) Options

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL