Back to

Package http

Latest Go to latest

The highest tagged major version is .

Published: Apr 6, 2020 | License: ISC | Module:


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.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier