Documentation ¶
Index ¶
- type CreateUserParams
- type DBTX
- type MChannel
- type MGroup
- type MRole
- type MRoleCategory
- type MStorage
- type MStorageAccessPermission
- type MUser
- type MUserPermission
- type MUserPermissionCategory
- type Querier
- type Queries
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (MUser, error)
- func (q *Queries) DeleteUser(ctx context.Context, id uuid.UUID) error
- func (q *Queries) FindUser(ctx context.Context, id uuid.UUID) (MUser, error)
- func (q *Queries) FindUserForLogin(ctx context.Context, loginID string) (MUser, error)
- func (q *Queries) GetUsers(ctx context.Context) ([]MUser, error)
- func (q *Queries) GetUsersFromName(ctx context.Context, dollar_1 pgtype.Text) ([]MUser, error)
- func (q *Queries) UpdateUserLoggedAt(ctx context.Context, id uuid.UUID) (MUser, error)
- func (q *Queries) UpdateUserName(ctx context.Context, arg UpdateUserNameParams) (MUser, error)
- func (q *Queries) UpdateUserPassword(ctx context.Context, arg UpdateUserPasswordParams) (MUser, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type TChat
- type TGroupInvite
- type TGroupStoragePermission
- type TUserChannel
- type TUserGroup
- type TUserGroupPermission
- type TUserRole
- type UpdateUserNameParams
- type UpdateUserPasswordParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateUserParams ¶
type MChannel ¶
type MChannel struct { ID uuid.UUID `json:"id"` Name string `json:"name"` AdminGroupID uuid.UUID `json:"admin_group_id"` ConnectableGroupID uuid.UUID `json:"connectable_group_id"` LastActivityAt pgtype.Timestamp `json:"last_activity_at"` CreatedBy pgtype.UUID `json:"created_by"` UpdatedBy pgtype.UUID `json:"updated_by"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type MGroup ¶
type MGroup struct { ID uuid.UUID `json:"id"` Name string `json:"name"` IsOpen bool `json:"is_open"` IsPrimitive bool `json:"is_primitive"` IsPersonal bool `json:"is_personal"` CreatedBy pgtype.UUID `json:"created_by"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type MRoleCategory ¶
type MUser ¶
type MUser struct { ID uuid.UUID `json:"id"` LoginID string `json:"login_id"` Password string `json:"password"` Name string `json:"name"` LastLoggedInAt pgtype.Timestamp `json:"last_logged_in_at"` CreatedBy pgtype.UUID `json:"created_by"` FromSystem bool `json:"from_system"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type MUserPermission ¶
type MUserPermissionCategory ¶
type Querier ¶
type Querier interface { CreateUser(ctx context.Context, arg CreateUserParams) (MUser, error) DeleteUser(ctx context.Context, id uuid.UUID) error FindUser(ctx context.Context, id uuid.UUID) (MUser, error) FindUserForLogin(ctx context.Context, loginID string) (MUser, error) GetUsers(ctx context.Context) ([]MUser, error) GetUsersFromName(ctx context.Context, dollar_1 pgtype.Text) ([]MUser, error) UpdateUserLoggedAt(ctx context.Context, id uuid.UUID) (MUser, error) UpdateUserName(ctx context.Context, arg UpdateUserNameParams) (MUser, error) UpdateUserPassword(ctx context.Context, arg UpdateUserPasswordParams) (MUser, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateUser ¶
func (*Queries) FindUserForLogin ¶
func (*Queries) GetUsersFromName ¶
func (*Queries) UpdateUserLoggedAt ¶
func (*Queries) UpdateUserName ¶
func (*Queries) UpdateUserPassword ¶
type TGroupInvite ¶
type TGroupInvite struct { UserID uuid.UUID `json:"user_id"` GroupID uuid.UUID `json:"group_id"` IsValid bool `json:"is_valid"` InvitedBy pgtype.UUID `json:"invited_by"` CanceledBy pgtype.UUID `json:"canceled_by"` InvitedAt time.Time `json:"invited_at"` CanceledAt pgtype.Timestamptz `json:"canceled_at"` }
type TGroupStoragePermission ¶
type TGroupStoragePermission struct { StorageID uuid.UUID `json:"storage_id"` GroupID uuid.UUID `json:"group_id"` AttachedBy pgtype.UUID `json:"attached_by"` LastChangedBy pgtype.UUID `json:"last_changed_by"` AttachedAt time.Time `json:"attached_at"` LastChangedAt time.Time `json:"last_changed_at"` }
type TUserChannel ¶
type TUserGroup ¶
type TUserGroupPermission ¶
type UpdateUserNameParams ¶
Click to show internal directories.
Click to hide internal directories.