Documentation ¶
Index ¶
- Constants
- func NewID(relations frozen.Map) (frozen.Map, uint64)
- func PanicIfRequiredFieldsNotSet(entityMasks []uint64, requiredFieldsMasks []uint64, fieldsCommalist string)
- func UpdateMaskForFieldButPanicIfAlreadySet(entityMask *uint64, fieldMask uint64)
- type DateTimeString
- type EntityTypeStaticMetadata
- type ModelMetadata
- type Relation
- type RelationMapBuilder
- type RelationMapExtractor
Constants ¶
View Source
const ModelMetadataKey modelMetadataKey = 0
Variables ¶
This section is empty.
Functions ¶
func PanicIfRequiredFieldsNotSet ¶
func PanicIfRequiredFieldsNotSet(entityMasks []uint64, requiredFieldsMasks []uint64, fieldsCommalist string)
PanicIfRequiredFieldsNotSet checks the mask and panics if any required fields were not set. It takes a fieldsCommaList instead of a slice to ensure efficiency of successful scenarios.
func UpdateMaskForFieldButPanicIfAlreadySet ¶
UpdateMaskForFieldButPanicIfAlreadySet checks the mask and panics if the field was already set.
Types ¶
type DateTimeString ¶
type DateTimeString string
func NewDateTimeString ¶
func NewDateTimeString(t *time.Time) *DateTimeString
type ModelMetadata ¶
type ModelMetadata struct {
LastID uint64
}
ModelMetadata holds extra data common to all relgom-generated models.
type RelationMapBuilder ¶
type RelationMapBuilder struct {
// contains filtered or unexported fields
}
func NewRelationMapBuilder ¶
func NewRelationMapBuilder(relations frozen.Map) RelationMapBuilder
func (RelationMapBuilder) Set ¶
func (b RelationMapBuilder) Set(name string, key interface{})
type RelationMapExtractor ¶
type RelationMapExtractor struct {
// contains filtered or unexported fields
}
func NewRelationMapExtractor ¶
func NewRelationMapExtractor(relations frozen.Map) RelationMapExtractor
func (RelationMapExtractor) Set ¶
func (b RelationMapExtractor) Set(name string, key, relationDataPtr interface{})
func (RelationMapExtractor) UnmarshalRelationDataJSON ¶
func (b RelationMapExtractor) UnmarshalRelationDataJSON(data []byte) (frozen.Map, error)
Click to show internal directories.
Click to hide internal directories.