association

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AssociationArrayLengthMaximum = 100
	ReasonLengthMaximum           = 1000
	TypeBlob                      = "blob"
	TypeDatum                     = "datum"
	TypeImage                     = "image"
	TypeURL                       = "url"
)

Variables

This section is empty.

Functions

func Types

func Types() []string

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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