Documentation ¶
Index ¶
Constants ¶
View Source
const ( AssociationArrayLengthMaximum = 100 ReasonLengthMaximum = 1000 TypeBlob = "blob" TypeDatum = "datum" TypeImage = "image" TypeURL = "url" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Association ¶
type Association struct { ID *string `json:"id,omitempty" bson:"id,omitempty"` Reason *string `json:"reason,omitempty" bson:"reason,omitempty"` Type *string `json:"type,omitempty" bson:"type,omitempty"` URL *string `json:"url,omitempty" bson:"url,omitempty"` }
func NewAssociation ¶
func NewAssociation() *Association
func ParseAssociation ¶
func ParseAssociation(parser structure.ObjectParser) *Association
func (*Association) Parse ¶
func (a *Association) Parse(parser structure.ObjectParser)
func (*Association) Validate ¶
func (a *Association) Validate(validator structure.Validator)
type AssociationArray ¶
type AssociationArray []*Association
func NewAssociationArray ¶
func NewAssociationArray() *AssociationArray
func ParseAssociationArray ¶
func ParseAssociationArray(parser structure.ArrayParser) *AssociationArray
func (*AssociationArray) Parse ¶
func (a *AssociationArray) Parse(parser structure.ArrayParser)
func (*AssociationArray) Validate ¶
func (a *AssociationArray) Validate(validator structure.Validator)
Click to show internal directories.
Click to hide internal directories.