Versions in this module Expand all Collapse all v1 v1.0.0 Sep 10, 2021 Changes in this version + func SetEvasive(evasive time.Duration) + func SetExpired(expired time.Duration) + func SetLoopInterval(interval time.Duration) + type Event struct + func (e *Event) Addr() string + func (e *Event) Group() string + func (e *Event) Header(name string) (value string, ok bool) + func (e *Event) Headers() map[string]string + func (e *Event) Msg() []byte + func (e *Event) Name() string + func (e *Event) Sender() string + func (e *Event) Type() EventType + type EventType int + const EventEnter + const EventExit + const EventJoin + const EventLeave + const EventShout + const EventWhisper + func (e EventType) String() string + type Gyre struct + func New() (g *Gyre, err error) + func (g *Gyre) Addr() (string, error) + func (g *Gyre) Dump() error + func (g *Gyre) Events() chan *Event + func (g *Gyre) GossipBind(endpoint string) error + func (g *Gyre) GossipConnect(endpoint string) error + func (g *Gyre) GossipPort() (string, error) + func (g *Gyre) Header(key string) (string, bool) + func (g *Gyre) Headers() (map[string]string, error) + func (g *Gyre) Join(group string) error + func (g *Gyre) Leave(group string) error + func (g *Gyre) Name() string + func (g *Gyre) SetEndpoint(endpoint string) error + func (g *Gyre) SetHeader(name string, format string, args ...interface{}) error + func (g *Gyre) SetInterface(iface string) error + func (g *Gyre) SetInterval(interval time.Duration) error + func (g *Gyre) SetName(name string) error + func (g *Gyre) SetPort(port int) error + func (g *Gyre) SetVerbose() error + func (g *Gyre) Shout(group string, payload []byte) error + func (g *Gyre) Shouts(group string, format string, args ...interface{}) error + func (g *Gyre) Start() error + func (g *Gyre) Stop() error + func (g *Gyre) UUID() string + func (g *Gyre) Whisper(peer string, payload []byte) error + func (g *Gyre) Whispers(peer string, format string, args ...interface{}) error