Documentation ¶
Index ¶
- Variables
- type FactoryFlexibleHTTP
- type FlexibleHTTP
- func (fh *FlexibleHTTP) BuildRequest(credentialSubject map[string]interface{}) (*http.Request, error)
- func (fh *FlexibleHTTP) DecodeResponse(response map[string]interface{}) (map[string]interface{}, error)
- func (fh *FlexibleHTTP) Provide(credentialSubject map[string]interface{}) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type FactoryFlexibleHTTP ¶
type FactoryFlexibleHTTP struct {
// contains filtered or unexported fields
}
func NewFactoryFlexibleHTTP ¶
func NewFactoryFlexibleHTTP(configPath string, httpcli *http.Client) (FactoryFlexibleHTTP, error)
func (*FactoryFlexibleHTTP) ProduceFlexibleHTTP ¶
func (factory *FactoryFlexibleHTTP) ProduceFlexibleHTTP(credentialType string) (FlexibleHTTP, error)
type FlexibleHTTP ¶
type FlexibleHTTP struct { Settings settings `yaml:"settings"` Provider provider `yaml:"provider"` RequestSchema requestSchema `yaml:"requestSchema"` ResponseSchema responseSchema `yaml:"responseSchema"` // contains filtered or unexported fields }
func (*FlexibleHTTP) BuildRequest ¶
func (fh *FlexibleHTTP) BuildRequest(credentialSubject map[string]interface{}) (*http.Request, error)
func (*FlexibleHTTP) DecodeResponse ¶
func (fh *FlexibleHTTP) DecodeResponse(response map[string]interface{}) (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.