server

package
v0.0.0-...-d687121 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TunnelServerHandler

func TunnelServerHandler(s *Server) http.Handler

Types

type Config

type Config struct {
	Logger          *zap.Logger
	ParentContext   context.Context
	Chord           chord.VNode
	TunnelTransport transport.Transport
	ChordTransport  transport.Transport
	Resolver        tun.DNSResolver
	Apex            string
	Acme            string
}

type Server

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

func New

func New(cfg Config) *Server

func (*Server) AcmeInstruction

func (*Server) AcmeValidate

func (*Server) AttachRouter

func (s *Server) AttachRouter(ctx context.Context, router *transport.StreamRouter)

func (*Server) DialClient

func (s *Server) DialClient(ctx context.Context, link *protocol.Link) (net.Conn, error)

func (*Server) DialInternal

func (s *Server) DialInternal(ctx context.Context, node *protocol.Node) (net.Conn, error)

func (*Server) GetNodes

func (*Server) Identity

func (s *Server) Identity() *protocol.Node

func (*Server) MustRegister

func (s *Server) MustRegister(ctx context.Context)

func (*Server) PublishTunnel

func (*Server) ReleaseTunnel

func (*Server) RoutesPreload

func (s *Server) RoutesPreload(hostname string)

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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