Documentation ¶
Index ¶
- type RawBody
- type ServerSideTransformerConnector
- func (r *ServerSideTransformerConnector) GetMetaInfo(resourceOptions map[string]interface{}) (common.MetaInfoResult, error)
- func (r *ServerSideTransformerConnector) Run(resourceOptions map[string]interface{}, actionOptions map[string]interface{}, ...) (common.RuntimeResult, error)
- func (r *ServerSideTransformerConnector) TestConnection(resourceOptions map[string]interface{}) (common.ConnectionResult, error)
- func (r *ServerSideTransformerConnector) ValidateActionTemplate(actionOptions map[string]interface{}) (common.ValidateResult, error)
- func (r *ServerSideTransformerConnector) ValidateResourceOptions(resourceOptions map[string]interface{}) (common.ValidateResult, error)
- type ServerSideTransformerTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerSideTransformerConnector ¶
type ServerSideTransformerConnector struct {
Action ServerSideTransformerTemplate
}
func (*ServerSideTransformerConnector) GetMetaInfo ¶
func (r *ServerSideTransformerConnector) GetMetaInfo(resourceOptions map[string]interface{}) (common.MetaInfoResult, error)
server side transformer have no meta info
func (*ServerSideTransformerConnector) Run ¶
func (r *ServerSideTransformerConnector) Run(resourceOptions map[string]interface{}, actionOptions map[string]interface{}, rawActionOptions map[string]interface{}) (common.RuntimeResult, error)
func (*ServerSideTransformerConnector) TestConnection ¶
func (r *ServerSideTransformerConnector) TestConnection(resourceOptions map[string]interface{}) (common.ConnectionResult, error)
server side transformer have no test connection method
func (*ServerSideTransformerConnector) ValidateActionTemplate ¶
func (r *ServerSideTransformerConnector) ValidateActionTemplate(actionOptions map[string]interface{}) (common.ValidateResult, error)
func (*ServerSideTransformerConnector) ValidateResourceOptions ¶
func (r *ServerSideTransformerConnector) ValidateResourceOptions(resourceOptions map[string]interface{}) (common.ValidateResult, error)
server side transformer have no validate resource options method
type ServerSideTransformerTemplate ¶
type ServerSideTransformerTemplate struct { URL string Method string `validate:"oneof=GET POST PUT PATCH DELETE HEAD OPTIONS"` BodyType string `validate:"oneof=none form-data x-www-form-urlencoded raw json binary"` UrlParams []map[string]string Headers []map[string]string Body interface{} `validate:"required_unless=BodyType none"` Cookies []map[string]string }
func (*ServerSideTransformerTemplate) ReflectBodyToRaw ¶
func (t *ServerSideTransformerTemplate) ReflectBodyToRaw() *RawBody
Click to show internal directories.
Click to hide internal directories.