v2

package
v0.0.0-...-0c89cdb Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrProtocolError is returned if an protocol error was detected in the
	// conversation with lumberjack server.
	ErrProtocolError = errors.New("lumberjack protocol error")
)

Functions

This section is empty.

Types

type Option

type Option func(*options) error

func Channel

func Channel(c chan *lj.Batch) Option

func JSONDecoder

func JSONDecoder(decoder func([]byte, interface{}) error) Option

func Keepalive

func Keepalive(kl time.Duration) Option

func TLS

func TLS(tls *tls.Config) Option

func Timeout

func Timeout(to time.Duration) Option

type Server

type Server struct {
	*internal.Server
}

func ListenAndServe

func ListenAndServe(addr string, opts ...Option) (*Server, error)

func ListenAndServeWith

func ListenAndServeWith(
	binder func(network, addr string) (net.Listener, error),
	addr string,
	opts ...Option,
) (*Server, error)

func NewWithListener

func NewWithListener(l net.Listener, opts ...Option) (*Server, error)

Jump to

Keyboard shortcuts

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