Documentation ¶
Index ¶
Constants ¶
View Source
const AppTopicState = "State change"
AppTopicState is the topic that we use to announce state changes to via the event bus
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { Session connectionstate.Status Statistics connectionstate.Statistics Throughput bandwidth.Throughput Invoice crypto.Invoice }
Connection represents consumer connection state.
func (Connection) String ¶
func (c Connection) String() string
type Identity ¶
type Identity struct { Address string RegistrationStatus registry.RegistrationStatus ChannelAddress common.Address Balance *big.Int Earnings *big.Int EarningsTotal *big.Int EarningsPerHermes map[common.Address]pingpongEvent.Earnings HermesID common.Address }
Identity represents identity and its status.
type State ¶
type State struct { Services []contract.ServiceInfoDTO Sessions []session.History Connections map[string]Connection Identities []Identity ProviderChannels []pingpong.HermesChannel }
State represents the node state at the current moment. It's a read only object, used only to display data.
Click to show internal directories.
Click to hide internal directories.