event

package
v0.0.0-...-365054f Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

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