httpx

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(addr string, handler http.Handler, log *zap.Logger) *http.Server

Types

type ServerController

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

func NewServerController

func NewServerController(server *http.Server, log *zap.Logger) *ServerController

func (*ServerController) Start

func (sm *ServerController) Start()

func (*ServerController) Stop

func (sm *ServerController) Stop(ctx context.Context) error

func (*ServerController) Wait

func (sm *ServerController) Wait() <-chan error

Jump to

Keyboard shortcuts

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