Documentation
¶
Index ¶
- type ExecutionContext
- type ExecutionResult
- type HTTPRequest
- type HTTPResponse
- type LogSDK
- type Options
- type RequestSDK
- func (sdk *RequestSDK) GetBody() string
- func (sdk *RequestSDK) GetHeader(call goja.FunctionCall) goja.Value
- func (sdk *RequestSDK) GetHeaders() map[string]string
- func (sdk *RequestSDK) GetHost() string
- func (sdk *RequestSDK) GetMethod() string
- func (sdk *RequestSDK) GetPath() string
- func (sdk *RequestSDK) SetBody(body string)
- type ResponseSDK
- type SDK
- type UtilsSDK
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecutionContext ¶
type ExecutionResult ¶
type ExecutionResult struct {
ReturnValue interface{}
HTTPResponse *HTTPResponse
}
type HTTPRequest ¶
type Options ¶
type Options struct {
VM *goja.Runtime
Context *ExecutionContext
Result *ExecutionResult
}
type RequestSDK ¶
type RequestSDK struct {
// contains filtered or unexported fields
}
func NewRequestSDK ¶
func NewRequestSDK(opts *Options) *RequestSDK
func (*RequestSDK) GetBody ¶
func (sdk *RequestSDK) GetBody() string
func (*RequestSDK) GetHeader ¶
func (sdk *RequestSDK) GetHeader(call goja.FunctionCall) goja.Value
func (*RequestSDK) GetHeaders ¶
func (sdk *RequestSDK) GetHeaders() map[string]string
func (*RequestSDK) GetHost ¶
func (sdk *RequestSDK) GetHost() string
func (*RequestSDK) GetMethod ¶
func (sdk *RequestSDK) GetMethod() string
func (*RequestSDK) GetPath ¶
func (sdk *RequestSDK) GetPath() string
func (*RequestSDK) SetBody ¶
func (sdk *RequestSDK) SetBody(body string)
type ResponseSDK ¶
type ResponseSDK struct {
// contains filtered or unexported fields
}
func NewResponseSDK ¶
func NewResponseSDK(opts *Options) *ResponseSDK
type SDK ¶
type SDK struct {
Request *RequestSDK `json:"request"`
Response *ResponseSDK `json:"response"`
Utils *UtilsSDK `json:"utils"`
Log *LogSDK `json:"log"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.