store

package
v1.0.43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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
const (
	STATUS_INVALID Status = iota
	STATUS_ACTIVE
	STATUS_DISABLED
)

func JSONToStatusSlice

func JSONToStatusSlice(in json.RawMessage) []Status

func StatusFromPointerString

func StatusFromPointerString(in *string) Status

func StatusFromString

func StatusFromString(in string) Status

func (Status) String

func (e Status) String() string

func (Status) StringPtr

func (e Status) StringPtr() *string

func (Status) ToInt64

func (e Status) ToInt64() int64

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 NewStoreSliceWithRandomValues

func NewStoreSliceWithRandomValues(n int) []Store

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 (e Store) ArrayFieldIdentifierToType() map[string]types.FieldType

func (Store) EntityIdentifier

func (e Store) EntityIdentifier() string

func (Store) FieldIdentfierToTypeMap

func (e Store) FieldIdentfierToTypeMap() map[string]types.FieldType

func (Store) IsDependant

func (e Store) IsDependant() bool

func (Store) OrderedFieldIdentifiers added in v1.0.35

func (e Store) OrderedFieldIdentifiers() []string

func (Store) String

func (e Store) String() string

func (Store) ToJSON

func (e Store) ToJSON() json.RawMessage

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL