mock

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadCloser

type ReadCloser struct {
	ReadFunc  func(p []byte) (int, error)
	CloseFunc func() error
	// contains filtered or unexported fields
}

func (*ReadCloser) Close

func (rc *ReadCloser) Close() error

func (*ReadCloser) Read

func (rc *ReadCloser) Read(p []byte) (int, error)

type TranslateStore

type TranslateStore struct {
	TranslateColumnsToUint64Func func(index string, values []string) ([]uint64, error)
	TranslateColumnToStringFunc  func(index string, values uint64) (string, error)
	TranslateRowsToUint64Func    func(index, field string, values []string) ([]uint64, error)
	TranslateRowToStringFunc     func(index, field string, values uint64) (string, error)
	ReaderFunc                   func(ctx context.Context, off int64) (io.ReadCloser, error)
}

func (TranslateStore) Reader

func (s TranslateStore) Reader(ctx context.Context, off int64) (io.ReadCloser, error)

func (TranslateStore) TranslateColumnToString

func (s TranslateStore) TranslateColumnToString(index string, values uint64) (string, error)

func (TranslateStore) TranslateColumnsToUint64

func (s TranslateStore) TranslateColumnsToUint64(index string, values []string) ([]uint64, error)

func (TranslateStore) TranslateRowToString

func (s TranslateStore) TranslateRowToString(index, field string, value uint64) (string, error)

func (TranslateStore) TranslateRowsToUint64

func (s TranslateStore) TranslateRowsToUint64(index, field string, values []string) ([]uint64, error)

Jump to

Keyboard shortcuts

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