Documentation ¶
Index ¶
- func MakeApiHandler(config *config.ProxyConfig) func()
- type ApiService
- func (s *ApiService) BlockListAdd(r *http.Request, req *BlockListAddReq, res *Empty) error
- func (s *ApiService) BlockListCount(r *http.Request, req *Empty, res *BlockListCountRes) error
- func (s *ApiService) BlockListDelete(r *http.Request, req *BlockListDeleteReq, res *BlockListDeleteRes) error
- func (s *ApiService) CacheAdd(r *http.Request, req *CacheAddReq, res *Empty) error
- func (s *ApiService) CacheDebug(r *http.Request, req *Empty, res *CacheDebugRes) error
- func (s *ApiService) CacheDelete(r *http.Request, req *CacheDeleteReq, res *Empty) error
- func (s *ApiService) Config(r *http.Request, req *Empty, res *config.UserConfig) error
- type BlockListAddReq
- type BlockListCountRes
- type BlockListDeleteReq
- type BlockListDeleteRes
- type CacheAddReq
- type CacheDebugRes
- type CacheDeleteReq
- type Empty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeApiHandler ¶
func MakeApiHandler(config *config.ProxyConfig) func()
Types ¶
type ApiService ¶
type ApiService struct {
// contains filtered or unexported fields
}
func NewApiService ¶
func NewApiService(c *config.ProxyConfig) *ApiService
func (*ApiService) BlockListAdd ¶
func (s *ApiService) BlockListAdd(r *http.Request, req *BlockListAddReq, res *Empty) error
func (*ApiService) BlockListCount ¶
func (s *ApiService) BlockListCount(r *http.Request, req *Empty, res *BlockListCountRes) error
func (*ApiService) BlockListDelete ¶
func (s *ApiService) BlockListDelete(r *http.Request, req *BlockListDeleteReq, res *BlockListDeleteRes) error
func (*ApiService) CacheAdd ¶
func (s *ApiService) CacheAdd(r *http.Request, req *CacheAddReq, res *Empty) error
func (*ApiService) CacheDebug ¶
func (s *ApiService) CacheDebug(r *http.Request, req *Empty, res *CacheDebugRes) error
func (*ApiService) CacheDelete ¶
func (s *ApiService) CacheDelete(r *http.Request, req *CacheDeleteReq, res *Empty) error
func (*ApiService) Config ¶
func (s *ApiService) Config(r *http.Request, req *Empty, res *config.UserConfig) error
type BlockListAddReq ¶
type BlockListAddReq struct {
Entries []string `json:"entries"`
}
type BlockListCountRes ¶
type BlockListCountRes struct {
Count int `json:"count"`
}
type BlockListDeleteReq ¶
type BlockListDeleteReq struct {
Name string `json:"name"`
}
type BlockListDeleteRes ¶
type BlockListDeleteRes struct {
Found bool `json:"found"`
}
type CacheAddReq ¶
type CacheDebugRes ¶
type CacheDebugRes struct {
Entries []string `json:"entries"`
}
type CacheDeleteReq ¶
Click to show internal directories.
Click to hide internal directories.