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.Auth) *AuthService
func (*AuthService) CreateUser ¶
func (s *AuthService) CreateUser(user entities.User) (int, error)
func (*AuthService) GenerateToken ¶
func (s *AuthService) GenerateToken(user entities.User) (string, error)
func (*AuthService) ParseToken ¶
func (s *AuthService) ParseToken(token string) (int, error)
type BookService ¶
type BookService struct {
// contains filtered or unexported fields
}
func NewBookService ¶
func NewBookService(repo repository.Book) *BookService
func (*BookService) CreateBook ¶
func (s *BookService) CreateBook(book entities.Book) (int, error)
func (*BookService) DeleteBook ¶
func (s *BookService) DeleteBook(id int) error
func (*BookService) UpdateBook ¶
func (s *BookService) UpdateBook(book entities.Book) error
type Service ¶
func NewService ¶
func NewService(repo *repository.Repository) *Service
Click to show internal directories.
Click to hide internal directories.