item

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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) SetLocal added in v0.0.3

func (i *Interface) SetLocal(key, val string)

func (*Interface) SetParam

func (i *Interface) SetParam(key, val string)

func (*Interface) SetParamMap added in v0.0.3

func (i *Interface) SetParamMap(val map[string]string)

func (*Interface) SetStruct

func (i *Interface) SetStruct(showstruct bool)

func (*Interface) ShowInfo

func (i *Interface) ShowInfo()

func (*Interface) ShowRequst

func (i *Interface) ShowRequst()

func (*Interface) ShowResponseJson

func (i *Interface) ShowResponseJson(hasStruct, showjson bool)

func (*Interface) ShowResult

func (i *Interface) ShowResult()

func (*Interface) Test

func (i *Interface) Test(paramMap map[string]string, showstruct bool)

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

func (i *Item) AddInterface(env string, myinterface Interface, params map[string]string)

func (*Item) Finish added in v0.0.3

func (i *Item) Finish()

func (*Item) Run

func (i *Item) Run()

func (*Item) SetConf added in v0.0.3

func (i *Item) SetConf(conf config.InputConfig) bool

func (*Item) Wait added in v0.0.3

func (i *Item) Wait()

type ItemInterface added in v0.0.3

type ItemInterface struct {
	Env             string
	InterfaceStruct Interface
	ParamsMap       map[string]string
}

func GetInterface added in v0.0.3

func GetInterface(env string, inter Interface, paramsMap map[string]string) ItemInterface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL