tcp

package
v6.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2018 License: Apache-2.0 Imports: 7 Imported by: 112

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"`
}

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