agent

package
v0.0.0-...-7bbfb33 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

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

func NewAgent

func NewAgent(ctx context.Context, loadbot *lbot.Lbot) *Agent

func (*Agent) ApplyConfig

func (a *Agent) ApplyConfig(request *lbot.ConfigRequest) error

remove from here

func (*Agent) ApplyConfigFromFile

func (a *Agent) ApplyConfigFromFile(path string) error

func (*Agent) Heartbeat

func (a *Agent) Heartbeat() error

func (*Agent) Listen

func (a *Agent) Listen() error

func (*Agent) Metrics

func (a *Agent) Metrics() error

remove from here

func (*Agent) ServeGrpc

func (a *Agent) ServeGrpc() error

właściwie to nie ma potrzeby nasłuchiwać na grpc dla każdego followera

func (*Agent) Start

func (a *Agent) Start() error

func (*Agent) WatchConfigFile

func (a *Agent) WatchConfigFile(configFile string) (err error)

type AgentState

type AgentState int
const (
	AgentStateLeader AgentState = iota
	AgentStateFollower
)

func (AgentState) String

func (i AgentState) String() string

Jump to

Keyboard shortcuts

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