http

package
v0.0.0-...-acd42d9 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: ISC Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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