Documentation ¶
Index ¶
- Variables
- func CreatePublicHandler(sc *ServerContext) http.Handler
- func ListenAndServeHTTP(addr string, connLimit int, readTimeout int, writeTimeout int, ...) error
- func RatedListen(protocol string, addr string, limit int) (net.Listener, error)
- func RunServer(config *ServerConfig)
- func WorkerServer()
- type Handler
- type HandlerMethod
- type HandlerPrivs
- type ServerConfig
- type ServerContext
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultInterface = ":9999"
View Source
var DefaultMaxIncomingConnections = 0
View Source
var ServerReadTimeout = 200
View Source
var ServerWriteTimeout = 200
Functions ¶
func CreatePublicHandler ¶
func CreatePublicHandler(sc *ServerContext) http.Handler
func ListenAndServeHTTP ¶
func RunServer ¶
func RunServer(config *ServerConfig)
func WorkerServer ¶
func WorkerServer()
Types ¶
type HandlerMethod ¶
type HandlerPrivs ¶
type HandlerPrivs int
type ServerConfig ¶
type ServerConfig struct {
Interface *string
}
func NewServerConfig ¶
func NewServerConfig(addr *string) *ServerConfig
func ParseCommandLine ¶
func ParseCommandLine() (config *ServerConfig)
type ServerContext ¶
func NewServerContext ¶
func NewServerContext(config *ServerConfig) *ServerContext
Click to show internal directories.
Click to hide internal directories.