Documentation ¶
Index ¶
- type Behavior
- type InjectBuilder
- type IsBuilder
- func (builder *IsBuilder) Body(body string) *IsBuilder
- func (builder *IsBuilder) Build() IsElement
- func (builder *IsBuilder) Decorate(decorateFn string) *IsBuilder
- func (builder *IsBuilder) Header(header string, value string) *IsBuilder
- func (builder *IsBuilder) StatusCode(statusCode int) *IsBuilder
- func (builder *IsBuilder) Wait(waitTime int) *IsBuilder
- type IsElement
- type IsResponse
- type ProxyBuilder
- func (builder *ProxyBuilder) Build() ProxyElement
- func (builder *ProxyBuilder) Decorate(decorateFn string) *ProxyBuilder
- func (builder *ProxyBuilder) Mode(mode string) *ProxyBuilder
- func (builder *ProxyBuilder) To(to string) *ProxyBuilder
- func (builder *ProxyBuilder) Wait(waitTime int) *ProxyBuilder
- type ProxyElement
- type ProxyResponse
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InjectBuilder ¶
type InjectBuilder struct {
// contains filtered or unexported fields
}
func Inject ¶
func Inject() *InjectBuilder
func (*InjectBuilder) Build ¶
func (builder *InjectBuilder) Build() Response
func (*InjectBuilder) Fn ¶
func (builder *InjectBuilder) Fn(functionCode string) *InjectBuilder
type IsBuilder ¶
type IsBuilder struct {
// contains filtered or unexported fields
}
func (*IsBuilder) StatusCode ¶
type IsElement ¶
type IsElement struct { Is *IsResponse `json:"is"` Behavior *Behavior `json:"_behaviors,omitempty"` }
type IsResponse ¶
type ProxyBuilder ¶
type ProxyBuilder struct {
// contains filtered or unexported fields
}
func Proxy ¶
func Proxy() *ProxyBuilder
func (*ProxyBuilder) Build ¶
func (builder *ProxyBuilder) Build() ProxyElement
func (*ProxyBuilder) Decorate ¶
func (builder *ProxyBuilder) Decorate(decorateFn string) *ProxyBuilder
func (*ProxyBuilder) Mode ¶
func (builder *ProxyBuilder) Mode(mode string) *ProxyBuilder
func (*ProxyBuilder) To ¶
func (builder *ProxyBuilder) To(to string) *ProxyBuilder
func (*ProxyBuilder) Wait ¶
func (builder *ProxyBuilder) Wait(waitTime int) *ProxyBuilder
type ProxyElement ¶
type ProxyElement struct { Proxy *ProxyResponse `json:"proxy"` Behavior *Behavior `json:"_behaviors,omitempty"` }
func (ProxyElement) Type ¶
func (i ProxyElement) Type() string
type ProxyResponse ¶
Click to show internal directories.
Click to hide internal directories.