governance

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GovMetrics

type GovMetrics struct {
	Address sdk.AccAddress
	// contains filtered or unexported fields
}

Metrics contains metrics exposed by this package.

func NewGovMetrics

func NewGovMetrics() GovMetrics

type Metrics

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

func PrometheusMetrics

func PrometheusMetrics() *Metrics

PrometheusMetrics returns Metrics build using Prometheus client library.

func (*Metrics) RecordMetrics

func (gov *Metrics) RecordMetrics(ctx context.CLIContext, cdc *codec.Codec)

func (*Metrics) SetAddress

func (gov *Metrics) SetAddress(addr_str string)

func (*Metrics) Start

func (gov *Metrics) Start(ctx context.CLIContext)

Jump to

Keyboard shortcuts

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