user

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	CreateOauth2Link(ctx context.Context, p model.OauthProvider, uuid uuid.UUID, iss, sub string) (*oauth2.ProviderLink, error)
	GetOauth2Link(ctx context.Context, issuer, subject string) (uuid.UUID, *oauth2.ProviderLink, error)

	CreateUser(ctx context.Context, rm *model.RegisterMethod, initializers []*user.Update) (*user.User, error)
	GetUser(ctx context.Context, userID uuid.UUID) (*user.User, error)
	GetUserByIdentifier(ctx context.Context, id *model.UserIdentifier) (*user.User, error)
	GetPassword(ctx context.Context, userID uuid.UUID) (*model.HashingInstance, error)
	UpdateUser(ctx context.Context, userID uuid.UUID, us []*user.Update) error
	DeleteUser(ctx context.Context, userID uuid.UUID) error
	List(ctx context.Context, pagination *model.Pagination, search string) (iterator.Iterator[*model.UserEntry], uint64, error)

	GetSettings(ctx context.Context) (*settings.Settings, error)
	UpdateSettings(ctx context.Context, su []*settings.Update) error
}

func NewService

func NewService(p newParams) Service

Jump to

Keyboard shortcuts

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