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
Click to show internal directories.
Click to hide internal directories.