Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChildObjects ¶
type ChildObjects struct {
URLTemplates []URLTemplate `xml:"URLTemplate"`
}
type CommonModule ¶
type CommonModule struct {
UUID string `xml:"uuid,attr"`
Properties Properties `xml:"Properties"`
}
type CommonTemplate ¶
type CommonTemplate struct {
UUID string `xml:"uuid,attr"`
Properties Properties `xml:"Properties"`
Comment string `xml:"Comment,omitempty"`
}
type HTTPService ¶
type HTTPService struct {
UUID string `xml:"uuid,attr"`
Properties Properties `xml:"Properties"`
ChildObjects ChildObjects `xml:"ChildObjects"`
}
type MetaDataObject ¶
type MetaDataObject struct {
XMLName xml.Name `xml:"MetaDataObject"`
HTTPService *HTTPService `xml:"HTTPService,omitempty"`
CommonTemplate *CommonTemplate `xml:"CommonTemplate,omitempty"`
CommonModule *CommonModule `xml:"CommonModule,omitempty"`
Version string `xml:"version,attr"`
Xmlns string `xml:"xmlns,attr"`
XmlnsApp string `xml:"xmlns:app,attr"`
XmlnsCfg string `xml:"xmlns:cfg,attr"`
XmlnsCmi string `xml:"xmlns:cmi,attr"`
XmlnsEnt string `xml:"xmlns:ent,attr"`
XmlnsLf string `xml:"xmlns:lf,attr"`
XmlnsStyle string `xml:"xmlns:style,attr"`
XmlnsSys string `xml:"xmlns:sys,attr"`
XmlnsV8 string `xml:"xmlns:v8,attr"`
XmlnsV8ui string `xml:"xmlns:v8ui,attr"`
XmlnsWeb string `xml:"xmlns:web,attr"`
XmlnsWin string `xml:"xmlns:win,attr"`
XmlnsXen string `xml:"xmlns:xen,attr"`
XmlnsXpr string `xml:"xmlns:xpr,attr"`
XmlnsXr string `xml:"xmlns:xr,attr"`
XmlnsXs string `xml:"xmlns:xs,attr"`
XmlnsXsi string `xml:"xmlns:xsi,attr"`
}
MetaDataObject represents the root XML element
type Method ¶
type Method struct {
UUID string `xml:"uuid,attr"`
Properties MethodProperties `xml:"Properties"`
}
type MethodProperties ¶
type Properties ¶
type Properties struct {
Name string `xml:"Name"`
Synonym Synonym `xml:"Synonym"`
Comment string `xml:"Comment,omitempty"`
// поля для HTTPService
RootURL string `xml:"RootURL,omitempty"`
ReuseSessions string `xml:"ReuseSessions,omitempty"`
SessionMaxAge int `xml:"SessionMaxAge,omitempty"`
// поля для CommonTemplate
TemplateType string `xml:"TemplateType,omitempty"`
// поля для CommonModule
Global *bool `xml:"Global,omitempty"`
ClientManagedApplication *bool `xml:"ClientManagedApplication,omitempty"`
Server *bool `xml:"Server,omitempty"`
ExternalConnection *bool `xml:"ExternalConnection,omitempty"`
ClientOrdinaryApplication *bool `xml:"ClientOrdinaryApplication,omitempty"`
ServerCall *bool `xml:"ServerCall,omitempty"`
Privileged *bool `xml:"Privileged,omitempty"`
ReturnValuesReuse string `xml:"ReturnValuesReuse,omitempty"`
}
type Service ¶
type Service struct {
Name string
BaseUrl string
Methods []*ServiceMethod
}
type ServiceMethod ¶
type ServiceMethod struct {
Name string
HttpMethod string
Url string
RequiredBodyParams []string
RequiredQueryParamsParams []string
BodyParams []string // параметры которые передаются через тело запроса в жсоне
QueryParams []string // параметры строки запроса /v1/customers?page=10&page_size=20
PathParams []string // параметры пути запроса /v1/customers/{id}
RespCodes map[int32]string
}
type Synonym ¶
type Synonym struct {
Items []SynonymItem `xml:"v8:item"`
}
type SynonymItem ¶
type TemplateChildObjects ¶
type TemplateChildObjects struct {
Methods []Method `xml:"Method"`
}
type TemplateProperties ¶
type URLTemplate ¶
type URLTemplate struct {
UUID string `xml:"uuid,attr"`
Properties TemplateProperties `xml:"Properties"`
ChildObjects *TemplateChildObjects `xml:"ChildObjects"`
}
Click to show internal directories.
Click to hide internal directories.