logging

package
v0.0.0-...-ff27e19 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2014 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Header = "CDR#LOGGING@01"

Variables

View Source
var ErrConfigIncomplete = errors.New("Logging endpoint is not fully configured")
View Source
var HeaderFrame = []byte(Header)

Functions

func NewEndpoint

func NewEndpoint(config *EndpointConfig, handler logging.Exchange) (logging.Endpoint, error)

Types

type Endpoint

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

type EndpointConfig

type EndpointConfig struct {
	Endpoint string
	Rcvhwm   int
}

func NewEndpointConfig

func NewEndpointConfig() *EndpointConfig

func (*EndpointConfig) FeedFromEnv

func (config *EndpointConfig) FeedFromEnv(prefix string) error

func (*EndpointConfig) IsComplete

func (config *EndpointConfig) IsComplete() bool

func (*EndpointConfig) MustBeComplete

func (config *EndpointConfig) MustBeComplete()

func (*EndpointConfig) MustFeedFromEnv

func (config *EndpointConfig) MustFeedFromEnv(prefix string) *EndpointConfig

Jump to

Keyboard shortcuts

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