corestate

package
v0.0.0-...-3a1fdf7 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0, 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 *stellarcore.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