Documentation ¶
Overview ¶
Package cgw
@author: xwc1125
Index ¶
- Variables
- type CgwInterfacePart
- func (p *CgwInterfacePart) Name() string
- func (p *CgwInterfacePart) ParseConf(in []byte) (interface{}, error)
- func (p *CgwInterfacePart) Priority() int64
- func (p *CgwInterfacePart) RequestFilter(conf interface{}, r *fasthttp.Request, w *fasthttp.Response) (err error)
- func (p *CgwInterfacePart) Version() string
- type CgwInterfacePartConf
- type InterfaceInfo
- type InterfacePart
- type InterfaceReq
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConfConvert = fmt.Errorf("convert to conf err")
)
Functions ¶
This section is empty.
Types ¶
type CgwInterfacePart ¶
type CgwInterfacePart struct { plugins.DefaultPlugin // contains filtered or unexported fields }
func (*CgwInterfacePart) Name ¶
func (p *CgwInterfacePart) Name() string
func (*CgwInterfacePart) ParseConf ¶
func (p *CgwInterfacePart) ParseConf(in []byte) (interface{}, error)
func (*CgwInterfacePart) Priority ¶
func (p *CgwInterfacePart) Priority() int64
func (*CgwInterfacePart) RequestFilter ¶
func (*CgwInterfacePart) Version ¶
func (p *CgwInterfacePart) Version() string
type CgwInterfacePartConf ¶
type CgwInterfacePartConf struct { Disable bool `json:"disable"` Interfaces []InterfaceInfo `json:"interfaces"` // InterfaceName-->api info }
type InterfaceInfo ¶
type InterfacePart ¶
type InterfacePart struct { InterfaceName string `json:"interfaceName,omitempty"` Param interface{} `json:"para"` // json params for different products }
InterfacePart defines the inner content of cgw-request
type InterfaceReq ¶
type InterfaceReq struct { InterfaceName string `json:"InterfaceName" comment:"InterfaceName"` Data interface{} `json:"Data,omitempty" comment:"业务内容"` }
Click to show internal directories.
Click to hide internal directories.