corestate

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	Synced                       bool
	CurrentProtocolVersion       int32
	CoreSupportedProtocolVersion int32
	CoreVersion                  string
}

type Store

type Store struct {
	sync.RWMutex

	// metrics
	Metrics struct {
		CoreSynced                   prometheus.GaugeFunc
		CoreSupportedProtocolVersion prometheus.GaugeFunc
	}
	// contains filtered or unexported fields
}

func (*Store) Get

func (c *Store) Get() State

func (*Store) RegisterMetrics

func (c *Store) RegisterMetrics(registry *prometheus.Registry)

func (*Store) Set

func (c *Store) Set(resp *diamcirclecore.InfoResponse)

func (*Store) SetState

func (c *Store) SetState(state State)

Jump to

Keyboard shortcuts

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