httpsrv

package
v1.1.1-beta Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LaunchOption

type LaunchOption struct {
	ServerName     string
	CloseDuration  time.Duration
	Logger         *zap.Logger
	HealthReporter *health.StatusReporter
}

type Launcher

type Launcher struct {
	// contains filtered or unexported fields
}

func New

func New(server *http.Server, opt LaunchOption) *Launcher

func (*Launcher) CloseWithContext

func (srv *Launcher) CloseWithContext(ctx context.Context) error

func (*Launcher) Start

func (srv *Launcher) Start()

Jump to

Keyboard shortcuts

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