Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Mux *http.ServeMux
	// contains filtered or unexported fields
}

func NewService

func NewService(
	log sls.Logger,
	targets []sls.LogTarget,
) (*Service, error)

NewService prepares handlers to support health checks as well as to receive and tail out logs. The sls.Logger is for internal logging purposes and does not affect the logs being aggregated or tailed out.

func (*Service) Shutdown

func (srv *Service) Shutdown() error

Shutdown closes all log targets. If any fail, we return the an error. If multiple fail, only one of the errors is returned.

Source Files