server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version     = "unknown"
	BuildDate   = "unknown"
	BuildCommit = "unknown"
)

please update these using `go build -ldflags "-X server.Version=0.0.1 -X server.BuildDate=2017.04.24" -X server.BuildCommit=asdf`

Functions

func AccessLogMiddleware

func AccessLogMiddleware(accessLogEnable bool, logger *logrus.Logger) gin.HandlerFunc

AccessLogMiddleware generate accesslog and output

func HandleUserCmd

func HandleUserCmd(cmd, pidFile string) error

HandleUserCmd use to stop/reload the proxy service

func Start

func Start(confFile, pidFile string) error

Start proxy with config file

func Stop

func Stop()

Stop proxy

Types

This section is empty.

Jump to

Keyboard shortcuts

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