Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultEventbus - DefaultEventbus = New() )
Functions ¶
func Publish ¶ added in v0.9.0
func Publish(e localEvent)
Publish a local event in the Default eventbus
func Subscribe ¶ added in v0.9.0
func Subscribe() pubsub.Subscription
Subscribe to all local events on the default eventbus
Types ¶
type Eventbus ¶
type Eventbus interface { Publish(localEvent) Subscribe() pubsub.Subscription }
Eventbus for passing information around the various nimona packages.
type NetworkAddressAdded ¶
type NetworkAddressAdded struct { Address string // contains filtered or unexported fields }
NetworkAddressAdded is published when the network starts listening to a new address.
type NetworkAddressRemoved ¶
type NetworkAddressRemoved struct { Address string // contains filtered or unexported fields }
NetworkAddressRemoved is published when the network stops listening to an existing address.
type ObjectPinned ¶
ObjectPinned is published when an object is pinned.
type ObjectUnpinned ¶
ObjectUnpinned is published when an object is unpinned.
type PeerConnectionEstablished ¶
type PeerConnectionEstablished struct { PublicKey crypto.PublicKey // contains filtered or unexported fields }
PeerConnectionEstablished is published when a connection is established with a peer.
type RelayAdded ¶
RelayAdded is published when a relay has been found and should be used.
type RelayRemoved ¶
RelayRemoved is published when a relay should be removed.
Click to show internal directories.
Click to hide internal directories.