handler

package
v3.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-micro source: handler.proto

Code generated by protoc-gen-micro source: handler.proto

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMeterEndpoints

func NewMeterEndpoints() []*api.Endpoint

func RegisterMeterServer

func RegisterMeterServer(s server.Server, sh MeterServer, opts ...server.HandlerOption) error

Types

type Handler added in v3.3.17

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

func NewHandler added in v3.2.26

func NewHandler(opts ...Option) *Handler

func (*Handler) Metrics added in v3.3.17

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

type MeterServer

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

type Option added in v3.3.9

type Option func(*Options)

func Meter added in v3.3.9

func Meter(m meter.Meter) Option

func MeterOptions added in v3.3.9

func MeterOptions(opts ...meter.Option) Option

func Name added in v3.3.9

func Name(name string) Option

type Options added in v3.3.9

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

func NewOptions added in v3.3.9

func NewOptions(opts ...Option) Options

Jump to

Keyboard shortcuts

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