Documentation
¶
Index ¶
- func IndexSliceToJSON(e []Index) json.RawMessage
- func IndexToJSON(e Index) json.RawMessage
- func StatusSliceToJSON(in []Status) json.RawMessage
- func TypeSliceToJSON(in []Type) json.RawMessage
- type Index
- func (e Index) ArrayFieldIdentifierToType() map[string]types.FieldType
- func (e Index) EntityIdentifier() string
- func (e Index) FieldIdentfierToTypeMap() map[string]types.FieldType
- func (e Index) IsDependant() bool
- func (e Index) OrderedFieldIdentifiers() []string
- func (e Index) String() string
- func (e Index) ToJSON() json.RawMessage
- type Status
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IndexSliceToJSON ¶
func IndexSliceToJSON(e []Index) json.RawMessage
func IndexToJSON ¶
func IndexToJSON(e Index) json.RawMessage
func StatusSliceToJSON ¶
func StatusSliceToJSON(in []Status) json.RawMessage
func TypeSliceToJSON ¶
func TypeSliceToJSON(in []Type) json.RawMessage
Types ¶
type Index ¶
type Index struct {
UUID uuid.UUID `json:"uuid"`
Identifier string `json:"identifier"`
Type Type `json:"type"`
Fields []index_field.IndexField `json:"fields"`
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 IndexFromJSON ¶
func IndexFromJSON(data json.RawMessage) Index
func IndexSliceFromJSON ¶
func IndexSliceFromJSON(data json.RawMessage) []Index
func NewIndexWithRandomValues ¶
func NewIndexWithRandomValues() Index
func (Index) ArrayFieldIdentifierToType ¶
func (Index) EntityIdentifier ¶
func (Index) FieldIdentfierToTypeMap ¶
func (Index) IsDependant ¶
func (Index) OrderedFieldIdentifiers ¶ added in v1.0.35
func (Index) ToJSON ¶
func (e Index) ToJSON() json.RawMessage
type Status ¶
type Status int64
func JSONToStatusSlice ¶
func JSONToStatusSlice(in json.RawMessage) []Status
func StatusFromPointerString ¶
func StatusFromString ¶
type Type ¶
type Type int64
func JSONToTypeSlice ¶
func JSONToTypeSlice(in json.RawMessage) []Type
func TypeFromPointerString ¶
func TypeFromString ¶
Click to show internal directories.
Click to hide internal directories.