Versions in this module Expand all Collapse all v0 v0.1.0 Jun 17, 2016 Changes in this version + var ErrProtocolError = errors.New("lumberjack protocol error") + type Option func(*options) error + func Channel(c chan *lj.Batch) Option + func TLS(tls *tls.Config) Option + func Timeout(to time.Duration) Option + type Server struct + func ListenAndServe(addr string, opts ...Option) (*Server, error) + func ListenAndServeWith(binder func(network, addr string) (net.Listener, error), addr string, ...) (*Server, error) + func NewWithListener(l net.Listener, opts ...Option) (*Server, error) + func (s *Server) Close() error + func (s *Server) Receive() *lj.Batch + func (s *Server) ReceiveChan() <-chan *lj.Batch