Documentation
¶
Index ¶
- func ServiceSliceToJSON(e []Service) json.RawMessage
- func ServiceToJSON(e Service) json.RawMessage
- func StatusSliceToJSON(in []Status) json.RawMessage
- type Service
- func (e Service) ArrayFieldIdentifierToType() map[string]types.FieldType
- func (e Service) EntityIdentifier() string
- func (e Service) FieldIdentfierToTypeMap() map[string]types.FieldType
- func (e Service) IsDependant() bool
- func (e Service) OrderedFieldIdentifiers() []string
- func (e Service) String() string
- func (e Service) ToJSON() json.RawMessage
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServiceSliceToJSON ¶
func ServiceSliceToJSON(e []Service) json.RawMessage
func ServiceToJSON ¶
func ServiceToJSON(e Service) json.RawMessage
func StatusSliceToJSON ¶
func StatusSliceToJSON(in []Status) json.RawMessage
Types ¶
type Service ¶
type Service struct {
UUID uuid.UUID `json:"uuid"`
Version int64 `json:"version"`
Identifier string `json:"identifier"`
Description string `json:"description"`
Render element_render.ElementRender `json:"render"`
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 NewServiceWithRandomValues ¶
func NewServiceWithRandomValues() Service
func ServiceFromJSON ¶
func ServiceFromJSON(data json.RawMessage) Service
func ServiceSliceFromJSON ¶
func ServiceSliceFromJSON(data json.RawMessage) []Service
func (Service) ArrayFieldIdentifierToType ¶
func (Service) EntityIdentifier ¶
func (Service) FieldIdentfierToTypeMap ¶
func (Service) IsDependant ¶
func (Service) OrderedFieldIdentifiers ¶ added in v1.0.35
func (Service) ToJSON ¶
func (e Service) 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.