Documentation ¶
Index ¶
- func TunnelServerHandler(s *Server) http.Handler
- type Config
- type Server
- func (s *Server) AcmeInstruction(ctx context.Context, req *protocol.InstructionRequest) (*protocol.InstructionResponse, error)
- func (s *Server) AcmeValidate(ctx context.Context, req *protocol.ValidateRequest) (*protocol.ValidateResponse, error)
- func (s *Server) AttachRouter(ctx context.Context, router *transport.StreamRouter)
- func (s *Server) DialClient(ctx context.Context, link *protocol.Link) (net.Conn, error)
- func (s *Server) DialInternal(ctx context.Context, node *protocol.Node) (net.Conn, error)
- func (s *Server) GenerateHostname(ctx context.Context, req *protocol.GenerateHostnameRequest) (*protocol.GenerateHostnameResponse, error)
- func (s *Server) GetNodes(ctx context.Context, _ *protocol.GetNodesRequest) (*protocol.GetNodesResponse, error)
- func (s *Server) Identity() *protocol.Node
- func (s *Server) MustRegister(ctx context.Context)
- func (s *Server) Ping(_ context.Context, _ *protocol.ClientPingRequest) (*protocol.ClientPingResponse, error)
- func (s *Server) PublishTunnel(ctx context.Context, req *protocol.PublishTunnelRequest) (*protocol.PublishTunnelResponse, error)
- func (s *Server) RegisterIdentity(ctx context.Context, req *protocol.RegisterIdentityRequest) (*protocol.RegisterIdentityResponse, error)
- func (s *Server) RegisteredHostnames(ctx context.Context, req *protocol.RegisteredHostnamesRequest) (*protocol.RegisteredHostnamesResponse, error)
- func (s *Server) ReleaseTunnel(ctx context.Context, req *protocol.ReleaseTunnelRequest) (*protocol.ReleaseTunnelResponse, error)
- func (s *Server) RoutesPreload(hostname string)
- func (s *Server) Stop()
- func (s *Server) UnpublishTunnel(ctx context.Context, req *protocol.UnpublishTunnelRequest) (*protocol.UnpublishTunnelResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TunnelServerHandler ¶
Types ¶
type Server ¶
type Server struct { Config // contains filtered or unexported fields }
func (*Server) AcmeInstruction ¶
func (s *Server) AcmeInstruction(ctx context.Context, req *protocol.InstructionRequest) (*protocol.InstructionResponse, error)
func (*Server) AcmeValidate ¶
func (s *Server) AcmeValidate(ctx context.Context, req *protocol.ValidateRequest) (*protocol.ValidateResponse, error)
func (*Server) AttachRouter ¶
func (s *Server) AttachRouter(ctx context.Context, router *transport.StreamRouter)
func (*Server) DialClient ¶
func (*Server) DialInternal ¶
func (*Server) GenerateHostname ¶
func (s *Server) GenerateHostname(ctx context.Context, req *protocol.GenerateHostnameRequest) (*protocol.GenerateHostnameResponse, error)
func (*Server) GetNodes ¶
func (s *Server) GetNodes(ctx context.Context, _ *protocol.GetNodesRequest) (*protocol.GetNodesResponse, error)
func (*Server) MustRegister ¶
func (*Server) Ping ¶
func (s *Server) Ping(_ context.Context, _ *protocol.ClientPingRequest) (*protocol.ClientPingResponse, error)
func (*Server) PublishTunnel ¶
func (s *Server) PublishTunnel(ctx context.Context, req *protocol.PublishTunnelRequest) (*protocol.PublishTunnelResponse, error)
func (*Server) RegisterIdentity ¶
func (s *Server) RegisterIdentity(ctx context.Context, req *protocol.RegisterIdentityRequest) (*protocol.RegisterIdentityResponse, error)
func (*Server) RegisteredHostnames ¶
func (s *Server) RegisteredHostnames(ctx context.Context, req *protocol.RegisteredHostnamesRequest) (*protocol.RegisteredHostnamesResponse, error)
func (*Server) ReleaseTunnel ¶
func (s *Server) ReleaseTunnel(ctx context.Context, req *protocol.ReleaseTunnelRequest) (*protocol.ReleaseTunnelResponse, error)
func (*Server) RoutesPreload ¶
func (*Server) UnpublishTunnel ¶
func (s *Server) UnpublishTunnel(ctx context.Context, req *protocol.UnpublishTunnelRequest) (*protocol.UnpublishTunnelResponse, error)
Click to show internal directories.
Click to hide internal directories.