connlogger

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetConnLogger

type NetConnLogger struct {
	net.Conn
	ReadFile  *os.File
	WriteFile *os.File
}

func NewNetConnLogger

func NewNetConnLogger(conn net.Conn, readlog, writelog string) (l *NetConnLogger, err error)

func (*NetConnLogger) Close

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

func (*NetConnLogger) Read

func (c *NetConnLogger) Read(buf []byte) (n int, err error)

func (*NetConnLogger) Write

func (c *NetConnLogger) Write(buf []byte) (n int, err error)

Jump to

Keyboard shortcuts

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