agent

package
v0.0.0-...-2c53574 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: MIT Imports: 15 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 Config
	// contains filtered or unexported fields
}

func New

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

New(config) creates an Agent and runs a set of methods to set up and run the agent's components.

func (*Agent) Shutdown

func (a *Agent) Shutdown() error

Shutdown() ensures that the agent will shut down once even if people call Shutdown multiple times.

type Config

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

	DataDir        string
	BindAddr       string
	RPCPort        int
	Bootstrap      bool
	NodeName       string
	StartJoinAddrs []string
	ACLModelFile   string
	ACLPolicyFile  string
}

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