cmd

package
v0.0.0-...-d78e010 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

func ExecuteContext

func ExecuteContext(ctx context.Context) error

func SetBuildInfo

func SetBuildInfo(v, bt, gc, gb, bb string)

SetBuildInfo sets the build information

Types

type BackendStats

type BackendStats struct {
	Requests       int64
	Failures       int64
	LastHealthy    time.Time
	IsHealthy      bool
	AverageLatency time.Duration
}

BackendStats holds per-backend statistics

type BenchmarkResults

type BenchmarkResults struct {
	TotalConnections int64
	SuccessfulConns  int64
	FailedConns      int64
	TotalBytes       int64
	TotalPackets     int64
	MinLatency       time.Duration
	MaxLatency       time.Duration
	AvgLatency       time.Duration
	StartTime        time.Time
	EndTime          time.Time
	Errors           []string
	// contains filtered or unexported fields
}

BenchmarkResults holds benchmark statistics

type ChatClient

type ChatClient struct {
	Conn     net.Conn
	Nickname string
	JoinTime time.Time
}

type DistributedManager

type DistributedManager struct {
	// contains filtered or unexported fields
}

DistributedManager manages distributed operations

type ForwardStats

type ForwardStats struct {
	TotalConnections  int64
	ActiveConnections int64
	BytesForwarded    int64
	ErrorCount        int64
	// contains filtered or unexported fields
}

Port forwarding statistics

type Node

type Node struct {
	ID       string                 `json:"id"`
	Type     NodeType               `json:"type"`
	Address  string                 `json:"address"`
	Status   string                 `json:"status"`
	Capacity int                    `json:"capacity"`
	Load     int                    `json:"load"`
	LastSeen time.Time              `json:"last_seen"`
	Metadata map[string]interface{} `json:"metadata"`
}

Node represents a distributed node

type NodeType

type NodeType string

NodeType represents the type of distributed node

const (
	MasterNode     NodeType = "master"
	WorkerNode     NodeType = "worker"
	StandaloneNode NodeType = "standalone"
)

type ProxyStats

type ProxyStats struct {
	TotalRequests  int64
	ActiveRequests int64
	FailedRequests int64
	BytesReceived  int64
	BytesSent      int64
	AverageLatency time.Duration

	BackendStats map[string]*BackendStats
	// contains filtered or unexported fields
}

ProxyStats holds proxy statistics

type ScriptInfo

type ScriptInfo struct {
	Purpose   string
	Features  []string
	Functions []string
	Usage     string
}

ScriptInfo holds parsed script information

type Task

type Task struct {
	ID          string                 `json:"id"`
	Type        string                 `json:"type"`
	Priority    int                    `json:"priority"`
	Payload     map[string]interface{} `json:"payload"`
	AssignedTo  string                 `json:"assigned_to"`
	Status      string                 `json:"status"`
	Result      interface{}            `json:"result"`
	Error       string                 `json:"error"`
	CreatedAt   time.Time              `json:"created_at"`
	StartedAt   *time.Time             `json:"started_at"`
	CompletedAt *time.Time             `json:"completed_at"`
}

Task represents a distributed task

Jump to

Keyboard shortcuts

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