Documentation ¶
Index ¶
Constants ¶
View Source
const ( IDLengthMaximum = 100 NameLengthMaximum = 100 TimeFormat = time.RFC3339Nano TypeDevice = "device" TypeManual = "manual" TypeService = "service" VersionLengthMaximum = 100 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Origin ¶
type Origin struct { ID *string `json:"id,omitempty" bson:"id,omitempty"` Name *string `json:"name,omitempty" bson:"name,omitempty"` Payload *metadata.Metadata `json:"payload,omitempty" bson:"payload,omitempty"` Time *string `json:"time,omitempty" bson:"time,omitempty"` Type *string `json:"type,omitempty" bson:"type,omitempty"` Version *string `json:"version,omitempty" bson:"version,omitempty"` }
func ParseOrigin ¶
func ParseOrigin(parser structure.ObjectParser) *Origin
func (*Origin) Parse ¶
func (o *Origin) Parse(parser structure.ObjectParser)
Click to show internal directories.
Click to hide internal directories.