Documentation
¶
Index ¶
- Variables
- func Close(conn ...io.Closer)
- func CloseAll(connSlice ...net.Conn)
- func CopyBuffer(dst io.Writer, src io.Reader, bufLength int, block bool, monitor bool) (int64, error)
- func CopyBufferBlock(dst io.Writer, src io.Reader, monitor bool) (int64, error)
- func CopyBufferCallBack(dst io.Writer, src io.Reader, bufLength int, block bool, ...) (total []byte, err error)
- func CopyDuplex(src io.ReadWriteCloser, dst io.ReadWriteCloser, thenClose bool) chan Direction
- func DirectCopy(dst io.Writer, src io.Reader) (int64, error)
- func ForceClose(conn ...io.Closer)
- func IsConnect(conn net.Conn) bool
- func NewConn(connFactory ConnFactoryFunc) (net.Conn, error)
- func Read(rd io.Reader, b []byte) (int, error)
- func ReadAllBytes(rd io.Reader) ([]byte, error)
- func ReadAllBytesBuffer(rd io.Reader, bufLength int, block bool) ([]byte, error)
- func ReadAllBytesNonBlocking(rd io.Reader) ([]byte, error)
- func ReadAllString(rd io.Reader) (string, error)
- func ReadCurrentFile(relative string) ([]byte, error)
- func ReadFile(path string) ([]byte, error)
- func ReadFileToBuf(filePath string, bufSize int, receive func([]byte)) error
- func ReadFirstLine(file string) (string, error)
- func ReadLine(rd io.Reader) (line []byte, err error)
- func ReadLines(rd io.Reader) ([][]byte, error)
- func ReadToByte(rd io.Reader, delim byte) ([]byte, error)
- func ReadToBytes(rd io.Reader, delim []byte) ([]byte, error)
- func ScanLine(filePath string, handle func(string)) error
- func SetDeadLine(conn net.Conn, d time.Duration)
- func Write(wr io.Writer, b []byte) (int, error)
- func WriteString(wr io.Writer, s string) (int, error)
- func WriteToCurrentFile(relative string, bytes []byte) error
- func WriteToFile(bytes []byte, path string) error
- type BinaryInterceptor
- type ConnFactoryFunc
- type Direction
Constants ¶
This section is empty.
Variables ¶
View Source
var Monitor = false
Functions ¶
func CopyBuffer ¶
func CopyBufferBlock ¶ added in v1.1.0
func CopyBufferCallBack ¶ added in v1.1.0
func CopyDuplex ¶ added in v1.2.0
func CopyDuplex(src io.ReadWriteCloser, dst io.ReadWriteCloser, thenClose bool) chan Direction
func ForceClose ¶ added in v1.2.0
func ReadAllBytesBuffer ¶
func ReadAllBytesNonBlocking ¶ added in v1.2.0
func ReadCurrentFile ¶
func ReadFirstLine ¶
func WriteToCurrentFile ¶
func WriteToFile ¶
Types ¶
type BinaryInterceptor ¶ added in v1.1.0
type BinaryInterceptor func(...[]byte)
type ConnFactoryFunc ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.