broker

package
v0.0.0-...-722e16d Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotRegistered = errors.New("Channel is not registered.")

Functions

func Get

func Get(key string) ([]byte, error)

func NewReader

func NewReader(key string) (io.ReadCloser, error)

func NewWriter

func NewWriter(key string) (io.WriteCloser, error)

func NoContent

func NoContent(rd io.Reader, offset int64) bool

func ReaderDone

func ReaderDone(rd io.Reader) bool

func RenewExpiry

func RenewExpiry(rd io.Reader)

Types

type RedisRegistrar

type RedisRegistrar struct{}

func NewRedisRegistrar

func NewRedisRegistrar() *RedisRegistrar

func (*RedisRegistrar) IsRegistered

func (rr *RedisRegistrar) IsRegistered(channelName string) (registered bool)

func (*RedisRegistrar) Register

func (rr *RedisRegistrar) Register(channelName string) (err error)

type Registrar

type Registrar interface {
	Register(key string) error
	IsRegistered(key string) bool
}

Jump to

Keyboard shortcuts

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