embed

package
v5.0.0-...-b98a0e9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, asProxy bool) (server.Server, error)

func RegisterServerMux

func RegisterServerMux(ctx context.Context, serverID string, r routing.RouteRegistrar)

Types

type Middleware

type Middleware struct {
	clienthttp.Resolver
}

func (*Middleware) CaddyModule

func (m *Middleware) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*Middleware) Init

func (m *Middleware) Init(ctx context.Context, serverID string, r routing.RouteRegistrar)

func (*Middleware) Provision

func (m *Middleware) Provision(ctx caddy.Context) error

Provision adds routes to the main server

func (*Middleware) ServeHTTP

func (m *Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error

ServeHTTP implements caddyhttp.MiddlewareHandler.

func (*Middleware) Stop

func (m *Middleware) Stop()

func (*Middleware) UnmarshalCaddyfile

func (m *Middleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile implements caddyfile.Unmarshaler.

func (*Middleware) WrapListener

func (m *Middleware) WrapListener(ln net.Listener) net.Listener

type Opener

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

func (*Opener) OpenURL

func (o *Opener) OpenURL(ctx context.Context, u *url.URL) (server.Server, error)

type Server

type Server struct {
	*caddy.RawServer
	// contains filtered or unexported fields
}

func (*Server) As

func (s *Server) As(i interface{}) bool

func (*Server) Clone

func (s *Server) Clone() interface{}

func (*Server) RawServe

func (s *Server) RawServe(opts *server.ServeOptions) (ii []registry.Item, er error)

func (*Server) ReloadProxy

func (s *Server) ReloadProxy(reg registry.Registry) error

func (*Server) Stop

func (s *Server) Stop() error

Jump to

Keyboard shortcuts

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