server

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Token          string
	InstanceName   string
	StatMu         tillclient.InstanceStatMutex
	ProxyURLs      = []string{}
	ProxyCount     = 0
	DBPath         string
	Interceptions  []interceptions.Interception
	CacheConfig    cache.Config
	LoggerConfig   logger.Config
	SessionsConfig sessions.Config
)

Functions

func Serve

func Serve(port string, uiport string)

Serve runs the Till server to start accepting the proxy requests

Types

type ProxyServer added in v0.5.0

type ProxyServer struct {
	// contains filtered or unexported fields
}

func NewProxyServer added in v0.5.0

func NewProxyServer(port string, i *tillclient.Instance) (s *ProxyServer, err error)

func (*ProxyServer) ListenAndServe added in v0.5.0

func (s *ProxyServer) ListenAndServe()

type UIServer added in v0.7.6

type UIServer struct {
	// contains filtered or unexported fields
}

func NewUIServer added in v0.7.6

func NewUIServer(port string, i *tillclient.Instance) (s *UIServer, err error)

func (*UIServer) ListenAndServe added in v0.7.6

func (s *UIServer) ListenAndServe()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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