http

package
v0.0.0-...-04e9517 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionFunc

type OptionFunc func(opts *Options)

func WithAddress

func WithAddress(addr string) OptionFunc

func WithBaseURL

func WithBaseURL(baseURL string) OptionFunc

func WithCORS

func WithCORS(options cors.Options) OptionFunc

func WithMount

func WithMount(prefix string, handler http.Handler) OptionFunc

type Options

type Options struct {
	Address string
	BaseURL string
	Mounts  map[string]http.Handler
	CORS    cors.Options
}

func NewOptions

func NewOptions(funcs ...OptionFunc) *Options

type Server

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

func NewServer

func NewServer(funcs ...OptionFunc) *Server

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Directories

Path Synopsis
handler
api
mcp
webui/admin/component
templ: version: v0.3.1001
templ: version: v0.3.1001
webui/ask/component
templ: version: v0.3.1001
templ: version: v0.3.1001
webui/collection/component
templ: version: v0.3.1001
templ: version: v0.3.1001
webui/common/component
templ: version: v0.3.1001
templ: version: v0.3.1001
webui/profile/component
templ: version: v0.3.1001
templ: version: v0.3.1001
webui/pubshare/component
templ: version: v0.3.1001
templ: version: v0.3.1001
webui/templui/component/icon
templui component icon - version: v1.5.0 installed by templui v1.5.0 📚 Documentation: https://templui.io/docs/components/icon
templui component icon - version: v1.5.0 installed by templui v1.5.0 📚 Documentation: https://templui.io/docs/components/icon
webui/templui/utils
templui util templui.go - version: v1.5.0 installed by templui v1.5.0
templui util templui.go - version: v1.5.0 installed by templui v1.5.0
middleware
authn/oidc/component
templ: version: v0.3.1001
templ: version: v0.3.1001
authn/token/component
templ: version: v0.3.1001
templ: version: v0.3.1001

Jump to

Keyboard shortcuts

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