agent

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfiguration

type AgentConfiguration struct {
	Name                         string
	ReportingIntervalMiliseconds uint
}

func (*AgentConfiguration) GetReportingIntervalDuration

func (self *AgentConfiguration) GetReportingIntervalDuration() time.Duration

type LlamaCppObserver

type LlamaCppObserver struct {
	AgentConfiguration            *AgentConfiguration
	ExternalLlamaCppConfiguration *llamacpp.LlamaCppConfiguration
	LlamaCppClient                *llamacpp.LlamaCppClient
	Logger                        hclog.Logger
	ManagementClient              *management.Client
}

func (*LlamaCppObserver) ObserveAndReport

func (self *LlamaCppObserver) ObserveAndReport(
	serverEventsChannel chan<- goroutine.ResultMessage,
)

func (*LlamaCppObserver) RunTickerInterval

func (self *LlamaCppObserver) RunTickerInterval(
	llamaCppSlotsAggregateStatusChannel chan llamacpp.LlamaCppSlotsAggregatedStatus,
	ticker *time.Ticker,
)

type RespondToHealth added in v0.6.0

type RespondToHealth struct {
	ServerEventsChannel chan<- goroutine.ResultMessage
}

func (*RespondToHealth) ServeHTTP added in v0.6.0

func (self *RespondToHealth) ServeHTTP(response http.ResponseWriter, request *http.Request)

type StatusServer added in v0.6.0

type StatusServer struct {
	StatusServerConfiguration *StatusServerConfiguration
	Logger                    hclog.Logger
	RespondToHealth           http.Handler
}

func (*StatusServer) Serve added in v0.6.0

func (self *StatusServer) Serve(serverEventsChannel chan<- goroutine.ResultMessage)

type StatusServerConfiguration added in v0.6.0

type StatusServerConfiguration struct {
	HttpAddress *netcfg.HttpAddressConfiguration
}

Jump to

Keyboard shortcuts

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