Documentation
¶
Index ¶
- func RoleSliceToJSON(in []Role) json.RawMessage
- func VisibilitySliceToJSON(e []Visibility) json.RawMessage
- func VisibilityToJSON(e Visibility) json.RawMessage
- type Role
- type Visibility
- func (e Visibility) ArrayFieldIdentifierToType() map[string]types.FieldType
- func (e Visibility) EntityIdentifier() string
- func (e Visibility) FieldIdentfierToTypeMap() map[string]types.FieldType
- func (e Visibility) IsDependant() bool
- func (e Visibility) String() string
- func (e Visibility) ToJSON() json.RawMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RoleSliceToJSON ¶
func RoleSliceToJSON(in []Role) json.RawMessage
func VisibilitySliceToJSON ¶
func VisibilitySliceToJSON(e []Visibility) json.RawMessage
func VisibilityToJSON ¶
func VisibilityToJSON(e Visibility) json.RawMessage
Types ¶
type Role ¶
type Role int64
func JSONToRoleSlice ¶
func JSONToRoleSlice(in json.RawMessage) []Role
func RoleFromPointerString ¶
func RoleFromString ¶
type Visibility ¶
type Visibility struct { UUID uuid.UUID `json:"uuid"` Description string `json:"description"` OrganizationUUIDs []uuid.UUID `json:"organization_uuids"` TeamUUIDs []uuid.UUID `json:"team_uuids"` UserUUIDs []uuid.UUID `json:"user_uuids"` Roles []Role `json:"roles"` 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 NewVisibilitySliceWithRandomValues ¶
func NewVisibilitySliceWithRandomValues(n int) []Visibility
func NewVisibilityWithRandomValues ¶
func NewVisibilityWithRandomValues() Visibility
func VisibilityFromJSON ¶
func VisibilityFromJSON(data json.RawMessage) Visibility
func VisibilitySliceFromJSON ¶
func VisibilitySliceFromJSON(data json.RawMessage) []Visibility
func (Visibility) ArrayFieldIdentifierToType ¶
func (e Visibility) ArrayFieldIdentifierToType() map[string]types.FieldType
func (Visibility) EntityIdentifier ¶
func (e Visibility) EntityIdentifier() string
func (Visibility) FieldIdentfierToTypeMap ¶
func (e Visibility) FieldIdentfierToTypeMap() map[string]types.FieldType
func (Visibility) IsDependant ¶
func (e Visibility) IsDependant() bool
func (Visibility) String ¶
func (e Visibility) String() string
func (Visibility) ToJSON ¶
func (e Visibility) ToJSON() json.RawMessage
Click to show internal directories.
Click to hide internal directories.