Documentation ¶
Index ¶
- type Controller
- func (c *Controller) Create(accountID uuid.UUID, repositoryEntity *accountEntities.Repository) (*accountEntities.Repository, error)
- func (c *Controller) CreateAccountRepository(accountRepository *roles.AccountRepository) error
- func (c *Controller) Delete(repositoryID uuid.UUID) error
- func (c *Controller) Get(repositoryID, accountID uuid.UUID) (*accountEntities.RepositoryResponse, error)
- func (c *Controller) GetAllAccountsInRepository(repositoryID uuid.UUID) (*[]roles.AccountRole, error)
- func (c *Controller) InviteUser(inviteUser *dto.InviteUser) error
- func (c *Controller) List(accountID, companyID uuid.UUID) (repositories *[]accountEntities.RepositoryResponse, err error)
- func (c *Controller) RemoveUser(removeUser *dto.RemoveUser) error
- func (c *Controller) Update(repositoryID uuid.UUID, repositoryEntity *accountEntities.Repository) (*accountEntities.Repository, error)
- func (c *Controller) UpdateAccountRepository(companyID uuid.UUID, accountRepository *roles.AccountRepository) error
- type IController
- type Mock
- func (m *Mock) Create(accountID uuid.UUID, data *accountEntities.Repository) (*accountEntities.Repository, error)
- func (m *Mock) CreateAccountRepository(accountRepository *roles.AccountRepository) error
- func (m *Mock) Delete(repositoryID uuid.UUID) error
- func (m *Mock) Get(repositoryID, accountID uuid.UUID) (*accountEntities.RepositoryResponse, error)
- func (m *Mock) GetAllAccountsInRepository(repositoryID uuid.UUID) (*[]roles.AccountRole, error)
- func (m *Mock) InviteUser(inviteUser *dto.InviteUser) error
- func (m *Mock) List(accountID uuid.UUID, companyID uuid.UUID) (repositories *[]accountEntities.RepositoryResponse, err error)
- func (m *Mock) RemoveUser(removeUser *dto.RemoveUser) error
- func (m *Mock) Update(repositoryID uuid.UUID, repository *accountEntities.Repository) (*accountEntities.Repository, error)
- func (m *Mock) UpdateAccountRepository(companyID uuid.UUID, accountRepository *roles.AccountRepository) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func (*Controller) Create ¶
func (c *Controller) Create(accountID uuid.UUID, repositoryEntity *accountEntities.Repository) ( *accountEntities.Repository, error)
func (*Controller) CreateAccountRepository ¶
func (c *Controller) CreateAccountRepository(accountRepository *roles.AccountRepository) error
func (*Controller) Get ¶
func (c *Controller) Get(repositoryID, accountID uuid.UUID) (*accountEntities.RepositoryResponse, error)
func (*Controller) GetAllAccountsInRepository ¶
func (c *Controller) GetAllAccountsInRepository(repositoryID uuid.UUID) (*[]roles.AccountRole, error)
func (*Controller) InviteUser ¶
func (c *Controller) InviteUser(inviteUser *dto.InviteUser) error
func (*Controller) List ¶
func (c *Controller) List(accountID, companyID uuid.UUID) (repositories *[]accountEntities.RepositoryResponse, err error)
func (*Controller) RemoveUser ¶
func (c *Controller) RemoveUser(removeUser *dto.RemoveUser) error
func (*Controller) Update ¶
func (c *Controller) Update(repositoryID uuid.UUID, repositoryEntity *accountEntities.Repository) ( *accountEntities.Repository, error)
func (*Controller) UpdateAccountRepository ¶
func (c *Controller) UpdateAccountRepository(companyID uuid.UUID, accountRepository *roles.AccountRepository) error
type IController ¶
type IController interface { Create(accountID uuid.UUID, data *accountEntities.Repository) (*accountEntities.Repository, error) Update(repositoryID uuid.UUID, repository *accountEntities.Repository) (*accountEntities.Repository, error) Get(repositoryID, accountID uuid.UUID) (*accountEntities.RepositoryResponse, error) List(accountID uuid.UUID, companyID uuid.UUID) (repositories *[]accountEntities.RepositoryResponse, err error) CreateAccountRepository(accountRepository *roles.AccountRepository) error UpdateAccountRepository(companyID uuid.UUID, accountRepository *roles.AccountRepository) error InviteUser(inviteUser *dto.InviteUser) error Delete(repositoryID uuid.UUID) error GetAllAccountsInRepository(repositoryID uuid.UUID) (*[]roles.AccountRole, error) RemoveUser(removeUser *dto.RemoveUser) error }
func NewController ¶
func NewController(databaseWrite SQL.InterfaceWrite, databaseRead SQL.InterfaceRead, broker brokerLib.IBroker, appConfig app.IAppConfig) IController
type Mock ¶
func (*Mock) Create ¶
func (m *Mock) Create(accountID uuid.UUID, data *accountEntities.Repository) (*accountEntities.Repository, error)
func (*Mock) CreateAccountRepository ¶
func (m *Mock) CreateAccountRepository(accountRepository *roles.AccountRepository) error
func (*Mock) Get ¶
func (m *Mock) Get(repositoryID, accountID uuid.UUID) (*accountEntities.RepositoryResponse, error)
func (*Mock) GetAllAccountsInRepository ¶
func (*Mock) InviteUser ¶
func (m *Mock) InviteUser(inviteUser *dto.InviteUser) error
func (*Mock) List ¶
func (m *Mock) List(accountID uuid.UUID, companyID uuid.UUID) (repositories *[]accountEntities.RepositoryResponse, err error)
func (*Mock) RemoveUser ¶
func (m *Mock) RemoveUser(removeUser *dto.RemoveUser) error
func (*Mock) Update ¶
func (m *Mock) Update(repositoryID uuid.UUID, repository *accountEntities.Repository) (*accountEntities.Repository, error)
func (*Mock) UpdateAccountRepository ¶
Click to show internal directories.
Click to hide internal directories.