monitor

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_monitor_monitor_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CompletedConfig

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

func (CompletedConfig) Apply

func (c CompletedConfig) Apply(ctx context.Context) error

type Config

type Config struct {
	Proto Monitor
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(options ...ConfigOption) *Config

func (*Config) ApplyOptions

func (o *Config) ApplyOptions(options ...ConfigOption) *Config

func (*Config) Complete

func (c *Config) Complete() CompletedConfig

Complete set default ServerRunOptions.

type ConfigOption

type ConfigOption interface {
	// contains filtered or unexported methods
}

A ConfigOption sets options.

func WithViper

func WithViper(v *viper.Viper) ConfigOption

type ConfigOptionFunc

type ConfigOptionFunc func(*Config)

ConfigOptionFunc wraps a function that modifies Client into an implementation of the ConfigOption interface.

type EmptyConfigOption

type EmptyConfigOption struct{}

EmptyConfigOption does not alter the configuration. It can be embedded in another structure to build custom options.

This API is EXPERIMENTAL.

type Monitor

type Monitor struct {
	Prometheus *Monitor_Prometheus `protobuf:"bytes,1,opt,name=prometheus,proto3" json:"prometheus,omitempty"`
	// contains filtered or unexported fields
}

func (*Monitor) Descriptor deprecated

func (*Monitor) Descriptor() ([]byte, []int)

Deprecated: Use Monitor.ProtoReflect.Descriptor instead.

func (*Monitor) GetPrometheus

func (x *Monitor) GetPrometheus() *Monitor_Prometheus

func (*Monitor) ProtoMessage

func (*Monitor) ProtoMessage()

func (*Monitor) ProtoReflect

func (x *Monitor) ProtoReflect() protoreflect.Message

func (*Monitor) Reset

func (x *Monitor) Reset()

func (*Monitor) String

func (x *Monitor) String() string

type Monitor_Prometheus

type Monitor_Prometheus struct {
	EnabledMetricTimerCost   bool `` /* 132-byte string literal not displayed */
	EnabledMetricCodeMessage bool `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Monitor_Prometheus) Descriptor deprecated

func (*Monitor_Prometheus) Descriptor() ([]byte, []int)

Deprecated: Use Monitor_Prometheus.ProtoReflect.Descriptor instead.

func (*Monitor_Prometheus) GetEnabledMetricCodeMessage

func (x *Monitor_Prometheus) GetEnabledMetricCodeMessage() bool

func (*Monitor_Prometheus) GetEnabledMetricTimerCost

func (x *Monitor_Prometheus) GetEnabledMetricTimerCost() bool

func (*Monitor_Prometheus) ProtoMessage

func (*Monitor_Prometheus) ProtoMessage()

func (*Monitor_Prometheus) ProtoReflect

func (x *Monitor_Prometheus) ProtoReflect() protoreflect.Message

func (*Monitor_Prometheus) Reset

func (x *Monitor_Prometheus) Reset()

func (*Monitor_Prometheus) String

func (x *Monitor_Prometheus) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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