client

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0, BSD-2-Clause Imports: 26 Imported by: 4

Documentation

Index

Constants

View Source
const (
	// PluginName is the name of  the analysis client plugin.
	PluginName = "AnalysisClient"
	// CfgServerAddress defines the config flag of the analysis server address.
	CfgServerAddress = "analysis.client.serverAddress"
)

Variables

View Source
var (
	// Plugin is the plugin instance of the analysis client plugin.
	Plugin *node.Plugin
)

Functions

This section is empty.

Types

type Connector added in v0.2.0

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

A Connector is a redialing Writer on the underlying connection.

func NewConnector added in v0.2.0

func NewConnector(network string, address string) *Connector

NewConnector creates a new Connector.

func (*Connector) Close added in v0.2.0

func (c *Connector) Close() (err error)

Close closes the current connection. If the Connector is not closed, a new redial will be triggered.

func (*Connector) Start added in v0.2.0

func (c *Connector) Start()

Start starts the Connector.

func (*Connector) Stop added in v0.2.0

func (c *Connector) Stop()

Stop stops the Connector.

func (*Connector) Write added in v0.2.0

func (c *Connector) Write(b []byte) (int, error)

Write writes data to the underlying connection. It returns an error if currently no connection has been established.

type EventDispatchers

type EventDispatchers struct {
	// Heartbeat defines the Heartbeat function.
	Heartbeat func(heartbeat *packet.Heartbeat)
}

EventDispatchers holds the Heartbeat function.

Jump to

Keyboard shortcuts

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