Documentation ¶
Index ¶
- Variables
- func Exported(s string) (string, error)
- func GetCoder(mime []string) (interface{}, error)
- func NewTrackId() (string, error)
- func NewWSTrackId() (uint32, error)
- func Set(v reflect.Value, val reflect.Value)
- type Address
- type AttributeT
- type Base64Binary
- type Base64Hnd
- type BinaryHnd
- type BindingT
- type CallbackT
- type ComplexTypeT
- type ConcreteOperationT
- type Decoder
- type ElementT
- type Encoder
- type Endpoint
- type EnumerationT
- type ExtensionBaseT
- type FormDataHnd
- type FormURLHnd
- type GoUnmarshal
- type GoUnmarshalMessage
- type GoUnmarshalSchema
- type GooseG
- type HTTPContent
- type ImportT
- type JsonHnd
- type ListT
- type Message
- type MessageT
- type ModData
- type Operation
- type OperationBinding
- type OperationT
- type ParameterT
- type PartT
- type PortT
- type ProtocolBinding
- type RestrictionBaseT
- type SchemaT
- type SimpleTypeT
- type SoapBody
- type SoapBodyT
- type SoapData
- type SoapLiteralHnd
- type SubOperationT
- type TextHnd
- type WSClientT
- func (ws *WSClientT) Get(opName string, input map[string]interface{}, output interface{}) (int, error)
- func (ws *WSClientT) Post(opName string, input map[string]interface{}, output interface{}) (int, error)
- func (ws WSClientT) RedefineType(typeName, typeDef string) error
- func (ws *WSClientT) SetConv(fn func(string) string, targets ...interface{}) error
- func (ws *WSClientT) SetEndPoint(endpoint string, targets ...interface{}) error
- func (ws WSClientT) Types(pkg string) string
- type WSDLStruct
- type WSResponse
- type WSockClientT
- func (wsc *WSockClientT) On(evtName string, fn interface{}) error
- func (wsc *WSockClientT) Send(opName string, params map[string]interface{}, fn interface{}, fnfail func(int)) error
- func (wsc *WSockClientT) SendSync(opName string, params map[string]interface{}, fn interface{}, fnfail func(int)) error
- type WSockRequest
- type Writer
- type XMLnsT
- type XmlHnd
- type Xop
- type XopHnd
- type XsdSymT
- type XsdSymTabT
Constants ¶
This section is empty.
Variables ¶
View Source
var CliCerts []tls.Certificate
View Source
var ErrBadAddressLocationOfService error = errors.New("Bad address location of service")
View Source
var ErrBuffer error = errors.New("Error writing buffer")
View Source
var ErrEmptyResponse error = errors.New("Empty response")
View Source
var ErrEmptyString error = errors.New("Error empty string")
View Source
var ErrFetchingContract error = errors.New("Error fetching contract")
View Source
var ErrNilHandle error = errors.New("Err nil handle")
View Source
var ErrNoElementFoundOnMessage error = errors.New("no element found on message")
View Source
var ErrParmNotFound error = errors.New("Parameter not found")
View Source
var ErrProtocol error = errors.New("Err protocol syntax error")
View Source
var ErrServer error = errors.New("Err on server")
View Source
var ErrUndetectableType error = errors.New("Error undetectable type")
View Source
var ErrUnknownKind error = errors.New("Error unknown kind")
View Source
var ErrUnknownMethod error = errors.New("Error unknown method")
View Source
var ErrUnknownMimeType error = errors.New("Error unknown mimetype")
View Source
var ErrUnknownOperation error = errors.New("Error unknown operation")
View Source
var ErrWrite error = errors.New("Error writing stream")
View Source
var ErrWrongParmCount error = errors.New("Wrong parameter count")
View Source
var ErrWrongParmType error = errors.New("Wrong parameter type")
View Source
var ErrWrongReturnParmType error = errors.New("Wrong return parameter type")
View Source
var Fake bool // Se true, não vai acessar web service, vai usar arquivos XML locais
View Source
var IndentPrefix string = " "
View Source
var RootCAs *x509.CertPool
View Source
var TagsT []string
Whenever you add a new struct or new field to handle a xml tag, you must add the tag name in TagsT slice
Functions ¶
func NewTrackId ¶
func NewWSTrackId ¶
Types ¶
type AttributeT ¶
type Base64Binary ¶
type Base64Binary []byte
func (Base64Binary) MarshalXML ¶
func (bb Base64Binary) MarshalXML(e *xml.Encoder, start xml.StartElement) error
type BindingT ¶
type BindingT struct { Name string `xml:"name,attr"` Type string `xml:"type,attr"` Protocol ProtocolBinding `xml:"binding"` ConcreteOperation []ConcreteOperationT `xml:"operation"` }
type ComplexTypeT ¶
type ComplexTypeT struct { Name string `xml:"name,attr"` Sequence []ElementT `xml:"sequence>element"` ExtensionBase []ExtensionBaseT `xml:"complexContent>extension"` Attribute []AttributeT `xml:"attribute"` }
type ConcreteOperationT ¶
type ConcreteOperationT struct { Name string `xml:"name,attr"` Operation OperationBinding `xml:"operation"` InputSOAP SoapBody `xml:"input>body"` OutputSOAP SoapBody `xml:"output>body"` InputHTTP HTTPContent `xml:"input>content"` OutputHTTP HTTPContent `xml:"output>content"` }
type ElementT ¶
type ElementT struct { Name string `xml:"name,attr"` Type string `xml:"type,attr"` Documentation string `xml:"annotation>documentation"` Nillable string `xml:"nillable,attr"` MaxOccurs string `xml:"maxOccurs,attr"` MinOccurs string `xml:"minOccurs,attr"` ComplexTypes []ComplexTypeT `xml:"complexType"` }
TODO: fazer algum processamento para a partir da string nillable (true ou false) para boolean go
type EnumerationT ¶
type EnumerationT struct {
Value string `xml:"value,attr"`
}
type ExtensionBaseT ¶
type FormDataHnd ¶
type FormDataHnd struct{}
type FormURLHnd ¶
type FormURLHnd struct{}
type GoUnmarshal ¶
type GoUnmarshal WSDLStruct
Created only to cast the variables inside customized XML Unmarshal methods
type GoUnmarshalMessage ¶
type GoUnmarshalMessage Message
type GoUnmarshalSchema ¶
type GoUnmarshalSchema SchemaT
type HTTPContent ¶
type HTTPContent struct {
Type string `xml:"type,attr"`
}
type Message ¶
type Message struct { Name string `xml:"message,attr"` Namespace map[string]string NamespaceReverse map[string]string }
TODO: fazer algum processamento para preencher os vetores de parâmetros a partir do nome das mensagens
type ModData ¶
type ModData struct { Type reflect.Type Schema *stonelizard.SwaggerSchemaT }
type OperationBinding ¶
type OperationT ¶
type OperationT struct { Path string Schemes []string Encoder Encoder Decoder Decoder Output map[int]*ParameterT PathParm []*ParameterT HeaderParm []*ParameterT QueryParm []*ParameterT BodyParm *ParameterT FormParm []*ParameterT SubOperations map[string]*SubOperationT XModule string XOutput string XOutputVar string // contains filtered or unexported fields }
type ParameterT ¶
type ParameterT struct { Name string Kind reflect.Kind Type reflect.Type Title string Schema *stonelizard.SwaggerSchemaT Properties map[string]stonelizard.SwaggerSchemaT }
type ProtocolBinding ¶
type RestrictionBaseT ¶
type RestrictionBaseT struct { Base string `xml:"base,attr"` Enumeration []EnumerationT `xml:"enumeration"` }
type SchemaT ¶
type SchemaT struct { AttributeFormDefault string `xml:"attributeFormDefault,attr"` ElementFormDefault string `xml:"elementFormDefault,attr"` TargetNamespace string `xml:"targetNamespace,attr"` XMLAttr []xml.Attr `xml:",any,attr"` Namespace map[string]string NamespaceReverse map[string]string Import []ImportT `xml:"import"` Elements []ElementT `xml:"element"` SimpleTypes []SimpleTypeT `xml:"simpleType"` ComplexTypes []ComplexTypeT `xml:"complexType"` }
type SimpleTypeT ¶
type SimpleTypeT struct { Name string `xml:"name,attr"` RestrictionBase RestrictionBaseT `xml:"restriction"` List ListT `xml:"list"` }
type SoapLiteralHnd ¶
type SubOperationT ¶
type SubOperationT struct { Id string Parms []*ParameterT }
type WSClientT ¶
type WSClientT struct { Host string BasePath string Binding string Schemes []string Modules map[string]map[string]ModData TargetNamespace string Xmlns map[string]string Encoder Encoder Decoder Decoder Client *http.Client GetOperation map[string]*OperationT PostOperation map[string]*OperationT PutOperation map[string]*OperationT DeleteOperation map[string]*OperationT OptionsOperation map[string]*OperationT HeadOperation map[string]*OperationT PatchOperation map[string]*OperationT // contains filtered or unexported fields }
func NewFromReader ¶
func NewFromURL ¶
func NewFromURL(url string, client *http.Client) (map[string]Operation, error) {
func (WSClientT) RedefineType ¶
func (*WSClientT) SetEndPoint ¶
type WSDLStruct ¶
type WSDLStruct struct { TargetNamespace string `xml:"targetNamespace,attr"` XMLAttr []xml.Attr `xml:",any,attr"` Namespace map[string]string NamespaceReverse map[string]string Documentation string `xml:"documentation"` Message []MessageT `xml:"message"` PortType []Operation `xml:"portType>operation"` Binding []BindingT `xml:"binding"` Service []Endpoint `xml:"service"` Types []SchemaT `xml:"types>schema"` }
type WSResponse ¶
type WSResponse map[string]interface{}
type Operation = func(map[string]interface{}) (interface{},error)
type WSockClientT ¶
type WSockClientT struct { SubOperations map[string]*SubOperationT // contains filtered or unexported fields }
func (*WSockClientT) On ¶
func (wsc *WSockClientT) On(evtName string, fn interface{}) error
type WSockRequest ¶
type XMLnsT ¶
TODO: fazer algum processamento para quebrar a string e pegar os valores corretos para o alias e para o value
type XsdSymTabT ¶
Source Files ¶
- Base64Binary.MarshalXML.go
- Base64Hnd.Decode.go
- Base64Hnd.Encode.go
- BinaryHnd.Decode.go
- BinaryHnd.Encode.go
- Exported.go
- FormURLHnd.Decode.go
- FormURLHnd.Encode.go
- GetCoder.go
- JsonHnd.Decode.go
- JsonHnd.Encode.go
- NewFromReader.go
- NewFromURL.go
- NewTrackId.go
- NewWSTrackId.go
- Set.go
- SoapLiteralHnd.Decode.go
- SoapLiteralHnd.Encode.go
- TextHnd.Decode.go
- TextHnd.Encode.go
- WSClientT.Get.go
- WSClientT.Post.go
- WSClientT.RedefineType.go
- WSClientT.SetConv.go
- WSClientT.SetEndPoint.go
- WSClientT.Types.go
- WSClientT.prepareBody.go
- WSClientT.prepareHeaders.go
- WSClientT.prepareQuery.go
- WSClientT.prepareURL.go
- WSockClientT.On.go
- WSockClientT.Send.go
- WSockClientT.SendSync.go
- Writer.Write.go
- Xop.UnmarshalXML.go
- XsdSymT.Name.go
- bName.go
- convXsdToGo.go
- defs.go
- getKind.go
- getType.go
- listXsdTypes.go
- mkParms.go
Click to show internal directories.
Click to hide internal directories.