publisher

package
v0.0.0-...-06c19a4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2014 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

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

func New

func New() *Publisher

func (*Publisher) Close

func (pub *Publisher) Close()

func (*Publisher) Flush

func (pub *Publisher) Flush()

func (*Publisher) Log

func (pub *Publisher) Log(srcApp string, level log.Level, message []byte) error

func (*Publisher) Subscribe

func (pub *Publisher) Subscribe(srcApp string, level log.Level, handler RecordHandler) (ex.Handle, error)

func (*Publisher) Unsubscribe

func (pub *Publisher) Unsubscribe(handle ex.Handle) error

type RecordHandler

type RecordHandler func(level log.Level, record []byte)

Jump to

Keyboard shortcuts

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