Documentation
¶
Index ¶
- func NewService(repository store.NamespaceRepository, encryptionKey string) (domain.NamespaceService, error)
- type EncryptorDecryptor
- type EncryptorDecryptorMock
- type NamespaceRepositoryMock
- func (_m *NamespaceRepositoryMock) Create(_a0 *domain.EncryptedNamespace) error
- func (_m *NamespaceRepositoryMock) Delete(_a0 uint64) error
- func (_m *NamespaceRepositoryMock) Get(_a0 uint64) (*domain.EncryptedNamespace, error)
- func (_m *NamespaceRepositoryMock) List() ([]*domain.EncryptedNamespace, error)
- func (_m *NamespaceRepositoryMock) Migrate() error
- func (_m *NamespaceRepositoryMock) Update(_a0 *domain.EncryptedNamespace) error
- type Service
- func (s Service) CreateNamespace(namespace *domain.Namespace) error
- func (s Service) DeleteNamespace(id uint64) error
- func (s Service) GetNamespace(id uint64) (*domain.Namespace, error)
- func (s Service) ListNamespaces() ([]*domain.Namespace, error)
- func (s Service) Migrate() error
- func (s Service) UpdateNamespace(namespace *domain.Namespace) error
- type Transformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(repository store.NamespaceRepository, encryptionKey string) (domain.NamespaceService, error)
NewService returns service struct
Types ¶
type EncryptorDecryptor ¶
type EncryptorDecryptorMock ¶
EncryptorDecryptor is an autogenerated mock type for the EncryptorDecryptor type
type NamespaceRepositoryMock ¶
NamespaceRepositoryMock is an autogenerated mock type for the NamespaceRepository type
func (*NamespaceRepositoryMock) Create ¶
func (_m *NamespaceRepositoryMock) Create(_a0 *domain.EncryptedNamespace) error
Create provides a mock function with given fields: _a0
func (*NamespaceRepositoryMock) Delete ¶
func (_m *NamespaceRepositoryMock) Delete(_a0 uint64) error
Delete provides a mock function with given fields: _a0
func (*NamespaceRepositoryMock) Get ¶
func (_m *NamespaceRepositoryMock) Get(_a0 uint64) (*domain.EncryptedNamespace, error)
Get provides a mock function with given fields: _a0
func (*NamespaceRepositoryMock) List ¶
func (_m *NamespaceRepositoryMock) List() ([]*domain.EncryptedNamespace, error)
List provides a mock function with given fields:
func (*NamespaceRepositoryMock) Migrate ¶
func (_m *NamespaceRepositoryMock) Migrate() error
Migrate provides a mock function with given fields:
func (*NamespaceRepositoryMock) Update ¶
func (_m *NamespaceRepositoryMock) Update(_a0 *domain.EncryptedNamespace) error
Update provides a mock function with given fields: _a0
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service handles business logic
func (Service) CreateNamespace ¶
func (Service) DeleteNamespace ¶
type Transformer ¶
type Transformer struct {
// contains filtered or unexported fields
}
func NewTransformer ¶
func NewTransformer(encryptionKey string) (*Transformer, error)
Click to show internal directories.
Click to hide internal directories.