Documentation
¶
Index ¶
- Constants
- func KeyGuardian(address btypes.AccAddress) []byte
- func KeyGuardiansSubspace() []byte
- type Mapper
- func (mapper Mapper) AddGuardian(guardian types.Guardian)
- func (mapper *Mapper) Copy() mapper.IMapper
- func (mapper Mapper) DeleteGuardian(address btypes.AccAddress)
- func (mapper Mapper) GetGuardian(address btypes.AccAddress) (guardian types.Guardian, exists bool)
- func (mapper Mapper) GetHalt() (string, bool)
- func (mapper Mapper) GuardiansIterator() store.Iterator
- func (mapper Mapper) SetHalt(reason string)
- func (mapper *Mapper) SetUpMetrics(cfg *config.InstrumentationConfig)
- type Metrics
Constants ¶
View Source
const ( MetricsSubsystem = "guardian" OperationLabel = "operation" AddressLabel = "address" )
View Source
const (
MapperName = "guardian"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mapper ¶
type Mapper struct { *mapper.BaseMapper Metrics *Metrics }
系统账户模块数据库操作
func (Mapper) DeleteGuardian ¶
func (mapper Mapper) DeleteGuardian(address btypes.AccAddress)
删除系统账户
func (Mapper) GetGuardian ¶
获取系统账户
func (*Mapper) SetUpMetrics ¶ added in v0.0.8
func (mapper *Mapper) SetUpMetrics(cfg *config.InstrumentationConfig)
设置prometheus监控项
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.