Versions in this module Expand all Collapse all v0 v0.12.0 Jun 12, 2024 v0.11.1 Apr 30, 2024 Changes in this version + var ErrGettingNonExistingBackend = errors.New("the backend does not exist") + var ErrInvalidBackendID = errors.New("the backend ID should be a uuid") + var ErrUpdatingNonExistingBackend = errors.New("the backend to update does not exist") + type BackendManager struct + func NewBackendManager(backendRepo repository.BackendRepository) *BackendManager + func (m *BackendManager) CreateBackend(ctx context.Context, requestPayload request.CreateBackendRequest) (*entity.Backend, error) + func (m *BackendManager) DeleteBackendByID(ctx context.Context, id uint) error + func (m *BackendManager) GetBackendByID(ctx context.Context, id uint) (*entity.Backend, error) + func (m *BackendManager) ListBackends(ctx context.Context) ([]*entity.Backend, error) + func (m *BackendManager) UpdateBackendByID(ctx context.Context, id uint, requestPayload request.UpdateBackendRequest) (*entity.Backend, error)