generic

package
v0.0.0-...-910f5e5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(dst io.Writer, src io.Reader) (written int64, err error)

Copy ... a memory-optimized io.Copy function

func SnsiLogger

func SnsiLogger(path string, interval int)

SnsiLogger ...

Types

type CompStream

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

CompStream ...

func NewCompStream

func NewCompStream(conn net.Conn) *CompStream

NewCompStream ...

func (*CompStream) Close

func (c *CompStream) Close() error

Close ...

func (*CompStream) LocalAddr

func (c *CompStream) LocalAddr() net.Addr

LocalAddr ...

func (*CompStream) Read

func (c *CompStream) Read(p []byte) (n int, err error)

func (*CompStream) RemoteAddr

func (c *CompStream) RemoteAddr() net.Addr

RemoteAddr ...

func (*CompStream) SetDeadline

func (c *CompStream) SetDeadline(t time.Time) error

SetDeadline ...

func (*CompStream) SetReadDeadline

func (c *CompStream) SetReadDeadline(t time.Time) error

SetReadDeadline ...

func (*CompStream) SetWriteDeadline

func (c *CompStream) SetWriteDeadline(t time.Time) error

SetWriteDeadline ...

func (*CompStream) Write

func (c *CompStream) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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