Documentation
¶
Index ¶
- func ReviewConfigSliceToJSON(e []ReviewConfig) json.RawMessage
- func ReviewConfigToJSON(e ReviewConfig) json.RawMessage
- func StatusSliceToJSON(in []Status) json.RawMessage
- func TypeSliceToJSON(in []Type) json.RawMessage
- func UserRoleSliceToJSON(in []UserRole) json.RawMessage
- type ReviewConfig
- func (e ReviewConfig) ArrayFieldIdentifierToType() map[string]types.FieldType
- func (e ReviewConfig) EntityIdentifier() string
- func (e ReviewConfig) FieldIdentfierToTypeMap() map[string]types.FieldType
- func (e ReviewConfig) IsDependant() bool
- func (e ReviewConfig) String() string
- func (e ReviewConfig) ToJSON() json.RawMessage
- type Status
- type Type
- type UserRole
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReviewConfigSliceToJSON ¶
func ReviewConfigSliceToJSON(e []ReviewConfig) json.RawMessage
func ReviewConfigToJSON ¶
func ReviewConfigToJSON(e ReviewConfig) json.RawMessage
func StatusSliceToJSON ¶
func StatusSliceToJSON(in []Status) json.RawMessage
func TypeSliceToJSON ¶
func TypeSliceToJSON(in []Type) json.RawMessage
func UserRoleSliceToJSON ¶
func UserRoleSliceToJSON(in []UserRole) json.RawMessage
Types ¶
type ReviewConfig ¶
type ReviewConfig struct { UUID uuid.UUID `json:"uuid"` Types []Type `json:"types"` UserRoles []UserRole `json:"user_roles"` MinReviews int64 `json:"min_reviews"` 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 NewReviewConfigSliceWithRandomValues ¶
func NewReviewConfigSliceWithRandomValues(n int) []ReviewConfig
func NewReviewConfigWithRandomValues ¶
func NewReviewConfigWithRandomValues() ReviewConfig
func ReviewConfigFromJSON ¶
func ReviewConfigFromJSON(data json.RawMessage) ReviewConfig
func ReviewConfigSliceFromJSON ¶
func ReviewConfigSliceFromJSON(data json.RawMessage) []ReviewConfig
func (ReviewConfig) ArrayFieldIdentifierToType ¶
func (e ReviewConfig) ArrayFieldIdentifierToType() map[string]types.FieldType
func (ReviewConfig) EntityIdentifier ¶
func (e ReviewConfig) EntityIdentifier() string
func (ReviewConfig) FieldIdentfierToTypeMap ¶
func (e ReviewConfig) FieldIdentfierToTypeMap() map[string]types.FieldType
func (ReviewConfig) IsDependant ¶
func (e ReviewConfig) IsDependant() bool
func (ReviewConfig) String ¶
func (e ReviewConfig) String() string
func (ReviewConfig) ToJSON ¶
func (e ReviewConfig) 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 ¶
type UserRole ¶
type UserRole int64
func JSONToUserRoleSlice ¶
func JSONToUserRoleSlice(in json.RawMessage) []UserRole
func UserRoleFromString ¶
Click to show internal directories.
Click to hide internal directories.