tcp

package
v0.0.0-...-bd3593b Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTCPProvider

func NewTCPProvider() provider.EventProvider

Types

type TCPConfig

type TCPConfig struct {
	Encoding    string `json:"encoding"`
	Listen      string `json:"listen"`
	MaxDecoders int    `json:"max_decoders"`
}

the config struct for the tcp provider

type TCPProvider

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

provides events from tcp connections

func (*TCPProvider) ConfigStruct

func (t *TCPProvider) ConfigStruct() interface{}

func (*TCPProvider) Init

func (t *TCPProvider) Init(i interface{}) error

func (*TCPProvider) Start

func (t *TCPProvider) Start(dst chan *event.Event)

start accepting connections and consume each of them as they come in

Jump to

Keyboard shortcuts

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