server

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(url string) *server

Types

type Server

type Server interface {
	SetHealth(healthy bool)
	GetHealth() bool
	SetWeight(w int) error
	GetWeight() int
	AddConnection()
	RemoveConnection()
	Connections() int32
	SetCPUUsage(usage float64) error
	GetCPUUsage() float64
	SetURL(url string)
	GetURL() string
}

type Stats

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

Jump to

Keyboard shortcuts

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