events

package
v0.0.0-...-ce71dfa Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2012 License: BSD-2-Clause-Views Imports: 3 Imported by: 2

README

This implementation of the event interface (see /frame/interfaces) uses the Trigga pub/sub messaging server (see github.com/opesun/trigga).

This implementation doesn't panic with a nil connection, but returns errors on operations.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

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

func (*Event) Publish

func (e *Event) Publish(msg []byte) error

func (*Event) Read

func (e *Event) Read() ([]byte, error)

func (*Event) Subscribe

func (e *Event) Subscribe() error

func (*Event) Unsubscribe

func (e *Event) Unsubscribe() error

type Events

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

func New

func New(conn *gt.Connection) *Events

func (*Events) Select

func (e *Events) Select(name string) iface.Event

Jump to

Keyboard shortcuts

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