schema

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckValidate

func CheckValidate(v interface{}) error

Types

type AdditionalField

type AdditionalField struct {
	xml.Attr
}

func (*AdditionalField) MarshalXMLAttr

func (a *AdditionalField) MarshalXMLAttr(_ xml.Name) (xml.Attr, error)

func (*AdditionalField) UnmarshalXMLAttr

func (a *AdditionalField) UnmarshalXMLAttr(attr xml.Attr) error

type AdditionalFields

type AdditionalFields struct {
	AdditionalFields AdditionalFieldsType `xml:",any,attr"`
	CustomElements   []AnyHolder          `xml:",any"`
}

type AdditionalFieldsType

type AdditionalFieldsType []AdditionalField

type AnyHolder

type AnyHolder struct {
	MModel
}

func (*AnyHolder) MarshalXML

func (a *AnyHolder) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*AnyHolder) UnmarshalXML

func (a *AnyHolder) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type ConfLogControl

type ConfLogControl = TServiceWithMaxNonZero

"Element" ConfLogControl ...

type MModel

type MModel struct {
	XMLName xml.Name
	Attr    []xml.Attr `xml:",any,attr"`
	XML     string     `xml:",innerxml"`
}

type NodeID

type NodeID struct {
	NodeID *uuid.UUID `xml:"-" json:"node_id,omitempty"`
}

NodeID используется для маппинга элементов из бд и структуры

type SCL

type SCL struct {
	NodeID
	ConfLogControl []TServiceWithMaxNonZero `xml:"ConfLogControl" json:"ConfLogControl"`
}

"ComplexType" SCL ...

func (*SCL) Validate

func (t *SCL) Validate() error

type TServiceWithMaxNonZero

type TServiceWithMaxNonZero struct {
	NodeID
	MaxAttr TServiceWithMaxNonZeroMaxUnsignedInt `xml:"max,attr" json:"max"`
}

"ComplexType" TServiceWithMaxNonZero ...

func (*TServiceWithMaxNonZero) Validate

func (t *TServiceWithMaxNonZero) Validate() error

type TServiceWithMaxNonZeroMaxUnsignedInt

type TServiceWithMaxNonZeroMaxUnsignedInt uint32

"SimpleType" base:"xs:unsignedInt" TServiceWithMaxNonZeroMaxUnsignedInt ...

func (*TServiceWithMaxNonZeroMaxUnsignedInt) Validate

type UnsignedInt

type UnsignedInt string

func (*UnsignedInt) Validate

func (u *UnsignedInt) Validate() error

type Validator

type Validator interface {
	Validate() error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL