agent

package
v0.0.0-...-aa36858 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 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
}

Agent はすべてのサービスインスタンス上で動作し、すべての異なるコンポーネントを設定して接続する。

func New

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

New はAgentを作成し、コンポーネントを設定する一連のメソッドを実行する。

func (*Agent) Shutdown

func (a *Agent) Shutdown() error

Shutdown は実行中のエージェントを終了する。

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
}

Config はAgentで保持するコンポーネントのパラメータを構成する。

func (Config) RPCAddr

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

RPCAddr はRPCアドレスを返却する。

Jump to

Keyboard shortcuts

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