connection

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package connection provides the connection model and its methods

Index

Constants

View Source
const (
	// Kind is the kind of the connection.
	Kind = "Connection"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	ID                 uuid.UUID `json:"id"`
	InstanceUID        uuid.UUID `json:"instanceUid"`
	LastCommunicatedAt time.Time `json:"lastCommunicatedAt"`
	Alive              bool      `json:"alive"`

} // @name Connection

Connection represents a connection to an agent.

type ListResponse added in v0.1.9

type ListResponse = v1.ListResponse[Connection]

ListResponse represents a list of connections with metadata.

func NewListResponse added in v0.1.9

func NewListResponse(connections []Connection, metadata v1.ListMeta) *ListResponse

NewListResponse creates a new ListResponse with the given connections and metadata.

Jump to

Keyboard shortcuts

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