Documentation ¶
Index ¶
- Constants
- type Base
- func (b *Base) Init()
- func (b *Base) Meta() interface{}
- func (b *Base) Normalize(normalizer data.Normalizer) error
- func (b *Base) Parse(parser data.ObjectParser) error
- func (b *Base) SetActive(active bool)
- func (b *Base) SetCreatedTime(createdTime string)
- func (b *Base) SetCreatedUserID(createdUserID string)
- func (b *Base) SetDatasetID(datasetID string)
- func (b *Base) SetDeletedTime(deletedTime string)
- func (b *Base) SetDeletedUserID(deletedUserID string)
- func (b *Base) SetGroupID(groupID string)
- func (b *Base) SetModifiedTime(modifiedTime string)
- func (b *Base) SetModifiedUserID(modifiedUserID string)
- func (b *Base) SetUserID(userID string)
- func (b *Base) Validate(validator data.Validator) error
- type Meta
Constants ¶
View Source
const SchemaVersionCurrent = 3
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { Active bool `json:"-" bson:"_active"` CreatedTime string `json:"createdTime,omitempty" bson:"createdTime,omitempty"` CreatedUserID string `json:"createdUserId,omitempty" bson:"createdUserId,omitempty"` DeletedTime string `json:"deletedTime,omitempty" bson:"deletedTime,omitempty"` DeletedUserID string `json:"deletedUserId,omitempty" bson:"deletedUserId,omitempty"` GroupID string `json:"-" bson:"_groupId,omitempty"` GUID string `json:"guid,omitempty" bson:"guid,omitempty"` ID string `json:"id,omitempty" bson:"id,omitempty"` ModifiedTime string `json:"modifiedTime,omitempty" bson:"modifiedTime,omitempty"` ModifiedUserID string `json:"modifiedUserId,omitempty" bson:"modifiedUserId,omitempty"` SchemaVersion int `json:"-" bson:"_schemaVersion,omitempty"` Type string `json:"type,omitempty" bson:"type,omitempty"` UploadID string `json:"uploadId,omitempty" bson:"uploadId,omitempty"` UserID string `json:"-" bson:"_userId,omitempty"` Version int `json:"-" bson:"_version,omitempty"` Annotations *[]interface{} `json:"annotations,omitempty" bson:"annotations,omitempty"` ClockDriftOffset *int `json:"clockDriftOffset,omitempty" bson:"clockDriftOffset,omitempty"` ConversionOffset *int `json:"conversionOffset,omitempty" bson:"conversionOffset,omitempty"` DeviceID *string `json:"deviceId,omitempty" bson:"deviceId,omitempty"` DeviceTime *string `json:"deviceTime,omitempty" bson:"deviceTime,omitempty"` Payload *interface{} `json:"payload,omitempty" bson:"payload,omitempty"` Source *string `json:"source,omitempty" bson:"source,omitempty"` Time *string `json:"time,omitempty" bson:"time,omitempty"` TimezoneOffset *int `json:"timezoneOffset,omitempty" bson:"timezoneOffset,omitempty"` }
func (*Base) SetCreatedTime ¶ added in v1.0.0
func (*Base) SetCreatedUserID ¶ added in v1.0.0
func (*Base) SetDatasetID ¶
func (*Base) SetDeletedTime ¶ added in v1.0.0
func (*Base) SetDeletedUserID ¶ added in v1.0.0
func (*Base) SetGroupID ¶
func (*Base) SetModifiedTime ¶ added in v1.0.0
func (*Base) SetModifiedUserID ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.