message

package
v0.0.0-...-5f26636 Latest Latest
Warning

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

Go to latest
Published: May 20, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Default *memory

	ErrAlreadyExists = errors.New("already exists")
	ErrNotFound      = errors.New("not found")
)

Functions

func Create

func Create(e *proto.Event) error

func Delete

func Delete(id, ns, ch string) error

func Init

func Init(br broker.Broker, k data.Data, lk lock.Lock)

func Read

func Read(id, ns, ch string) (*proto.Event, error)
func Search(q, ns, ch string, limit, offset int, reverse bool) ([]*proto.Event, error)

func Stream

func Stream(ns, ch string) (chan *proto.Event, chan bool, error)

func Update

func Update(e *proto.Event) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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