Documentation
¶
Index ¶
- func StatusSliceToJSON(in []Status) json.RawMessage
- func StoreSliceToJSON(e []Store) json.RawMessage
- func StoreToJSON(e Store) json.RawMessage
- type Status
- type Store
- func (e Store) ArrayFieldIdentifierToType() map[string]types.FieldType
- func (e Store) EntityIdentifier() string
- func (e Store) FieldIdentfierToTypeMap() map[string]types.FieldType
- func (e Store) IsDependant() bool
- func (e Store) OrderedFieldIdentifiers() []string
- func (e Store) String() string
- func (e Store) ToJSON() json.RawMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StatusSliceToJSON ¶
func StatusSliceToJSON(in []Status) json.RawMessage
func StoreSliceToJSON ¶
func StoreSliceToJSON(e []Store) json.RawMessage
func StoreToJSON ¶
func StoreToJSON(e Store) json.RawMessage
Types ¶
type Status ¶
type Status int64
func JSONToStatusSlice ¶
func JSONToStatusSlice(in json.RawMessage) []Status
func StatusFromPointerString ¶
func StatusFromString ¶
type Store ¶
type Store struct {
UUID uuid.UUID `json:"uuid"`
Identifier string `json:"identifier"`
Description *string `json:"description"`
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 NewStoreWithRandomValues ¶
func NewStoreWithRandomValues() Store
func StoreFromJSON ¶
func StoreFromJSON(data json.RawMessage) Store
func StoreSliceFromJSON ¶
func StoreSliceFromJSON(data json.RawMessage) []Store
func (Store) ArrayFieldIdentifierToType ¶
func (Store) EntityIdentifier ¶
func (Store) FieldIdentfierToTypeMap ¶
func (Store) IsDependant ¶
func (Store) OrderedFieldIdentifiers ¶ added in v1.0.35
func (Store) ToJSON ¶
func (e Store) ToJSON() json.RawMessage
Click to show internal directories.
Click to hide internal directories.