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 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
type LimitReader ¶
type LimitReader struct {
// contains filtered or unexported fields
}
func NewLimitReader ¶
func NewLimitReader(r io.Reader, limit int) *LimitReader
type LimitWriter ¶
type LimitWriter struct {
// contains filtered or unexported fields
}
func NewLimitWriter ¶
func NewLimitWriter(w io.Writer, limit int) *LimitWriter
Click to show internal directories.
Click to hide internal directories.