backend

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGettingNonExistingBackend  = errors.New("the backend does not exist")
	ErrUpdatingNonExistingBackend = errors.New("the backend to update does not exist")
	ErrInvalidBackendID           = errors.New("the backend ID should be a uuid")
)

Functions

This section is empty.

Types

type BackendManager

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

func NewBackendManager

func NewBackendManager(backendRepo repository.BackendRepository) *BackendManager

func (*BackendManager) CreateBackend

func (m *BackendManager) CreateBackend(ctx context.Context, requestPayload request.CreateBackendRequest) (*entity.Backend, error)

func (*BackendManager) DeleteBackendByID

func (m *BackendManager) DeleteBackendByID(ctx context.Context, id uint) error

func (*BackendManager) GetBackendByID

func (m *BackendManager) GetBackendByID(ctx context.Context, id uint) (*entity.Backend, error)

func (*BackendManager) ListBackends

func (m *BackendManager) ListBackends(ctx context.Context) ([]*entity.Backend, error)

func (*BackendManager) UpdateBackendByID

func (m *BackendManager) UpdateBackendByID(ctx context.Context, id uint, requestPayload request.UpdateBackendRequest) (*entity.Backend, error)

Jump to

Keyboard shortcuts

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