Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_app_metrics_config_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Tag of the outbound handler that handles metrics http connections. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` // contains filtered or unexported fields }
Config is the settings for metrics.
func (*Config) Descriptor
deprecated
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type MetricsHandler ¶
type MetricsHandler struct {
// contains filtered or unexported fields
}
func NewMetricsHandler ¶
func NewMetricsHandler(ctx context.Context, config *Config) (*MetricsHandler, error)
NewMetricsHandler creates a new MetricsHandler based on the given config.
func (*MetricsHandler) Close ¶
func (p *MetricsHandler) Close() error
func (*MetricsHandler) Start ¶
func (p *MetricsHandler) Start() error
func (*MetricsHandler) Type ¶
func (p *MetricsHandler) Type() interface{}
type Outbound ¶
type Outbound struct {
// contains filtered or unexported fields
}
Outbound is an outbound.Handler that handles metrics http connections.
type OutboundListener ¶
type OutboundListener struct {
// contains filtered or unexported fields
}
OutboundListener is a net.Listener for listening metrics http connections.
func (*OutboundListener) Accept ¶
func (l *OutboundListener) Accept() (net.Conn, error)
Accept implements net.Listener.
func (*OutboundListener) Addr ¶
func (l *OutboundListener) Addr() net.Addr
Addr implements net.Listener.
func (*OutboundListener) Close ¶
func (l *OutboundListener) Close() error
Close implement net.Listener.
Click to show internal directories.
Click to hide internal directories.