Documentation ¶
Index ¶
- type GlobalSettings
- type NodeInfo
- func (c *NodeInfo) EventLoop()
- func (c *NodeInfo) GetState(pubKey string, uniqueId string, PollInterval entities.Interval, ...) (*entities.InfoReport, error)
- func (c *NodeInfo) IsSubscribed(pubKey, uniqueId string) bool
- func (c *NodeInfo) OverrideLoopInterval(duration time.Duration)
- func (c *NodeInfo) Subscribe(pubKey string, uniqueId string, PollInterval entities.Interval, ...) error
- func (c *NodeInfo) Unsubscribe(pubkey, uniqueId string) error
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalSettings ¶
type GlobalSettings struct {
// contains filtered or unexported fields
}
func NewGlobalSettings ¶
func NewGlobalSettings() *GlobalSettings
func (*GlobalSettings) Delete ¶
func (s *GlobalSettings) Delete(key string)
func (*GlobalSettings) Get ¶
func (s *GlobalSettings) Get(key string) Settings
func (*GlobalSettings) GetKeys ¶
func (s *GlobalSettings) GetKeys() []string
func (*GlobalSettings) Set ¶
func (s *GlobalSettings) Set(key string, value Settings)
type NodeInfo ¶
type NodeInfo struct {
// contains filtered or unexported fields
}
func NewNodeInfo ¶
func NewNodeInfo(ctx context.Context, monitoring *checkermonitoring.CheckerMonitoring) *NodeInfo
func (*NodeInfo) GetState ¶
func (c *NodeInfo) GetState( pubKey string, uniqueId string, PollInterval entities.Interval, getApi entities.NewApiCall, optCallback entities.InfoCallback) (*entities.InfoReport, error)
func (*NodeInfo) IsSubscribed ¶
Check if we are subscribed for a certain public key
func (*NodeInfo) OverrideLoopInterval ¶
WARNING: this should not be used except for unit testing
func (*NodeInfo) Subscribe ¶
func (c *NodeInfo) Subscribe( pubKey string, uniqueId string, PollInterval entities.Interval, getApi entities.NewApiCall, callback entities.InfoCallback) error
Subscribe to notifications
func (*NodeInfo) Unsubscribe ¶
Unsubscribe from a pubkey
Click to show internal directories.
Click to hide internal directories.