Documentation
¶
Index ¶
- func RoleSliceToJSON(in []Role) json.RawMessage
- func StatusSliceToJSON(in []Status) json.RawMessage
- func UserProjectSliceToJSON(e []UserProject) json.RawMessage
- func UserProjectToJSON(e UserProject) json.RawMessage
- type Role
- type Status
- type UserProject
- func (e UserProject) ArrayFieldIdentifierToType() map[string]types.FieldType
- func (e UserProject) DependantFieldIdentifierToTypeMap() map[string]map[string]types.FieldType
- func (e UserProject) EntityIdentifier() string
- func (e UserProject) FieldIdentfierToTypeMap() map[string]types.FieldType
- func (e UserProject) IsDependant() bool
- func (e UserProject) OrderedFieldIdentifiers() []string
- func (e UserProject) PrimaryKeyIdentifier() string
- func (e UserProject) PrimaryKeyValue() string
- func (e UserProject) String() string
- func (e UserProject) ToJSON() json.RawMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RoleSliceToJSON ¶
func RoleSliceToJSON(in []Role) json.RawMessage
func StatusSliceToJSON ¶
func StatusSliceToJSON(in []Status) json.RawMessage
func UserProjectSliceToJSON ¶
func UserProjectSliceToJSON(e []UserProject) json.RawMessage
func UserProjectToJSON ¶
func UserProjectToJSON(e UserProject) json.RawMessage
Types ¶
type Role ¶
type Role int64
func JSONToRoleSlice ¶
func JSONToRoleSlice(in json.RawMessage) []Role
func RoleFromPointerString ¶
func RoleFromString ¶
type Status ¶
type Status int64
func JSONToStatusSlice ¶
func JSONToStatusSlice(in json.RawMessage) []Status
func StatusFromPointerString ¶
func StatusFromString ¶
type UserProject ¶
type UserProject struct {
UUID uuid.UUID `json:"uuid"`
UserUUID uuid.UUID `json:"user_uuid"`
UserEmail *string `json:"user_email"`
ProjectUUID uuid.UUID `json:"project_uuid"`
Role Role `json:"role"`
ReviewRequiredStructure bool `json:"review_required_structure"`
ReviewRequiredData bool `json:"review_required_data"`
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 NewUserProjectSliceWithRandomValues ¶
func NewUserProjectSliceWithRandomValues(n int) []UserProject
func NewUserProjectWithRandomValues ¶
func NewUserProjectWithRandomValues() UserProject
func UserProjectFromJSON ¶
func UserProjectFromJSON(data json.RawMessage) UserProject
func UserProjectSliceFromJSON ¶
func UserProjectSliceFromJSON(data json.RawMessage) []UserProject
func (UserProject) ArrayFieldIdentifierToType ¶
func (e UserProject) ArrayFieldIdentifierToType() map[string]types.FieldType
func (UserProject) DependantFieldIdentifierToTypeMap ¶
func (e UserProject) DependantFieldIdentifierToTypeMap() map[string]map[string]types.FieldType
func (UserProject) EntityIdentifier ¶
func (e UserProject) EntityIdentifier() string
func (UserProject) FieldIdentfierToTypeMap ¶
func (e UserProject) FieldIdentfierToTypeMap() map[string]types.FieldType
func (UserProject) IsDependant ¶
func (e UserProject) IsDependant() bool
func (UserProject) OrderedFieldIdentifiers ¶ added in v1.0.35
func (e UserProject) OrderedFieldIdentifiers() []string
func (UserProject) PrimaryKeyIdentifier ¶
func (e UserProject) PrimaryKeyIdentifier() string
func (UserProject) PrimaryKeyValue ¶
func (e UserProject) PrimaryKeyValue() string
func (UserProject) String ¶
func (e UserProject) String() string
func (UserProject) ToJSON ¶
func (e UserProject) ToJSON() json.RawMessage
Click to show internal directories.
Click to hide internal directories.