host

package
v0.1.41 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package host provides application services for hosts.

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

func (s *Service) GetHost(ctx context.Context, id string) (*v1.Host, error)

GetHost implements applicationport.HostManageUsecase.

func (*Service) ListAgentsByHost

func (s *Service) ListAgentsByHost(
	ctx context.Context,
	id string,
	options *model.ListOptions,
) (*v1.ListResponse[v1.Agent], error)

ListAgentsByHost implements applicationport.HostManageUsecase.

func (*Service) ListHosts

func (s *Service) ListHosts(
	ctx context.Context,
	options *model.ListOptions,
) (*v1.ListResponse[v1.Host], error)

ListHosts implements applicationport.HostManageUsecase.

Jump to

Keyboard shortcuts

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