Documentation
¶
Index ¶
- type DeepMockClient
- func (c *DeepMockClient) CreateMockRule(rule *types.RuleDO) (*types.RuleDO, error)
- func (c *DeepMockClient) DeleteMockRule(rid string) error
- func (c *DeepMockClient) ExportRules() ([]*types.RuleDO, error)
- func (c *DeepMockClient) GetMockRule(rid string) (*types.RuleDO, error)
- func (c *DeepMockClient) ImportRules(rules ...*types.RuleDO) error
- func (c *DeepMockClient) PatchMockRule(rule *types.RuleDO) (*types.RuleDO, error)
- func (c *DeepMockClient) PutMockRule(rule *types.RuleDO) (*types.RuleDO, error)
- type DeepMockError
- type Response
- type RuleResponse
- type RulesResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeepMockClient ¶
type DeepMockClient struct {
// contains filtered or unexported fields
}
DeepMockClient Client对象
func NewDeepMockClient ¶
func NewDeepMockClient(url string) *DeepMockClient
NewDeepMockClient client的工厂函数
func (*DeepMockClient) CreateMockRule ¶
CreateMockRule 创建规则接口
func (*DeepMockClient) DeleteMockRule ¶
func (c *DeepMockClient) DeleteMockRule(rid string) error
DeleteMockRule 删除规则接口
func (*DeepMockClient) ExportRules ¶
func (c *DeepMockClient) ExportRules() ([]*types.RuleDO, error)
ExportRules 导出所有规则
func (*DeepMockClient) GetMockRule ¶
func (c *DeepMockClient) GetMockRule(rid string) (*types.RuleDO, error)
GetMockRule 获取规则接口
func (*DeepMockClient) ImportRules ¶
func (c *DeepMockClient) ImportRules(rules ...*types.RuleDO) error
ImportRules 导入规则
func (*DeepMockClient) PatchMockRule ¶
PatchMockRule 部分更新规则接口
func (*DeepMockClient) PutMockRule ¶
PutMockRule 全量更新规则接口
type DeepMockError ¶
type DeepMockError struct {
// contains filtered or unexported fields
}
DeepMockError client error结构体
func NewDeepMockError ¶
func NewDeepMockError(res Response) *DeepMockError
NewDeepMockError client error工厂函数
type RuleResponse ¶
RuleResponse 单规则接口返回报文
type RulesResponse ¶
RulesResponse 多规则接口返回报文
Click to show internal directories.
Click to hide internal directories.