Documentation ¶
Index ¶
- Variables
- type CompletedConfig
- type Config
- type ConfigOption
- type ConfigOptionFunc
- type EmptyConfigOption
- type Monitor
- type Monitor_Prometheus
- func (*Monitor_Prometheus) Descriptor() ([]byte, []int)deprecated
- func (x *Monitor_Prometheus) GetEnabledMetricCodeMessage() bool
- func (x *Monitor_Prometheus) GetEnabledMetricTimerCost() bool
- func (*Monitor_Prometheus) ProtoMessage()
- func (x *Monitor_Prometheus) ProtoReflect() protoreflect.Message
- func (x *Monitor_Prometheus) Reset()
- func (x *Monitor_Prometheus) String() string
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
}
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) GetPrometheus ¶
func (x *Monitor) GetPrometheus() *Monitor_Prometheus
func (*Monitor) ProtoMessage ¶
func (*Monitor) ProtoMessage()
func (*Monitor) ProtoReflect ¶
func (x *Monitor) ProtoReflect() protoreflect.Message
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
Click to show internal directories.
Click to hide internal directories.