server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(s *server)

func WithListener added in v0.0.2

func WithListener(l net.Listener) Option

func WithProxy

func WithProxy(p proxy.Handler) Option

func WithReverseProxy

func WithReverseProxy(rp reverseproxy.Handler) Option

func WithSSHHandler

func WithSSHHandler(h ssh.Handler) Option

func WithSSHOptions

func WithSSHOptions(options ...ssh.Option) Option

func WithWishMiddleware

func WithWishMiddleware(m wish.Middleware) Option

type Server

type Server interface {
	Run(ctx context.Context) error
}

func New

func New(name string, options ...Option) Server

Jump to

Keyboard shortcuts

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