Documentation ¶
Index ¶
Constants ¶
View Source
const ( HTTPRespOK = 0 HTTPRespAuthFailed = -1 HTTPRespProcFailed = -2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPResponse ¶
HTTPResponse HTTPResponse
type HandleReverse ¶
type HandleReverse struct {
// contains filtered or unexported fields
}
HandleReverse HandleReverse
func (*HandleReverse) DoFilteringAsBegin ¶
func (h *HandleReverse) DoFilteringAsBegin(ctx filter.Context) filter.Response
DoFilteringAsBegin return (resp, nil) if all filters passed, else (resp, err)
func (*HandleReverse) DoFilteringAsEnd ¶
func (h *HandleReverse) DoFilteringAsEnd(ctx filter.Context) filter.Response
DoFilteringAsEnd return (resp, nil) if all filters passed, else (resp, err)
func (*HandleReverse) ServeHTTP ¶
func (h *HandleReverse) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy proxy struct
func (*Proxy) RegisterFilters ¶
RegisterFilters register filters into proxy
Click to show internal directories.
Click to hide internal directories.