Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMatcher ¶
IMatcher 由所有config.mock.matchers.xxx模块实现,供Matchers模块注册资源使用 设计考量:不一定每个模块自身都会实现mock.Matcher,因此,实现IMatcher更具通用性
type Matcher ¶
type Matcher struct { Name string `json:"name"` ConfigRaw json.RawMessage `json:"config" caddy:"namespace=config.mock.matchers inline_key=matcher"` }
Client define a http client config
type Matchers ¶
type Matchers struct {
Matchers []Matcher `json:"matchers,omitempty"`
}
Clients 定义HTTP客户端,便于多个包共享连接池
func (Matchers) CaddyModule ¶
func (c Matchers) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
Click to show internal directories.
Click to hide internal directories.