user

package
v0.0.0-...-febeaf7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseModule = fx.Provide(
	NewRepository,
)
View Source
var (
	ErrUserNotFound = errors.New("user not found")
)

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GetUser(ctx context.Context, id string) (model.User, error)
	GetUserByAddress(ctx context.Context, address string) (model.User, error)
	CreateUser(ctx context.Context, in model.User) (model.User, error)
	UpdateUser(ctx context.Context, in model.User) (model.User, error)
	DeleteUser(ctx context.Context, id string) (model.User, error)
}

func NewRepository

func NewRepository(db *bun.DB) Repository

Jump to

Keyboard shortcuts

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