Versions in this module Expand all Collapse all v0 v0.1.0 Oct 16, 2017 Changes in this version + var ErrDuplicateWriter = errors.New("duplicated writer") + var ErrGettingReader = errors.New("getting reader") + var ErrNilLogger = errors.New("logger cannot be nil") + var ErrNoOptions = errors.New("no option provided") + var ErrNoWriter = errors.New("no writers specified") + var ErrTimeout = errors.New("timeout cannot be zero") + var ErrWritingEntry = errors.New("writing the entry") + var ServeFunc func(s ServiceInt, logger internal.FieldLogger, stop chan os.Signal, port int) error + func Bootstrap(logger internal.FieldLogger, configFile string, port int) + func Serve(s ServiceInt, logger internal.FieldLogger, stop chan os.Signal, port int) error + func WithConfWriters(logger internal.FieldLogger, c *config.Setting) func(*Service) error + func WithTimeout(timeout time.Duration) func(*Service) error + func WithWriters(ws ...io.Writer) func(*Service) error + type Service struct + Logger internal.FieldLogger + Writers []io.Writer + func New(logger internal.FieldLogger, opts ...func(*Service) error) (*Service, error) + func (l *Service) Handler() http.HandlerFunc + func (l *Service) RecieveHandler(w http.ResponseWriter, r *http.Request) + func (l *Service) Timeout() time.Duration + type ServiceInt interface + Handler func() http.HandlerFunc + Timeout func() time.Duration