Documentation ¶
Index ¶
- Variables
- func HTTPReqCall(buf []byte, conn net.Conn) (*flatbuffers.Builder, error)
- func InitConfCache(ttl time.Duration)
- func PrepareConf(buf []byte) (*flatbuffers.Builder, error)
- func RegisterPlugin(name string, pc ParseConfFunc, sv FilterFunc) error
- func SetRuleConfInTest(token uint32, conf RuleConf) error
- type ConfCache
- type ConfEntry
- type ErrPluginRegistered
- type FilterFunc
- type ParseConfFunc
- type RuleConf
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func HTTPReqCall ¶
func InitConfCache ¶
func PrepareConf ¶
func PrepareConf(buf []byte) (*flatbuffers.Builder, error)
func RegisterPlugin ¶
func RegisterPlugin(name string, pc ParseConfFunc, sv FilterFunc) error
func SetRuleConfInTest ¶ added in v0.2.0
Types ¶
type ConfCache ¶ added in v0.2.0
type ConfCache struct {
// contains filtered or unexported fields
}
type ErrPluginRegistered ¶
type ErrPluginRegistered struct {
// contains filtered or unexported fields
}
func (ErrPluginRegistered) Error ¶
func (err ErrPluginRegistered) Error() string
type FilterFunc ¶
type FilterFunc func(conf interface{}, w http.ResponseWriter, r pkgHTTP.Request)
type ParseConfFunc ¶
Click to show internal directories.
Click to hide internal directories.