listeners

package
v0.0.0-...-dcec590 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StaticHttpHandler

func StaticHttpHandler(contextRoot string, fs fs.FS) (http.Handler, error)

func UIStaticStaticHandler

func UIStaticStaticHandler(contextRoot string) (http.Handler, error)

Types

type Config

type Config struct {
	Address string
	Dsn     string
}

type HttpServer

type HttpServer struct {
	http.Server
	// contains filtered or unexported fields
}

func NewHttpServer

func NewHttpServer(address string) (*HttpServer, error)

func (HttpServer) Handle

func (srv HttpServer) Handle(pattern string, handler http.Handler)

func (HttpServer) ListenAndServe

func (srv HttpServer) ListenAndServe() error

func (HttpServer) Shutdown

func (srv HttpServer) Shutdown(ctx context.Context) error

type TLS

type TLS struct {
	CertificatePEM string
}

Jump to

Keyboard shortcuts

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