Documentation ¶
Index ¶
- type AppenderClient
- func (c *AppenderClient) AppendBody(body interface{}) *AppenderClient
- func (c *AppenderClient) AppendBodyAsByte(body []byte) *AppenderClient
- func (c *AppenderClient) AppendBodyAsString(body string) *AppenderClient
- func (c *AppenderClient) AppendHeader(key string, value string) *AppenderClient
- func (c *AppenderClient) BuildRequest() *BuildContext
- func (c *AppenderClient) BuildRequestWithEcho(ctx echo.Context) *BuildContext
- func (c *AppenderClient) SetContentType(contentType string) *AppenderClient
- type BuildContext
- type Client
- type DependencyReducerContext
- type DependencyReducerItem
- type DependencyResolver
- type DependencySetter
- type Request
- type Response
- type StatusCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppenderClient ¶
type AppenderClient struct {
// contains filtered or unexported fields
}
func (*AppenderClient) AppendBody ¶
func (c *AppenderClient) AppendBody(body interface{}) *AppenderClient
func (*AppenderClient) AppendBodyAsByte ¶
func (c *AppenderClient) AppendBodyAsByte(body []byte) *AppenderClient
func (*AppenderClient) AppendBodyAsString ¶
func (c *AppenderClient) AppendBodyAsString(body string) *AppenderClient
func (*AppenderClient) AppendHeader ¶
func (c *AppenderClient) AppendHeader(key string, value string) *AppenderClient
func (*AppenderClient) BuildRequest ¶
func (c *AppenderClient) BuildRequest() *BuildContext
func (*AppenderClient) BuildRequestWithEcho ¶
func (c *AppenderClient) BuildRequestWithEcho(ctx echo.Context) *BuildContext
func (*AppenderClient) SetContentType ¶
func (c *AppenderClient) SetContentType(contentType string) *AppenderClient
type BuildContext ¶
type BuildContext struct {
// contains filtered or unexported fields
}
func (*BuildContext) Call ¶
func (c *BuildContext) Call(response interface{}, expectedStatusCodes []StatusCode) (*Response, error)
func (*BuildContext) SetReducer ¶
func (c *BuildContext) SetReducer(name string) *BuildContext
func (*BuildContext) SetResolver ¶
func (c *BuildContext) SetResolver(resolveContextNames ...string) *BuildContext
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewHttpClient ¶
func NewHttpClient() *Client
func (*Client) NewRequest ¶
type DependencyReducerContext ¶
type DependencyReducerContext struct {
Items []DependencyReducerItem `json:"items"`
}
type DependencyReducerItem ¶
type DependencyResolver ¶
type DependencyResolver struct {
// contains filtered or unexported fields
}
func (*DependencyResolver) ResolveContent ¶
func (c *DependencyResolver) ResolveContent() (string, string)
type DependencySetter ¶
type DependencySetter struct {
// contains filtered or unexported fields
}
func (*DependencySetter) SetContent ¶
func (c *DependencySetter) SetContent(content interface{})
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) Delete ¶
func (p *Request) Delete(uri string) *AppenderClient
func (*Request) Get ¶
func (p *Request) Get(uri string) *AppenderClient
func (*Request) Patch ¶
func (p *Request) Patch(uri string) *AppenderClient
func (*Request) Post ¶
func (p *Request) Post(uri string) *AppenderClient
func (*Request) Put ¶
func (p *Request) Put(uri string) *AppenderClient
type Response ¶
type Response struct {
StatusCode StatusCode
}
type StatusCode ¶
type StatusCode int
Click to show internal directories.
Click to hide internal directories.