Documentation
¶
Index ¶
- func EnumSliceToJSON(e []Enum) json.RawMessage
- func EnumToJSON(e Enum) json.RawMessage
- func StatusSliceToJSON(in []Status) json.RawMessage
- type Enum
- func (e Enum) ArrayFieldIdentifierToType() map[string]types.FieldType
- func (e Enum) EntityIdentifier() string
- func (e Enum) FieldIdentfierToTypeMap() map[string]types.FieldType
- func (e Enum) IsDependant() bool
- func (e Enum) OrderedFieldIdentifiers() []string
- func (e Enum) String() string
- func (e Enum) ToJSON() json.RawMessage
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnumSliceToJSON ¶
func EnumSliceToJSON(e []Enum) json.RawMessage
func EnumToJSON ¶
func EnumToJSON(e Enum) json.RawMessage
func StatusSliceToJSON ¶
func StatusSliceToJSON(in []Status) json.RawMessage
Types ¶
type Enum ¶
type Enum struct {
UUID uuid.UUID `json:"uuid"`
Version int64 `json:"version"`
Identifier string `json:"identifier"`
StaticValues []enum_value.EnumValue `json:"static_values"`
RemoteValues bool `json:"remote_values"`
Status Status `json:"status"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
CreatedByUUID uuid.UUID `json:"created_by_uuid"`
UpdatedByUUID uuid.UUID `json:"updated_by_uuid"`
}
func EnumFromJSON ¶
func EnumFromJSON(data json.RawMessage) Enum
func EnumSliceFromJSON ¶
func EnumSliceFromJSON(data json.RawMessage) []Enum
func NewEnumWithRandomValues ¶
func NewEnumWithRandomValues() Enum
func (Enum) ArrayFieldIdentifierToType ¶
func (Enum) EntityIdentifier ¶
func (Enum) FieldIdentfierToTypeMap ¶
func (Enum) IsDependant ¶
func (Enum) OrderedFieldIdentifiers ¶ added in v1.0.35
func (Enum) ToJSON ¶
func (e Enum) ToJSON() json.RawMessage
type Status ¶
type Status int64
func JSONToStatusSlice ¶
func JSONToStatusSlice(in json.RawMessage) []Status
func StatusFromPointerString ¶
func StatusFromString ¶
Click to show internal directories.
Click to hide internal directories.