conn

package
v0.0.0-...-489f534 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2016 License: Apache-2.0 Imports: 6 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Join

func Join(c Conn, c2 Conn) (int64, int64)

Types

type Conn

type Conn interface {
	net.Conn
	log.Logger
}

type Listener

type Listener struct {
	net.Addr
	Conns chan *Logged
}

func Listen

func Listen(addr, typ string, tlsCfg *tls.Config) (l *Listener, err error)

type Logged

type Logged struct {
	net.Conn
	log.Logger
}

func Wrap

func Wrap(conn net.Conn, tags ...string) *Logged

func (*Logged) AddTags

func (c *Logged) AddTags(tags ...string)

func (*Logged) Close

func (c *Logged) Close() (err error)

func (*Logged) Id

func (c *Logged) Id() string

func (*Logged) SetTags

func (c *Logged) SetTags(tags ...string)

func (*Logged) StartTLS

func (c *Logged) StartTLS(tlsCfg *tls.Config)

Jump to

Keyboard shortcuts

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