Documentation
¶
Index ¶
Constants ¶
View Source
const InvalidTimestamp = int64(-1)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connectable ¶ added in v0.179.24
type State ¶ added in v0.167.5
type State struct { Value StateValue `json:"value"` LastCheckedAt int64 `json:"last_checked_at"` LastSuccessAt int64 `json:"last_success_at"` }
type StateChangeCb ¶ added in v0.167.5
type StateChangeCb func(State)
type StateValue ¶ added in v0.167.5
type StateValue int
const ( StateValueUnknown StateValue = iota StateValueConnected StateValueDisconnected )
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
func (*Status) GetStateValue ¶ added in v0.167.5
func (c *Status) GetStateValue() StateValue
func (*Status) IsConnected ¶
func (*Status) ResetStateValue ¶ added in v0.167.5
func (c *Status) ResetStateValue()
func (*Status) SetIsConnected ¶
func (*Status) SetStateChangeCb ¶ added in v0.167.5
func (c *Status) SetStateChangeCb(stateChangeCb StateChangeCb)
type StatusNotification ¶ added in v0.167.5
Client expects a single event with all states
type StatusNotifier ¶ added in v0.167.5
type StatusNotifier struct {
// contains filtered or unexported fields
}
func NewStatusNotifier ¶ added in v0.167.5
func NewStatusNotifier(statuses map[string]*Status, eventType walletevent.EventType, feed *event.Feed) *StatusNotifier
Click to show internal directories.
Click to hide internal directories.