Documentation ¶
Index ¶
- type Interface
- func (i *Interface) ReportDetail()
- func (i *Interface) ReportEasy()
- func (i *Interface) ResponseCheck()
- func (i *Interface) RunbyInterface()
- func (i *Interface) SetLocal(key, val string)
- func (i *Interface) SetParam(key, val string)
- func (i *Interface) SetParamMap(val map[string]string)
- func (i *Interface) SetStruct(showstruct bool)
- func (i *Interface) ShowInfo()
- func (i *Interface) ShowRequst()
- func (i *Interface) ShowResponseJson(hasStruct, showjson bool)
- func (i *Interface) ShowResult()
- func (i *Interface) Test(paramMap map[string]string, showstruct bool)
- type Item
- type ItemInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface struct { Name string Desc string Conf config.InputConfig Request http.Req RequestPreFunc func(http.Req) RequestPostFunc func(*http.Res) RequestParmas *http.Params Response *http.Res ResponseStruct interface{} ResponseCheckStatusCode int ResponseCheckHeader map[string]string Error error Code int Timeout int64 LocalMap *localmap.LocalMap // contains filtered or unexported fields }
func (*Interface) ReportDetail ¶ added in v0.0.3
func (i *Interface) ReportDetail()
func (*Interface) ReportEasy ¶ added in v0.0.3
func (i *Interface) ReportEasy()
func (*Interface) ResponseCheck ¶ added in v0.0.3
func (i *Interface) ResponseCheck()
func (*Interface) RunbyInterface ¶ added in v0.0.3
func (i *Interface) RunbyInterface()
func (*Interface) SetParamMap ¶ added in v0.0.3
func (*Interface) ShowRequst ¶
func (i *Interface) ShowRequst()
func (*Interface) ShowResponseJson ¶
func (*Interface) ShowResult ¶
func (i *Interface) ShowResult()
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
func NewItem ¶ added in v0.0.3
func NewItem(name, desc string, inters ...ItemInterface) *Item
func (*Item) AddInterface ¶
type ItemInterface ¶ added in v0.0.3
func GetInterface ¶ added in v0.0.3
func GetInterface(env string, inter Interface, paramsMap map[string]string) ItemInterface
Click to show internal directories.
Click to hide internal directories.