Documentation
¶
Overview ¶
Package command provides the command application usecase for the opampcommander.
Index ¶
- type Service
- func (s *Service) GetCommand(ctx context.Context, commandID uuid.UUID) (*model.Command, error)
- func (s *Service) GetCommandByInstanceUID(ctx context.Context, instanceUID uuid.UUID) ([]*model.Command, error)
- func (s *Service) ListCommands(ctx context.Context, options *model.ListOptions) (*model.ListResponse[*model.Command], error)
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 is a struct that implements the CommandLookUpUsecase interface.
func New ¶
func New( commandUsecase domainport.CommandUsecase, logger *slog.Logger, ) *Service
New creates a new instance of the Service struct.
func (*Service) GetCommand ¶
GetCommand implements port.CommandLookUpUsecase.
func (*Service) GetCommandByInstanceUID ¶
func (s *Service) GetCommandByInstanceUID(ctx context.Context, instanceUID uuid.UUID) ([]*model.Command, error)
GetCommandByInstanceUID implements port.CommandLookUpUsecase.
func (*Service) ListCommands ¶
func (s *Service) ListCommands( ctx context.Context, options *model.ListOptions, ) (*model.ListResponse[*model.Command], error)
ListCommands implements port.CommandLookUpUsecase.
Click to show internal directories.
Click to hide internal directories.