Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInsufficientFunds = fmt.Errorf("insufficient funds")
View Source
var ErrNegativeSignTransaction = fmt.Errorf("negative sign")
View Source
var ErrWrongPassword = fmt.Errorf("wrong password")
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthServiceImpl ¶
type AuthServiceImpl struct { Service UserAccessor db.UserAccessor }
func (*AuthServiceImpl) GetTokenByUsernameAndPassword ¶
type BuyService ¶
type BuyServiceImpl ¶
type BuyServiceImpl struct { Service UserAccessor db.UserAccessor ItemAccessor db.ItemAccessor UserItemAccessor db.UserItemAccessor }
type SendCoinsService ¶
type SendCoinsServiceImpl ¶
type SendCoinsServiceImpl struct { Service UserAccessor db.UserAccessor CoinTransferAccessor db.CoinTransferAccessor }
type Service ¶
type UserInfoService ¶
type UserInfoServiceImp ¶
type UserInfoServiceImp struct { Service UserAccessor db.UserAccessor UserItemAccessor db.UserItemAccessor CoinTransferAccessor db.CoinTransferAccessor }
func (*UserInfoServiceImp) GetUserInfo ¶
func (s *UserInfoServiceImp) GetUserInfo(ctx context.Context, username string) (balance *int64, userItems []model.UserItem, recievedTransfers []model.CoinTransfer, sentTransfers []model.CoinTransfer, err error)
Click to show internal directories.
Click to hide internal directories.