instanceadmins

package
v0.0.0-...-5106b98 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	LockRoleChanges(context.Context, postgres.DBTX) error
	FindUserForUpdate(context.Context, postgres.DBTX, slug.Slug) (*User, error)
	CountSuperAdmins(context.Context, postgres.DBTX) (int64, error)
	SetUserRole(context.Context, postgres.DBTX, slug.Slug, model.Role) error
	CreateAudit(context.Context, postgres.DBTX, slug.Slug, model.Role, model.Role) error
}

func NewRepository

func NewRepository() Repository

type User

type User struct {
	Slug       slug.Slug
	Role       model.Role
	VerifiedAt time.Time
}

Jump to

Keyboard shortcuts

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