database

package
v0.0.0-...-ac81adf Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 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 MongoHandler

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

MongoHandler defines the MongoDb handler

func NewMongoHandler

func NewMongoHandler() *MongoHandler

NewMongoHandler creates new MongoHandler

func (*MongoHandler) Client

func (m *MongoHandler) Client() *mongo.Client

Client returns the client property

func (*MongoHandler) Db

func (m *MongoHandler) Db() *mongo.Database

Db returns the database property

type TransferInMen

type TransferInMen struct {
	Transfer []*entity.Transfer
}

func (*TransferInMen) Create

func (t *TransferInMen) Create(_ context.Context, transfer entity.Transfer) (entity.Transfer, error)

type UserInMen

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

func (*UserInMen) Create

func (u *UserInMen) Create(_ context.Context, user entity.User) (entity.User, error)

func (*UserInMen) FindByID

func (u *UserInMen) FindByID(_ context.Context, ID vo.Uuid) (entity.User, error)

func (*UserInMen) UpdateWallet

func (u *UserInMen) UpdateWallet(_ context.Context, ID vo.Uuid, money vo.Money) error

Jump to

Keyboard shortcuts

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