Documentation ¶
Index ¶
- Constants
- func BuildParamKey(paramSpace string, key []byte) []byte
- type Mapper
- func (mapper *Mapper) Copy() mapper.IMapper
- func (mapper Mapper) GetModuleParamSet(module string) (set qtypes.ParamSet, exists bool)
- func (mapper Mapper) GetModuleParams(module string) (set qtypes.ParamSet, exists bool)
- func (mapper Mapper) GetParam(paramSpace string, key string) (value interface{}, exists bool)
- func (mapper Mapper) GetParamSet(params qtypes.ParamSet)
- func (mapper Mapper) GetParams() (params []qtypes.ParamSet)
- func (mapper Mapper) RegisterParamSet(ps ...qtypes.ParamSet)
- func (mapper Mapper) SetParam(paramSpace string, key string, value interface{})
- func (mapper Mapper) SetParamSet(params qtypes.ParamSet)
- func (mapper *Mapper) SetUpMetrics(cfg *config.InstrumentationConfig)
- func (mapper Mapper) UpdateMetrics(paramSpace, key string, value interface{})
- func (mapper Mapper) Validate(paramSpace string, key string, value string) btypes.Error
- type Metrics
Constants ¶
View Source
const ( MetricsSubsystem = "params" ParamLabel = "key" )
View Source
const MapperName = "params"
Variables ¶
This section is empty.
Functions ¶
func BuildParamKey ¶
Types ¶
type Mapper ¶
type Mapper struct { *mapper.BaseMapper Metrics *Metrics // contains filtered or unexported fields }
参数存储操作
func (Mapper) GetModuleParamSet ¶
获取模块参数结构,并非保存在数据库中参数数据
func (Mapper) GetModuleParams ¶
获取模块参数集
func (*Mapper) SetUpMetrics ¶ added in v0.0.8
func (mapper *Mapper) SetUpMetrics(cfg *config.InstrumentationConfig)
设置prometheus监控项
func (Mapper) UpdateMetrics ¶ added in v0.0.8
metrics
type Metrics ¶ added in v0.0.8
func NopMetrics ¶ added in v0.0.8
func NopMetrics() *Metrics
func PrometheusMetrics ¶ added in v0.0.8
func PrometheusMetrics(cfg *config.InstrumentationConfig) *Metrics
Click to show internal directories.
Click to hide internal directories.