server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 13 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(*Server)

func WithLogger

func WithLogger(l proxy.Logger) Option

func WithProxy

func WithProxy(p proxy.Proxy) Option

func WithServeProto

func WithServeProto(p proxy.Proto) Option

type Server

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

func New

func New(ops ...Option) (*Server, error)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(ctx context.Context, serveAddr *addr.Addr) error

func (*Server) Serve

func (s *Server) Serve(ctx context.Context, l net.Listener) error

Jump to

Keyboard shortcuts

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