agent

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const JoinRetryInterval = 5

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	CancelFunc context.CancelFunc

	NodeInfo types.Node

	JoinAddrs []string

	Config config.AgentConfig
	// contains filtered or unexported fields
}

func New

func New(nodeID string, agentConf config.AgentConfig) (*Agent, error)

func (*Agent) JoinAndStart added in v0.1.7

func (agent *Agent) JoinAndStart(ctx context.Context) error

func (*Agent) JoinToCluster added in v0.1.7

func (agent *Agent) JoinToCluster(ctx context.Context) error

func (*Agent) Start

func (agent *Agent) Start(ctx context.Context) error

func (*Agent) Stop

func (agent *Agent) Stop()

type AgentApi

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

func (*AgentApi) Init added in v0.1.9

func (api *AgentApi) Init(request *restful.Request, response *restful.Response)

func (*AgentApi) JanitorEventHandler

func (api *AgentApi) JanitorEventHandler(request *restful.Request, response *restful.Response)

func (*AgentApi) Register

func (api *AgentApi) Register(container *restful.Container)

func (*AgentApi) ResolverEventHandler

func (api *AgentApi) ResolverEventHandler(request *restful.Request, response *restful.Response)

Jump to

Keyboard shortcuts

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