Documentation ¶
Index ¶
- Constants
- func SignagurePayloadData(payload interface{}, so *SignagureOption) string
- type CustomHTTPNotifierOption
- func WithHTTPHeader(name, value string) CustomHTTPNotifierOption
- func WithHTTPHeaders(headers map[string]string) CustomHTTPNotifierOption
- func WithHTTPProxies(proxies *definations.Proxies) CustomHTTPNotifierOption
- func WithSerializingType(serializingType string) CustomHTTPNotifierOption
- func WithSignatureConfig(signatureOption *SignagureOption) CustomHTTPNotifierOption
- func WithTLSConfig(tlsOptions *definations.TLSOptions) CustomHTTPNotifierOption
- type CustomQueryOption
- type HTTPNotifier
- type SignagureOption
Constants ¶
View Source
const ( WebServerTypeRestful = 1 WebServerTypeSOAP = 2 SignaturePositionHeader = "header" SignaturePositionBody = "body" SerializingTypeJSON = "json" SerializingTypeXML = "xml" SignatureVersionMD5 = "1.0" SignatureVersionHMAC = "2.0" SignatureVersionPUBKEY = "3.0" )
Constants
Variables ¶
This section is empty.
Functions ¶
func SignagurePayloadData ¶
func SignagurePayloadData(payload interface{}, so *SignagureOption) string
SignagurePayloadData signature
Types ¶
type CustomHTTPNotifierOption ¶
type CustomHTTPNotifierOption interface {
// contains filtered or unexported methods
}
CustomHTTPNotifierOption options
func WithHTTPHeader ¶
func WithHTTPHeader(name, value string) CustomHTTPNotifierOption
WithHTTPHeader options
func WithHTTPHeaders ¶
func WithHTTPHeaders(headers map[string]string) CustomHTTPNotifierOption
WithHTTPHeaders options
func WithHTTPProxies ¶
func WithHTTPProxies(proxies *definations.Proxies) CustomHTTPNotifierOption
WithHTTPProxies options
func WithSerializingType ¶
func WithSerializingType(serializingType string) CustomHTTPNotifierOption
WithSerializingType options
func WithSignatureConfig ¶
func WithSignatureConfig(signatureOption *SignagureOption) CustomHTTPNotifierOption
WithSignatureConfig options
func WithTLSConfig ¶
func WithTLSConfig(tlsOptions *definations.TLSOptions) CustomHTTPNotifierOption
WithTLSConfig options
type CustomQueryOption ¶
type CustomQueryOption interface {
// contains filtered or unexported methods
}
CustomQueryOption options
func WithSoapEvpHeaders ¶
func WithSoapEvpHeaders(soapEvpHeaders []interface{}) CustomQueryOption
WithSoapEvpHeaders options
type HTTPNotifier ¶
type HTTPNotifier struct { Endpoint string WebserverType int TLSOptions *definations.TLSOptions SignatureOption *SignagureOption Headers map[string]string SerializingType string SoapPortName string Proxies *definations.Proxies }
HTTPNotifier notifier
func CreateRestHTTPNotifier ¶
func CreateRestHTTPNotifier(endpoint string, options ...CustomHTTPNotifierOption) *HTTPNotifier
CreateRestHTTPNotifier creator
func CreateSOAPHTTPNotifier ¶
func CreateSOAPHTTPNotifier(endpoint string, soapPortName string, options ...CustomHTTPNotifierOption) *HTTPNotifier
CreateSOAPHTTPNotifier creator
func (*HTTPNotifier) DoQuery ¶
func (s *HTTPNotifier) DoQuery(action string, payload interface{}, response interface{}, options ...CustomQueryOption) error
DoQuery request
type SignagureOption ¶
type SignagureOption struct { SignatureField string SignaturePosition string SignatureVersion string SignatureKey string SigningFields []string SortingFieldsType signature.SignFieldsSortType SkipEmptyField bool }
SignagureOption options
Click to show internal directories.
Click to hide internal directories.