mock

package
v3.35.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Copyright 2022 Molecula Corp. (DBA FeatureBase). SPDX-License-Identifier: Apache-2.0

Copyright 2022 Molecula Corp. (DBA FeatureBase). SPDX-License-Identifier: Apache-2.0

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 TranslateEntryReader

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

func (*TranslateEntryReader) Close

func (r *TranslateEntryReader) Close() error

func (*TranslateEntryReader) ReadEntry

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

type TranslateStore

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

func (*TranslateStore) Close

func (s *TranslateStore) Close() error

func (*TranslateStore) CreateKeys

func (s *TranslateStore) CreateKeys(keys ...string) (map[string]uint64, error)

func (*TranslateStore) EntryReader

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

func (*TranslateStore) FindKeys

func (s *TranslateStore) FindKeys(keys ...string) (map[string]uint64, error)

func (*TranslateStore) ForceSet

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

func (*TranslateStore) MaxID

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

func (*TranslateStore) PartitionID

func (s *TranslateStore) PartitionID() int

func (*TranslateStore) ReadFrom

func (s *TranslateStore) ReadFrom(r io.Reader) (int64, error)

func (*TranslateStore) ReadOnly

func (s *TranslateStore) ReadOnly() bool

func (*TranslateStore) SetReadOnly

func (s *TranslateStore) SetReadOnly(v bool)

func (*TranslateStore) TranslateID

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

func (*TranslateStore) TranslateIDs

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

func (*TranslateStore) TranslateKey

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

func (*TranslateStore) TranslateKeys

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

func (*TranslateStore) WriteTo

func (s *TranslateStore) WriteTo(w io.Writer) (int64, error)

Jump to

Keyboard shortcuts

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