Documentation
¶
Overview ¶
Package host provides application services for hosts.
Index ¶
- type Service
- func (s *Service) GetHost(ctx context.Context, id string) (*v1.Host, error)
- func (s *Service) ListAgentsByHost(ctx context.Context, id string, options *model.ListOptions) (*v1.ListResponse[v1.Agent], error)
- func (s *Service) ListHosts(ctx context.Context, options *model.ListOptions) (*v1.ListResponse[v1.Host], 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 implements the HostManageUsecase interface.
func New ¶
func New( hostUsecase agentport.HostUsecase, agentUsecase agentport.AgentUsecase, logger *slog.Logger, ) *Service
New creates a new host application Service.
func (*Service) ListAgentsByHost ¶
func (s *Service) ListAgentsByHost( ctx context.Context, id string, options *model.ListOptions, ) (*v1.ListResponse[v1.Agent], error)
ListAgentsByHost implements applicationport.HostManageUsecase.
Click to show internal directories.
Click to hide internal directories.