Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService(repo repository.Authorization) *AuthService
func (*AuthService) CreateUser ¶
func (s *AuthService) CreateUser(user domain.User) (int, error)
func (*AuthService) GenerateToken ¶
func (s *AuthService) GenerateToken(username, password string) (string, error)
func (*AuthService) ParseToken ¶
func (s *AuthService) ParseToken(accessToken string) (int, error)
type Authorization ¶
type Service ¶
type Service struct { Authorization Wallet Transaction }
func NewService ¶
func NewService(repos *repository.Repository) *Service
type Transaction ¶
type Transaction interface { }
type WalletService ¶
type WalletService struct {
// contains filtered or unexported fields
}
func NewWalletService ¶
func NewWalletService(repo repository.Wallet) *WalletService
func (*WalletService) CreateWallet ¶
func (*WalletService) GetAllWallets ¶
func (s *WalletService) GetAllWallets(userId int) ([]domain.Wallet, error)
func (*WalletService) GetWalletById ¶
func (s *WalletService) GetWalletById(userId, walletId int) (domain.Wallet, error)
Click to show internal directories.
Click to hide internal directories.