Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExecutionContext ¶
type ExecutionContext struct {
Method string
BaseUri url.URL
Route string
PathParameters []ExecutionParameter
QueryParameters []ExecutionParameter
HeaderParameters []ExecutionParameter
BodyParameters []ExecutionParameter
FormParameters []ExecutionParameter
AuthConfig config.AuthConfig
Insecure bool
Debug bool
}
func NewExecutionContext ¶
func NewExecutionContext( method string, uri url.URL, route string, pathParameters []ExecutionParameter, queryParameters []ExecutionParameter, headerParameters []ExecutionParameter, bodyParameters []ExecutionParameter, formParameters []ExecutionParameter, authConfig config.AuthConfig, insecure bool, debug bool) *ExecutionContext
type ExecutionParameter ¶
type ExecutionParameter struct {
Name string
Value interface{}
}
func NewExecutionParameter ¶
func NewExecutionParameter(name string, value interface{}) *ExecutionParameter
type Executor ¶
type Executor interface {
Call(context ExecutionContext) (string, error)
}
type FileReference ¶
func NewFileReference ¶
func NewFileReference(filename string, data []byte) *FileReference
type HttpExecutor ¶
type HttpExecutor struct {
Authenticators []auth.Authenticator
}
func (HttpExecutor) Call ¶
func (e HttpExecutor) Call(context ExecutionContext) (string, error)
type HttpLogger ¶
func (HttpLogger) LogRequest ¶
func (HttpLogger) LogResponse ¶
func (l HttpLogger) LogResponse(response *http.Response, debug bool) error
Click to show internal directories.
Click to hide internal directories.