repository

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUserAuthenticationNotFound = errors.New("user authentication not found")
)
View Source
var (
	ErrUserNotFound = errors.New("user not found")
)

Functions

This section is empty.

Types

type AuthenticationRepository

type AuthenticationRepository interface {
	Get(ctx context.Context, tx transaction.Transaction, userID uuid.UUID) (model.UserAuthentication, error)
	GetByBaasUserID(ctx context.Context, tx transaction.Transaction, baasUserID string) (model.UserAuthentication, error)
	Save(ctx context.Context, tx transaction.Transaction, auth model.UserAuthentication) error
}

type EchoRepository

type EchoRepository interface {
	Save(ctx context.Context, tx transaction.Transaction, echos ...model.Echo) error
}

type GlobalKVSRepository

type GlobalKVSRepository interface {
	Get(ctx context.Context, tx transaction.Transaction, criteria model.KVSCriteria) (model.GlobalKVSBucket, error)
	Save(ctx context.Context, tx transaction.Transaction, bucket model.GlobalKVSBucket) error
}

type UserRepository

type UserRepository interface {
	Get(ctx context.Context, tx transaction.Transaction, userID uuid.UUID) (model.User, error)
	Save(ctx context.Context, tx transaction.Transaction, user model.User) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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