Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AvailableInterceptors = map[string]Interceptor{ "throttling": ThrottlingInterceptor{}, }
Functions ¶
This section is empty.
Types ¶
type Interceptor ¶
type Interceptor interface { Init() Intercept(http.ResponseWriter, *http.Request, http.HandlerFunc) }
type ThrottlingInterceptor ¶
type ThrottlingInterceptor struct{}
func (ThrottlingInterceptor) Init ¶
func (ThrottlingInterceptor) Init()
func (ThrottlingInterceptor) Intercept ¶
func (i ThrottlingInterceptor) Intercept(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.