user_team

package
v1.0.43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 UserTeamSliceToJSON

func UserTeamSliceToJSON(e []UserTeam) json.RawMessage

func UserTeamToJSON

func UserTeamToJSON(e UserTeam) json.RawMessage

Types

type Role

type Role int64
const (
	ROLE_INVALID Role = iota
	ROLE_ADMIN
	ROLE_DEVELOPER
	ROLE_DATA_MANAGER
	ROLE_DATA_ANALYST
	ROLE_VIEWER
)

func JSONToRoleSlice

func JSONToRoleSlice(in json.RawMessage) []Role

func RoleFromPointerString

func RoleFromPointerString(in *string) Role

func RoleFromString

func RoleFromString(in string) Role

func (Role) String

func (e Role) String() string

func (Role) StringPtr

func (e Role) StringPtr() *string

func (Role) ToInt64

func (e Role) ToInt64() int64

type Status

type Status int64
const (
	STATUS_INVALID Status = iota
	STATUS_ACTIVE
	STATUS_DISABLED
	STATUS_INVITED
)

func JSONToStatusSlice

func JSONToStatusSlice(in json.RawMessage) []Status

func StatusFromPointerString

func StatusFromPointerString(in *string) Status

func StatusFromString

func StatusFromString(in string) Status

func (Status) String

func (e Status) String() string

func (Status) StringPtr

func (e Status) StringPtr() *string

func (Status) ToInt64

func (e Status) ToInt64() int64

type UserTeam

type UserTeam struct {
	UUID                    uuid.UUID `json:"uuid"`
	UserUUID                uuid.UUID `json:"user_uuid"`
	UserEmail               *string   `json:"user_email"`
	TeamUUID                uuid.UUID `json:"team_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 NewUserTeamSliceWithRandomValues

func NewUserTeamSliceWithRandomValues(n int) []UserTeam

func NewUserTeamWithRandomValues

func NewUserTeamWithRandomValues() UserTeam

func UserTeamFromJSON

func UserTeamFromJSON(data json.RawMessage) UserTeam

func UserTeamSliceFromJSON

func UserTeamSliceFromJSON(data json.RawMessage) []UserTeam

func (UserTeam) ArrayFieldIdentifierToType

func (e UserTeam) ArrayFieldIdentifierToType() map[string]types.FieldType

func (UserTeam) DependantFieldIdentifierToTypeMap

func (e UserTeam) DependantFieldIdentifierToTypeMap() map[string]map[string]types.FieldType

func (UserTeam) EntityIdentifier

func (e UserTeam) EntityIdentifier() string

func (UserTeam) FieldIdentfierToTypeMap

func (e UserTeam) FieldIdentfierToTypeMap() map[string]types.FieldType

func (UserTeam) IsDependant

func (e UserTeam) IsDependant() bool

func (UserTeam) OrderedFieldIdentifiers added in v1.0.35

func (e UserTeam) OrderedFieldIdentifiers() []string

func (UserTeam) PrimaryKeyIdentifier

func (e UserTeam) PrimaryKeyIdentifier() string

func (UserTeam) PrimaryKeyValue

func (e UserTeam) PrimaryKeyValue() string

func (UserTeam) String

func (e UserTeam) String() string

func (UserTeam) ToJSON

func (e UserTeam) ToJSON() json.RawMessage

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL