httpext

package
v0.0.0-...-5fcd299 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

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

func New

func New(router http.Handler, opts ...Option) (*HTTPServer, error)

func (*HTTPServer) Run

func (h *HTTPServer) Run(ctx context.Context) error

type Option

type Option func(*HTTPServer) error

func WithAddr

func WithAddr(addr string) Option

func WithCertFiles

func WithCertFiles(certFile, keyFile string) Option

func WithDomains

func WithDomains(domains ...string) Option

func WithLogger

func WithLogger(log logger.Logger) Option

Jump to

Keyboard shortcuts

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