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 StartServer(listenIp, listenPort, configPath string)
- func ValidateMethod(request, expected string) error
- type Handler
- type HandlerMethod
- type HandlerPrivs
- type Master
- type ServerContext
Constants ¶
This section is empty.
Variables ¶
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 ValidateMethod ¶
Types ¶
type HandlerMethod ¶
type HandlerPrivs ¶
type HandlerPrivs int
type ServerContext ¶
type ServerContext struct { DBContext db.DatabaseContext HTTPClient *http.Client // contains filtered or unexported fields }
func NewServerContext ¶
func NewServerContext(config *config_pkg.Config) (*ServerContext, error)
Click to show internal directories.
Click to hide internal directories.