agent

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

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

Go to latest
Published: Nov 16, 2025 License: MIT Imports: 16 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 {
	Config
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Agent, error)

func (*Agent) GetServers

func (a *Agent) GetServers() ([]*api.Server, error)

GetServers implements the server.GetServerer interface by adapting the distributed log's GetServers to the gRPC API's Server type

func (*Agent) Shutdown

func (a *Agent) Shutdown() error

type Config

type Config struct {
	ServerTLSConfig *tls.Config
	PeerTLSConfig   *tls.Config

	DataDir  string
	BindAddr string

	RPCPort int

	NodeName       string
	StartJoinAddrs []string

	ACLModelFile  string
	ACLPolicyFile string

	Bootstrap bool
}

func (Config) RPCAddr

func (c Config) RPCAddr() (string, error)

Jump to

Keyboard shortcuts

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