Documentation
¶
Index ¶
- type DiscoveryMessage
- type Fusrodah
- func (fusrodah *Fusrodah) AddHandling(to *ecdsa.PublicKey, from *ecdsa.PublicKey, ...) int
- func (fusrodah *Fusrodah) RemoveHandling(id int)
- func (fusrodah *Fusrodah) Send(payload string, anonymous bool, topics ...string) error
- func (fusrodah *Fusrodah) Start() (err error)
- func (fusrodah *Fusrodah) Stop() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscoveryMessage ¶ added in v0.3.0
type Fusrodah ¶
type Fusrodah struct {
Prv *ecdsa.PrivateKey
Enodes []string
Port string
// contains filtered or unexported fields
}
func (*Fusrodah) AddHandling ¶
func (fusrodah *Fusrodah) AddHandling(to *ecdsa.PublicKey, from *ecdsa.PublicKey, handler func(msg *whisperv2.Message), topics ...string) int
AddHandling adds register handler for messages with given keys and on given topics
func (*Fusrodah) RemoveHandling ¶
RemoveHandling removes message handler by their id
Click to show internal directories.
Click to hide internal directories.