Documentation
¶
Index ¶
- func ProjectSliceToJSON(e []Project) json.RawMessage
- func ProjectToJSON(e Project) json.RawMessage
- func StatusSliceToJSON(in []Status) json.RawMessage
- type Project
- func (e Project) ArrayFieldIdentifierToType() map[string]types.FieldType
- func (e Project) DependantFieldIdentifierToTypeMap() map[string]map[string]types.FieldType
- func (e Project) EntityIdentifier() string
- func (e Project) FieldIdentfierToTypeMap() map[string]types.FieldType
- func (e Project) IsDependant() bool
- func (e Project) PrimaryKeyIdentifier() string
- func (e Project) PrimaryKeyValue() string
- func (e Project) String() string
- func (e Project) ToJSON() json.RawMessage
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProjectSliceToJSON ¶
func ProjectSliceToJSON(e []Project) json.RawMessage
func ProjectToJSON ¶
func ProjectToJSON(e Project) json.RawMessage
func StatusSliceToJSON ¶
func StatusSliceToJSON(in []Status) json.RawMessage
Types ¶
type Project ¶
type Project struct { UUID uuid.UUID `json:"uuid"` Version int64 `json:"version"` Name string `json:"name"` Description string `json:"description"` Tags []string `json:"tags"` URL string `json:"url"` OwnerUUID uuid.UUID `json:"owner_uuid"` TeamUUID uuid.UUID `json:"team_uuid"` ProjectExtensions []project_extension.ProjectExtension `json:"project_extensions"` 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 NewProjectWithRandomValues ¶
func NewProjectWithRandomValues() Project
func ProjectFromJSON ¶
func ProjectFromJSON(data json.RawMessage) Project
func ProjectSliceFromJSON ¶
func ProjectSliceFromJSON(data json.RawMessage) []Project
func (Project) ArrayFieldIdentifierToType ¶
func (Project) DependantFieldIdentifierToTypeMap ¶
func (Project) EntityIdentifier ¶
func (Project) FieldIdentfierToTypeMap ¶
func (Project) IsDependant ¶
func (Project) PrimaryKeyIdentifier ¶
func (Project) PrimaryKeyValue ¶
func (Project) ToJSON ¶
func (e Project) 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.