compressor

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package compressor is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReader

func NewReader(typ string, r io.Reader) (io.Reader, error)

NewReader return a reader for uncompressed.

func NewWriter

func NewWriter(typ string, w io.Writer) (io.WriteCloser, error)

NewWriter return a writer for compressed.

func Register

func Register(typ string, c compressor)

Register registers the compressor builder

func UnRegister

func UnRegister(typ string)

UnRegister compressor builder, only for test

Types

type Mockcompressor

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

Mockcompressor is a mock of compressor interface

func NewMockcompressor

func NewMockcompressor(ctrl *gomock.Controller) *Mockcompressor

NewMockcompressor creates a new mock instance

func (*Mockcompressor) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*Mockcompressor) NewReader

func (m *Mockcompressor) NewReader(r io.Reader) io.Reader

NewReader mocks base method

func (*Mockcompressor) NewWriter

func (m *Mockcompressor) NewWriter(w io.Writer) io.WriteCloser

NewWriter mocks base method

type MockcompressorMockRecorder

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

MockcompressorMockRecorder is the mock recorder for Mockcompressor

func (*MockcompressorMockRecorder) NewReader

func (mr *MockcompressorMockRecorder) NewReader(r interface{}) *gomock.Call

NewReader indicates an expected call of NewReader

func (*MockcompressorMockRecorder) NewWriter

func (mr *MockcompressorMockRecorder) NewWriter(w interface{}) *gomock.Call

NewWriter indicates an expected call of NewWriter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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