client

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0, BSD-2-Clause Imports: 27 Imported by: 4

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Plugin added in v0.2.0

func Plugin() *node.Plugin

Plugin gets the plugin instance

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