Documentation ¶ Index ¶ type Handler type Listener func New(logger log.Logger) Listener Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Handler ¶ type Handler func(*soc.SOC) Handler defines code to be executed upon reception of a GSOC sub message. it is used as a parameter definition. It receives the recovered single owner chunk so the consumer has access to all of its properties. type Listener ¶ type Listener interface { Subscribe(address swarm.Address, handler Handler) (cleanup func()) Handle(c *soc.SOC) Close() error } func New ¶ func New(logger log.Logger) Listener New returns a new GSOC listener service. Source Files ¶ View all Source files gsoc.go Click to show internal directories. Click to hide internal directories.