command

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package command provides the command application usecase for the opampcommander.

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 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

func (s *Service) GetCommand(ctx context.Context, commandID uuid.UUID) (*model.Command, error)

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.

Jump to

Keyboard shortcuts

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