Documentation
¶
Index ¶
- Constants
- type 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
Constants ¶
View Source
const ( // MsgCodeStart = iota // MsgCodeNotifyWithKey // MsgCodeNotify // MsgCodeStop MsgCodeMax )
View Source
const (
DefaultAddressLength = 1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(ps *pss.Pss) *Controller
func (*Controller) IsActive ¶
func (c *Controller) IsActive(name string) bool
func (*Controller) NewNotifier ¶
func (c *Controller) NewNotifier(name string, threshold int, updateC <-chan []byte) (func(), error)
func (*Controller) RemoveNotifier ¶
func (c *Controller) RemoveNotifier(name string) error
func (*Controller) Subscribe ¶
func (c *Controller) Subscribe(name string, pubkey *ecdsa.PublicKey, address pss.PssAddress, handler func(string, []byte) error) error
func (*Controller) Unsubscribe ¶
func (c *Controller) Unsubscribe(name string) error
Click to show internal directories.
Click to hide internal directories.