Documentation ¶
Index ¶
- Constants
- Variables
- func CfgIsDebug() bool
- func CfgIsVerbose() bool
- func GetStatus() map[string]string
- func GetStatusHTTP() string
- func GetStatusUDP() string
- func ReadHSParams(message []byte, out_params *HSParams) []byte
- func RegisterHandler(handlers ...ActionHandler)
- func StartServer(bind_to []string)
- func StatusPluginRegister(f StatusPlugin)
- type ActionHandler
- type HSParams
- func (p *HSParams) Allocate(size int) []byte
- func (p *HSParams) Cleanup()
- func (p *HSParams) FastReturnB(set []byte)
- func (p *HSParams) FastReturnBNocopy(set []byte)
- func (p *HSParams) FastReturnS(set string)
- func (p *HSParams) GetAllocator() *byteslabs.Allocator
- func (p *HSParams) GetParam(attr string, def string) string
- func (p *HSParams) GetParamA(attr string, separator string) []string
- func (p *HSParams) GetParamBUnsafe(attr string, def []byte) []byte
- func (p *HSParams) GetParamI(attr string, def int) int
- func (p *HSParams) GetParamIA(attr string) []int
- func (p *HSParams) GetParamsS() map[string]string
- func (p *HSParams) SetParam(attr string, val string)
- func (p *HSParams) SetRespHeader(attr, val string)
- type StatusPlugin
- type TimeSpan
Constants ¶
View Source
const DEFAULT_COMPRESSION_THRESHOLD = 4096
Variables ¶
View Source
var Config = new(cfg)
Functions ¶
func CfgIsDebug ¶
func CfgIsDebug() bool
func CfgIsVerbose ¶
func CfgIsVerbose() bool
func GetStatusHTTP ¶
func GetStatusHTTP() string
func GetStatusUDP ¶
func GetStatusUDP() string
func ReadHSParams ¶
func RegisterHandler ¶
func RegisterHandler(handlers ...ActionHandler)
func StartServer ¶
func StartServer(bind_to []string)
func StatusPluginRegister ¶
func StatusPluginRegister(f StatusPlugin)
Types ¶
type ActionHandler ¶
type HSParams ¶
type HSParams struct {
// contains filtered or unexported fields
}
func CreateHSParams ¶
func CreateHSParams() *HSParams
func CreateHSParamsFromMap ¶
func (*HSParams) FastReturnB ¶
func (*HSParams) FastReturnBNocopy ¶
func (*HSParams) FastReturnS ¶
func (*HSParams) GetAllocator ¶
func (*HSParams) GetParamBUnsafe ¶
this is not safe because it can use memory shared between requests, so we can't keep this after request is over!
func (*HSParams) GetParamIA ¶
func (*HSParams) GetParamsS ¶
func (*HSParams) SetRespHeader ¶
type StatusPlugin ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.