decorator

package
v0.0.0-...-2b4790d Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompositeReaderDecorator

type CompositeReaderDecorator []ReaderDecorator

func (CompositeReaderDecorator) DecorateReader

func (c CompositeReaderDecorator) DecorateReader(r io.ReadCloser) io.ReadCloser

type CompositeWriterDecorator

type CompositeWriterDecorator []WriterDecorator

func (CompositeWriterDecorator) DecorateWriter

type CompressionWriterDecorator

type CompressionWriterDecorator struct{}

func (CompressionWriterDecorator) DecorateWriter

type DecompressionReaderDecorator

type DecompressionReaderDecorator struct{}

func (DecompressionReaderDecorator) DecorateReader

type ReaderDecorator

type ReaderDecorator interface {
	DecorateReader(io.ReadCloser) io.ReadCloser
}

func NewDecryptionReaderDecorator

func NewDecryptionReaderDecorator(key int64) ReaderDecorator

type WriterDecorator

type WriterDecorator interface {
	DecorateWriter(io.WriteCloser) io.WriteCloser
}

func NewEncryptionWriterDecorator

func NewEncryptionWriterDecorator(key int64) WriterDecorator

Jump to

Keyboard shortcuts

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