Connector

package
v0.0.0-...-1dd846c Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2014 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSocketExist = errors.New("Connector: Socket is exist.")
)

Functions

This section is empty.

Types

type Connector

type Connector interface {
	Recive() chan []byte
	Send(data []byte) error
	Close()
	Done() chan bool
}

type NewSocketProxy

type NewSocketProxy func(host, port, config string) (Socket, error)

type Socket

type Socket interface {
	Start() error
	Stop() error
	Accept() chan Connector
}

func GetInstance

func GetInstance() (socket Socket)

func NewSocket

func NewSocket(host, port, config string, fc NewSocketProxy) (socket Socket, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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