usecase

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyService = errors.New("service is nil")

Functions

This section is empty.

Types

type ServicesUsecase

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

func NewServicesUsecase

func NewServicesUsecase(repo domain.ServicesRepository) *ServicesUsecase

func (*ServicesUsecase) CreateService

func (u *ServicesUsecase) CreateService(ctx context.Context, req *runpb.CreateServiceRequest) error

func (*ServicesUsecase) ListServices

func (u *ServicesUsecase) ListServices(ctx context.Context, req *runpb.ListServicesRequest) ([]*runpb.Service, string, error)

Jump to

Keyboard shortcuts

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