server

package
v0.22.19 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HttpHeaderXProxy             = "X-Proxy"
	HttpHeaderXClientCountryCode = "X-ClientCountryCode"
)

Custom HTTP Headers.

View Source
const BCST = time.Millisecond * 50
View Source
const (
	ProxyServerName = "SPARP"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyError

type ProxyError struct {
	StatusCode int
	Message    string
}

func NewProxyError

func NewProxyError(statusCode int, message string) *ProxyError

func (*ProxyError) Error

func (pe *ProxyError) Error() string

type Server

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

func NewServer

func NewServer(stn *set.Settings) (srv *Server, err error)

func (*Server) GetListenDsn

func (srv *Server) GetListenDsn() (dsn string)

func (*Server) GetStopChannel

func (srv *Server) GetStopChannel() *chan bool

func (*Server) GetWorkMode

func (srv *Server) GetWorkMode() (modeId byte)

func (*Server) Start

func (srv *Server) Start() (err error)

func (*Server) Stop

func (srv *Server) Stop() (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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