app

package
v0.7.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service provides service layer to work with `app` business logic.

func NewService

func NewService(appRepository repositories.AppRepositoryProvider) *Service

NewService creates new Service instance.

func (Service) Create

func (s Service) Create(
	ctx context.Context, namespaceID uint, req *request.CreateAppRequest,
) (*models.App, error)

Create creates new app object.

func (Service) Delete

func (s Service) Delete(ctx context.Context, namespaceID uint, req *request.DeleteAppRequest) error

Delete deletes existing object.

func (Service) Get

func (s Service) Get(
	ctx context.Context, namespaceID uint, req *request.GetAppRequest,
) (*models.App, error)

Get returns app object.

func (Service) GetApps

func (s Service) GetApps(ctx context.Context, namespaceID uint) ([]models.App, error)

GetApps returns the list of active apps.

func (Service) Update

func (s Service) Update(
	ctx context.Context, namespaceID uint, req *request.UpdateAppRequest,
) (*models.App, error)

Update updates existing app object.

Jump to

Keyboard shortcuts

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