Documentation ¶
Index ¶
- func NewAdblockLayer(lists []string) layers.Layer
- func NewAuthLayer(user string) layers.Layer
- func NewBaseLayer(metrics *stats.Stats) layers.Layer
- func NewDirectAccessLayer(regexps []string, exceptRegxeps []string) layers.Layer
- func NewRateLimiterLayer(concurrentConnections int) layers.Layer
- func NewRefererLayer() layers.Layer
- func NewSessionsLayer(conf *config.Config, executor executor.Executor) layers.Layer
- func NewXHeadersLayer(xheaders map[string]string) layers.Layer
- type AdblockLayer
- type AuthLayer
- type BaseLayer
- type DirectAccessLayer
- type RateLimiterLayer
- type RefererLayer
- type SessionsLayer
- type XHeadersLayer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdblockLayer ¶
func NewAuthLayer ¶
func NewDirectAccessLayer ¶
func NewRateLimiterLayer ¶
func NewRefererLayer ¶
func NewSessionsLayer ¶
Types ¶
type AdblockLayer ¶
type AdblockLayer struct {
// contains filtered or unexported fields
}
func (*AdblockLayer) OnResponse ¶
func (a *AdblockLayer) OnResponse(ctx *layers.Context, err error) error
type DirectAccessLayer ¶
type DirectAccessLayer struct {
// contains filtered or unexported fields
}
func (*DirectAccessLayer) OnRequest ¶
func (d *DirectAccessLayer) OnRequest(ctx *layers.Context) error
func (*DirectAccessLayer) OnResponse ¶
func (d *DirectAccessLayer) OnResponse(ctx *layers.Context, err error) error
type RateLimiterLayer ¶
type RateLimiterLayer struct {
// contains filtered or unexported fields
}
func (*RateLimiterLayer) OnResponse ¶
func (r *RateLimiterLayer) OnResponse(_ *layers.Context, err error) error
type RefererLayer ¶
type RefererLayer struct {
// contains filtered or unexported fields
}
func (*RefererLayer) OnResponse ¶
func (r *RefererLayer) OnResponse(_ *layers.Context, err error) error
type SessionsLayer ¶
type SessionsLayer struct {
// contains filtered or unexported fields
}
func (*SessionsLayer) OnResponse ¶
func (s *SessionsLayer) OnResponse(ctx *layers.Context, err error) error
type XHeadersLayer ¶
func (*XHeadersLayer) OnResponse ¶
func (h *XHeadersLayer) OnResponse(_ *layers.Context, err error) error
Click to show internal directories.
Click to hide internal directories.