sniproxy

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 5 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 {
	tcp.Listener
	// contains filtered or unexported fields
}

Server for proxying connections by checking client SNI.

func NewServer

func NewServer(routes map[string]string) *Server

NewServer returns a new server. routes map (server name) -> (target host:port).

func (*Server) GracefulStop

func (s *Server) GracefulStop() error

GracefulStop does a graceful stop of the server.

func (*Server) Start

func (s *Server) Start() error

Start the server.

func (*Server) Stop

func (s *Server) Stop() error

Stop the server.

Jump to

Keyboard shortcuts

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