services

package
v0.0.0-...-caf001f Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAccountService

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

func NewAddAccountService

func NewAddAccountService(accountRepository protocols.AccountRepository, hasher protocols.Hasher) *AddAccountService

func (*AddAccountService) AddAccount

type AddBookService

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

func NewAddBookService

func NewAddBookService(bookRepo protocols.AddBookRepository, userRepo protocols.UserRepository) *AddBookService

func (*AddBookService) AddBook

type AddUserService

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

func NewAddUserService

func NewAddUserService(repo protocols.UserRepository) *AddUserService

func (*AddUserService) Add

type DeleteUserService

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

func NewDeleteUserService

func NewDeleteUserService(repo protocols.UserRepository) *DeleteUserService

func (*DeleteUserService) DeleteUser

func (s *DeleteUserService) DeleteUser(userId string) (string, error)

type GetBookByIdService

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

func NewGetBookByIdService

func NewGetBookByIdService(getBookRepo protocols.GetBookRepository) *GetBookByIdService

func (*GetBookByIdService) GetBookById

func (s *GetBookByIdService) GetBookById(bookId string) (*entities.Book, error)

type GetUserByIdService

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

func NewGetUserByIdService

func NewGetUserByIdService(repo protocols.UserRepository) *GetUserByIdService

func (*GetUserByIdService) GetUserById

type ListAccountsService

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

func (*ListAccountsService) ListAccounts

type ListBooksService

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

func (*ListBooksService) ListBooks

func (s *ListBooksService) ListBooks() ([]*entities.Book, error)

type ListUsersService

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

func NewListUsersService

func NewListUsersService(repo protocols.UserRepository) *ListUsersService

func (*ListUsersService) List

type RemoveAccountService

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

func (*RemoveAccountService) RemoveAccount

func (useCase *RemoveAccountService) RemoveAccount(accountId string) (string, error)

type RemoveBookService

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

func NewRemoveBookService

func NewRemoveBookService(
	removeBookRepo protocols.RemoveBookRepository,
	findBookRepo protocols.FindBookRepository,
	userRepo protocols.UserRepository,
) *RemoveBookService

func (*RemoveBookService) RemoveBook

Jump to

Keyboard shortcuts

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