server

package
v0.0.0-...-ae73b7d Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {

	// Port serves data to clients
	Port int

	// ControlPort represents the tunnel to the inlets client
	ControlPort int

	BindAddr string

	// Token is used to authenticate a client
	Token string

	// DisableWrapTransport prevents CORS headers from being striped from responses
	DisableWrapTransport bool
	// contains filtered or unexported fields
}

Server for the exit-node of inlets

func (Server) Error

func (s Server) Error(w http.ResponseWriter, req *http.Request, err error)

func (*Server) Serve

func (s *Server) Serve()

Serve traffic

Jump to

Keyboard shortcuts

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