accountmemory

package
v0.0.0-...-19096fd Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *accountrepo.Container

func SetUserError

func SetUserError(r accountrepo.User, err error)

func SetWorkspaceError

func SetWorkspaceError(r accountrepo.Workspace, err error)

Types

type Permittable

type Permittable struct {
	// contains filtered or unexported fields
}

func NewPermittable

func NewPermittable() *Permittable

func NewPermittableWith

func NewPermittableWith(items ...*permittable.Permittable) *Permittable

func (*Permittable) FindByRoleID

func (p *Permittable) FindByRoleID(ctx context.Context, roleID accountdomain.RoleID) (permittable.List, error)

func (*Permittable) FindByUserID

func (p *Permittable) FindByUserID(ctx context.Context, userID user.ID) (*permittable.Permittable, error)

func (*Permittable) FindByUserIDs

func (p *Permittable) FindByUserIDs(ctx context.Context, userIDs user.IDList) (permittable.List, error)

func (*Permittable) Save

type Role

type Role struct {
	// contains filtered or unexported fields
}

func NewRole

func NewRole() *Role

func NewRoleWith

func NewRoleWith(items ...*role.Role) *Role

func (*Role) FindAll

func (r *Role) FindAll(ctx context.Context) (role.List, error)

func (*Role) FindByID

func (r *Role) FindByID(ctx context.Context, id accountdomain.RoleID) (*role.Role, error)

func (*Role) FindByIDs

func (r *Role) FindByIDs(ctx context.Context, ids accountdomain.RoleIDList) (role.List, error)

func (*Role) Remove

func (r *Role) Remove(ctx context.Context, id accountdomain.RoleID) error

func (*Role) Save

func (r *Role) Save(ctx context.Context, rl role.Role) error

type User

type User struct {
	// contains filtered or unexported fields
}

func NewUser

func NewUser() *User

func NewUserWith

func NewUserWith(users ...*user.User) *User

func (*User) Create

func (r *User) Create(_ context.Context, u *user.User) error

func (*User) FindAll

func (r *User) FindAll(ctx context.Context) (user.List, error)

func (*User) FindByEmail

func (r *User) FindByEmail(_ context.Context, email string) (*user.User, error)

func (*User) FindByID

func (r *User) FindByID(_ context.Context, v user.ID) (*user.User, error)

func (*User) FindByIDs

func (r *User) FindByIDs(_ context.Context, ids user.IDList) (user.List, error)

func (*User) FindByName

func (r *User) FindByName(_ context.Context, name string) (*user.User, error)

func (*User) FindByNameOrEmail

func (r *User) FindByNameOrEmail(_ context.Context, nameOrEmail string) (*user.User, error)

func (*User) FindByPasswordResetRequest

func (r *User) FindByPasswordResetRequest(_ context.Context, token string) (*user.User, error)

func (*User) FindBySub

func (r *User) FindBySub(_ context.Context, auth0sub string) (*user.User, error)

func (*User) FindBySubOrCreate

func (r *User) FindBySubOrCreate(_ context.Context, u *user.User, sub string) (*user.User, error)

func (*User) FindByVerification

func (r *User) FindByVerification(_ context.Context, code string) (*user.User, error)

func (*User) Remove

func (r *User) Remove(_ context.Context, user user.ID) error

func (*User) Save

func (r *User) Save(_ context.Context, u *user.User) error

func (*User) SearchByKeyword

func (r *User) SearchByKeyword(_ context.Context, keyword string) (user.List, error)

type Workspace

type Workspace struct {
	// contains filtered or unexported fields
}

func NewWorkspace

func NewWorkspace() *Workspace

func NewWorkspaceWith

func NewWorkspaceWith(workspaces ...*workspace.Workspace) *Workspace

func (*Workspace) Create

func (r *Workspace) Create(_ context.Context, t *workspace.Workspace) error

func (*Workspace) Filtered

func (*Workspace) FindByID

func (r *Workspace) FindByID(_ context.Context, v workspace.ID) (*workspace.Workspace, error)

func (*Workspace) FindByIDs

func (r *Workspace) FindByIDs(_ context.Context, ids workspace.IDList) (workspace.List, error)

func (*Workspace) FindByIntegration

func (r *Workspace) FindByIntegration(_ context.Context, i workspace.IntegrationID) (workspace.List, error)

func (*Workspace) FindByUser

func (*Workspace) Remove

func (r *Workspace) Remove(_ context.Context, wid workspace.ID) error

func (*Workspace) RemoveAll

func (r *Workspace) RemoveAll(_ context.Context, ids workspace.IDList) error

func (*Workspace) Save

func (*Workspace) SaveAll

func (r *Workspace) SaveAll(_ context.Context, workspaces workspace.List) error

Jump to

Keyboard shortcuts

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