Documentation ¶
Index ¶
- Constants
- type CallReq
- type CallResp
- type CallRespData
- type CustomIspData
- type IKuai
- func (i *IKuai) AddCustomIsp(name, tag, ipgroup string) error
- func (i *IKuai) AddStreamDomain(iface, tag, srcAddr, domains string) error
- func (i *IKuai) DelCustomIsp(id string) error
- func (i *IKuai) DelCustomIspAll(cleanTag string) (err error)
- func (i *IKuai) DelCustomIspFromPreIds(preIds string) (err error)
- func (i *IKuai) DelStreamDomain(id string) error
- func (i *IKuai) DelStreamDomainAll(cleanTag string) (err error)
- func (i *IKuai) DelStreamDomainFromPreIds(preIds string) (err error)
- func (i *IKuai) Login(username, password string) error
- func (i *IKuai) PrepareDelCustomIspAll(tag string) (preIds string, err error)
- func (i *IKuai) PrepareDelStreamDomainAll(tag string) (preIds string, err error)
- func (i *IKuai) ShowCustomIspByComment() (result []CustomIspData, err error)
- func (i *IKuai) ShowStreamDomainByComment(comment string) (result []StreamDomainData, err error)
- type StreamDomainData
Constants ¶
View Source
const COMMENT_IKUAI_BYPASS = "IKUAI_BYPASS"
View Source
const FUNC_NAME_CUSTOM_ISP = "custom_isp"
View Source
const FuncNameStreamDomain = "stream_domain"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallResp ¶
type CallResp struct { ErrMsg string `json:"ErrMsg"` Result int `json:"Result"` RowID int `json:"RowId"` Data *CallRespData `json:"Data"` }
type CallRespData ¶
type CallRespData struct { Total int `json:"total"` Data interface{} `json:"data"` }
type CustomIspData ¶
type IKuai ¶
type IKuai struct {
// contains filtered or unexported fields
}
func (*IKuai) AddCustomIsp ¶
func (*IKuai) AddStreamDomain ¶
func (*IKuai) DelCustomIsp ¶
func (*IKuai) DelCustomIspAll ¶
func (*IKuai) DelCustomIspFromPreIds ¶
删除
func (*IKuai) DelStreamDomain ¶
func (*IKuai) DelStreamDomainAll ¶
DelStreamDomainAll 删除所有的域名分流规则
func (*IKuai) DelStreamDomainFromPreIds ¶
DelStreamDomainFromPreIds 从预备删除的id中删除
func (*IKuai) PrepareDelCustomIspAll ¶
PrepareDelCustomIspAll 预备删除
func (*IKuai) PrepareDelStreamDomainAll ¶
PrepareDelStreamDomainAll 为了防止误删,先查询,然后再删除
func (*IKuai) ShowCustomIspByComment ¶
func (i *IKuai) ShowCustomIspByComment() (result []CustomIspData, err error)
func (*IKuai) ShowStreamDomainByComment ¶
func (i *IKuai) ShowStreamDomainByComment(comment string) (result []StreamDomainData, err error)
Click to show internal directories.
Click to hide internal directories.