port

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package port is a package that defines the ports for the application layer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminUsecase

type AdminUsecase interface {
	ApplyRawConfig(ctx context.Context, targetInstanceUID uuid.UUID, config any) error
}

AdminUsecase is a use case that handles admin operations.

type FetchServerToAgentUsecase

type FetchServerToAgentUsecase interface {
	FetchServerToAgent(ctx context.Context, instanceUID uuid.UUID) (*protobufs.ServerToAgent, error)
}

FetchServerToAgentUsecase is a use case that fetches a message from the connection.

type HandleAgentToServerUsecase

type HandleAgentToServerUsecase interface {
	HandleAgentToServer(ctx context.Context, agentToServer *protobufs.AgentToServer) error
}

HandleAgentToServerUsecase is a use case that handles a message from the connection.

type OpAMPUsecase

type OpAMPUsecase interface {
	HandleAgentToServerUsecase
	FetchServerToAgentUsecase
}

OpAMPUsecase covers OpAMP protocol This usecase should be called by the adapter.

Jump to

Keyboard shortcuts

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