adapter

package
v0.0.0-...-e08ea49 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxManager

type TxManager[T any] struct {
	// contains filtered or unexported fields
}

func NewTxManager

func NewTxManager[T any](rdb rdbadapter.DB) *TxManager[T]

func (*TxManager[T]) ContextWithNewTx

func (tm *TxManager[T]) ContextWithNewTx(ctx context.Context) (context.Context, error)

func (*TxManager[T]) DoInTx

func (tm *TxManager[T]) DoInTx(ctx context.Context, f func(ctx context.Context) (*T, error)) (res *T, err error)

type UserGateway

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

UserGateway

func NewUserGateway

func NewUserGateway(userIDManager *UserIDManager) *UserGateway

func (*UserGateway) Create

func (*UserGateway) DeleteByID

func (*UserGateway) FindByEmail

func (*UserGateway) FindByID

func (*UserGateway) List

type UserIDManager

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

UserIDManager

func NewUserIDManager

func NewUserIDManager(idManager id.IDManager) *UserIDManager

func (*UserIDManager) Generate

func (m *UserIDManager) Generate() (entity.UserID, error)

func (*UserIDManager) Parse

func (m *UserIDManager) Parse(v string) (entity.UserID, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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