connection

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 3 Imported by: 0

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"`
	Type               string    `json:"type"`
	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