Versions in this module Expand all Collapse all v0 v0.4.1 Dec 28, 2018 v0.4.0 Oct 11, 2018 Changes in this version + const DefaultAddressLength + const MsgCodeMax + const MsgCodeNotify + const MsgCodeNotifyWithKey + const MsgCodeStart + const MsgCodeStop + type Controller struct + func NewController(ps *pss.Pss) *Controller + func (c *Controller) Handler(smsg []byte, p *p2p.Peer, asymmetric bool, keyid string) error + func (c *Controller) IsActive(name string) bool + func (c *Controller) NewNotifier(name string, threshold int, updateC <-chan []byte) (func(), error) + func (c *Controller) RemoveNotifier(name string) error + func (c *Controller) Subscribe(name string, pubkey *ecdsa.PublicKey, address pss.PssAddress, ...) error + func (c *Controller) Unsubscribe(name string) error + type Msg struct + Code byte + Name []byte + Payload []byte + func NewMsg(code byte, name string, payload []byte) *Msg + func NewMsgFromPayload(payload []byte) (*Msg, error)