pilosa: github.com/pilosa/pilosa/mock Index | Files

package mock

import "github.com/pilosa/pilosa/mock"

Index

Package Files

mock.go translator.go

type ReadCloser Uses

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

func (*ReadCloser) Close Uses

func (rc *ReadCloser) Close() error

func (*ReadCloser) Read Uses

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

type TranslateEntryReader Uses

type TranslateEntryReader struct {
    CloseFunc     func() error
    ReadEntryFunc func(entry *pilosa.TranslateEntry) error
}

func (*TranslateEntryReader) Close Uses

func (r *TranslateEntryReader) Close() error

func (*TranslateEntryReader) ReadEntry Uses

func (r *TranslateEntryReader) ReadEntry(entry *pilosa.TranslateEntry) error

type TranslateStore Uses

type TranslateStore struct {
    CloseFunc         func() error
    MaxIDFunc         func() (uint64, error)
    ReadOnlyFunc      func() bool
    SetReadOnlyFunc   func(v bool)
    TranslateKeyFunc  func(key string) (uint64, error)
    TranslateKeysFunc func(keys []string) ([]uint64, error)
    TranslateIDFunc   func(id uint64) (string, error)
    TranslateIDsFunc  func(ids []uint64) ([]string, error)
    ForceSetFunc      func(id uint64, key string) error
    EntryReaderFunc   func(ctx context.Context, offset uint64) (pilosa.TranslateEntryReader, error)
}

func (*TranslateStore) Close Uses

func (s *TranslateStore) Close() error

func (*TranslateStore) EntryReader Uses

func (s *TranslateStore) EntryReader(ctx context.Context, offset uint64) (pilosa.TranslateEntryReader, error)

func (*TranslateStore) ForceSet Uses

func (s *TranslateStore) ForceSet(id uint64, key string) error

func (*TranslateStore) MaxID Uses

func (s *TranslateStore) MaxID() (uint64, error)

func (*TranslateStore) ReadOnly Uses

func (s *TranslateStore) ReadOnly() bool

func (*TranslateStore) SetReadOnly Uses

func (s *TranslateStore) SetReadOnly(v bool)

func (*TranslateStore) TranslateID Uses

func (s *TranslateStore) TranslateID(id uint64) (string, error)

func (*TranslateStore) TranslateIDs Uses

func (s *TranslateStore) TranslateIDs(ids []uint64) ([]string, error)

func (*TranslateStore) TranslateKey Uses

func (s *TranslateStore) TranslateKey(key string) (uint64, error)

func (*TranslateStore) TranslateKeys Uses

func (s *TranslateStore) TranslateKeys(keys []string) ([]uint64, error)

Package mock imports 3 packages (graph). Updated 2019-10-18. Refresh now. Tools for package owners.