server

package
v0.0.0-...-3ce899b Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 10 Imported by: 0

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

	DataAddr    string
	ControlAddr 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-server 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