events

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers struct {
	// contains filtered or unexported fields
}

Handlers is a map of event queues, one for each topic as well as one for non-blocking requests.

func NewHandlers

func NewHandlers(conf *config.Config) *Handlers

NewHandlers returns a new instance of *Handlers.

func (*Handlers) GoStart

func (h *Handlers) GoStart() error

GoStart begins handling messages

func (*Handlers) PushRequest

func (h *Handlers) PushRequest(ctx context.Context, req *protocol.Request) (*protocol.Response, error)

PushRequest implements transport.RequestHandler.

func (*Handlers) Register

func (h *Handlers) Register(server transport.Server)

Register adds a server to the event queue. The queue should be stopped when Register is called.

func (*Handlers) Start

func (h *Handlers) Start() error

func (*Handlers) Stop

func (h *Handlers) Stop() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL