httpd

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAddr = "localhost:3000"
	DefaultZone = "prj.buglloc.com"
)

Variables

This section is empty.

Functions

func Logger

func Logger(logger zerolog.Logger) func(next http.Handler) http.Handler

Types

type HttpD

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

func NewHttpD

func NewHttpD(prj projects.Provider, opts ...Option) *HttpD

func (*HttpD) ListenAndServe

func (h *HttpD) ListenAndServe() error

func (*HttpD) Shutdown

func (h *HttpD) Shutdown(ctx context.Context) error

type Option

type Option func(h *HttpD)

func WithAddr

func WithAddr(addr string) Option

func WithZone

func WithZone(zone string) Option

Jump to

Keyboard shortcuts

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