pio

package
v0.0.0-...-9678cfa Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncryptReader

func EncryptReader(r io.Reader) (*cipher.StreamReader, error)

func EncryptWriter

func EncryptWriter(w io.Writer) (*cipher.StreamWriter, error)

func LimitTransfer

func LimitTransfer(limit string) int

func SetEncryptSecKey

func SetEncryptSecKey(k string)

Types

type LimitReadWriter

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

func NewLimitReadWriter

func NewLimitReadWriter(rw io.ReadWriteCloser, limit int) *LimitReadWriter

func (*LimitReadWriter) Close

func (s *LimitReadWriter) Close() error

func (*LimitReadWriter) Read

func (s *LimitReadWriter) Read(p []byte) (int, error)

func (*LimitReadWriter) Write

func (s *LimitReadWriter) Write(p []byte) (int, error)

type LimitReader

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

func NewLimitReader

func NewLimitReader(r io.Reader, limit int) *LimitReader

func (*LimitReader) Read

func (r *LimitReader) Read(p []byte) (int, error)

type LimitWriter

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

func NewLimitWriter

func NewLimitWriter(w io.Writer, limit int) *LimitWriter

func (*LimitWriter) Write

func (w *LimitWriter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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