tcp

package
v0.0.0-...-be347a3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTcpServer

func NewTcpServer(base mb.BaseMetricSet) (server.Server, error)

Types

type TcpConfig

type TcpConfig struct {
	Host              string `config:"host"`
	Port              int    `config:"port"`
	ReceiveBufferSize int    `config:"receive_buffer_size"`
	Delimiter         string `config:"delimiter"`
}

func (*TcpConfig) Validate

func (t *TcpConfig) Validate() error

Validate ensures that the configured delimiter has only one character

type TcpEvent

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

func (*TcpEvent) GetEvent

func (m *TcpEvent) GetEvent() common.MapStr

func (*TcpEvent) GetMeta

func (m *TcpEvent) GetMeta() server.Meta

type TcpServer

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

func (*TcpServer) GetEvents

func (g *TcpServer) GetEvents() chan server.Event

func (*TcpServer) Start

func (g *TcpServer) Start() error

func (*TcpServer) Stop

func (g *TcpServer) Stop()

Jump to

Keyboard shortcuts

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