Documentation
¶
Index ¶
- Variables
- func ValidateKey(key string, maxLen int) error
- type BlobDataStore
- func (b *BlobDataStore) Close() error
- func (b *BlobDataStore) Delete(string) error
- func (b *BlobDataStore) List(string) ([]string, error)
- func (b *BlobDataStore) Read(string) ([]byte, error)
- func (b *BlobDataStore) ReadRange(string, int64, int64) ([]byte, error)
- func (b *BlobDataStore) Write(string, []byte) error
- type DataStore
- type FSDataStore
- func (f *FSDataStore) Close() error
- func (f *FSDataStore) Delete(key string) error
- func (f *FSDataStore) List(prefix string) ([]string, error)
- func (f *FSDataStore) Read(key string) ([]byte, error)
- func (f *FSDataStore) ReadRange(key string, offset, limit int64) ([]byte, error)
- func (f *FSDataStore) Search(keyPrefix string, pattern string) ([]Match, error)
- func (f *FSDataStore) Write(key string, data []byte) error
- type Match
- type MemoryDataStore
- func (m *MemoryDataStore) Close() error
- func (m *MemoryDataStore) Delete(key string) error
- func (m *MemoryDataStore) List(prefix string) ([]string, error)
- func (m *MemoryDataStore) Read(key string) ([]byte, error)
- func (m *MemoryDataStore) ReadRange(key string, offset, limit int64) ([]byte, error)
- func (m *MemoryDataStore) Search(keyPrefix string, pattern string) ([]Match, error)
- func (m *MemoryDataStore) Write(key string, data []byte) error
- type SQLDataStore
- func (s *SQLDataStore) Close() error
- func (s *SQLDataStore) Delete(string) error
- func (s *SQLDataStore) List(string) ([]string, error)
- func (s *SQLDataStore) Read(string) ([]byte, error)
- func (s *SQLDataStore) ReadRange(string, int64, int64) ([]byte, error)
- func (s *SQLDataStore) Write(string, []byte) error
- type SearchableDataStore
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotSupported = errors.New("codeinterp datastore: operation not supported")
Functions ¶
func ValidateKey ¶
Types ¶
type BlobDataStore ¶
type BlobDataStore struct{}
func NewBlobDataStore ¶
func NewBlobDataStore() *BlobDataStore
func (*BlobDataStore) Close ¶
func (b *BlobDataStore) Close() error
func (*BlobDataStore) Delete ¶
func (b *BlobDataStore) Delete(string) error
type FSDataStore ¶
type FSDataStore struct {
// contains filtered or unexported fields
}
func NewFSDataStore ¶
func (*FSDataStore) Close ¶
func (f *FSDataStore) Close() error
func (*FSDataStore) Delete ¶
func (f *FSDataStore) Delete(key string) error
func (*FSDataStore) ReadRange ¶
func (f *FSDataStore) ReadRange(key string, offset, limit int64) ([]byte, error)
type MemoryDataStore ¶
type MemoryDataStore struct {
// contains filtered or unexported fields
}
func NewMemoryDataStore ¶
func NewMemoryDataStore(maxBytes int64, maxKey int, maxValue int64) *MemoryDataStore
func (*MemoryDataStore) Close ¶
func (m *MemoryDataStore) Close() error
func (*MemoryDataStore) Delete ¶
func (m *MemoryDataStore) Delete(key string) error
func (*MemoryDataStore) ReadRange ¶
func (m *MemoryDataStore) ReadRange(key string, offset, limit int64) ([]byte, error)
type SQLDataStore ¶
type SQLDataStore struct{}
func NewSQLDataStore ¶
func NewSQLDataStore() *SQLDataStore
func (*SQLDataStore) Close ¶
func (s *SQLDataStore) Close() error
func (*SQLDataStore) Delete ¶
func (s *SQLDataStore) Delete(string) error
Click to show internal directories.
Click to hide internal directories.