httpsrv

package
v0.0.0-...-535fc81 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(ctx context.Context) (http.Handler, error)

type Http

type Http struct {
	ListenOn string `yaml:"listenOn"`
}

type HttpSrv

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

func New

func New(conf Http, fn Handler) *HttpSrv

func (*HttpSrv) Endpoint

func (srv *HttpSrv) Endpoint() *url.URL

func (*HttpSrv) Run

func (srv *HttpSrv) Run(ctx context.Context) error

func (*HttpSrv) Stop

func (srv *HttpSrv) Stop(ctx context.Context) (err error)

Jump to

Keyboard shortcuts

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