impl

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StorageEngines

func StorageEngines() []string

StorageEngines returns a list of supported storage engines.

Types

type Storage

type Storage struct {
	Directories directory.Storage
	Logs        interface {
		sequencer.LogsReader

		// AddLogs creates and adds new logs for writing to a directory.
		AddLogs(ctx context.Context, directoryID string, logIDs ...int64) error
		// SetWritable enables or disables new writes from going to logID.
		SetWritable(ctx context.Context, directoryID string, logID int64, enabled bool) error

		// Copied methods from keyserver.MutationLogs
		SendBatch(ctx context.Context, directoryID string, logID int64, batch []*pb.EntryUpdate) (water.Mark, error)
	}
	Batches       sequencer.Batcher
	HealthChecker health.Checker
	Close         func()
}

Storage holds an abstract storage implementation

func NewStorage

func NewStorage(ctx context.Context, engine, db string) (*Storage, error)

NewStorage returns a Storage with the requested engine.

Directories

Path Synopsis
Package authentication implements authentication mechanisms.
Package authentication implements authentication mechanisms.
Package authorization contains the authorization module implementation.
Package authorization contains the authorization module implementation.
Package memory supplies fake in-memory implementations for testing purposes.
Package memory supplies fake in-memory implementations for testing purposes.
Package mysql provides functions for interacting with MySQL.
Package mysql provides functions for interacting with MySQL.
directory
Package directory implements the directory.Storage interface.
Package directory implements the directory.Storage interface.
mutationstorage
Package mutationstorage defines operations to write and read mutations to and from the database.
Package mutationstorage defines operations to write and read mutations to and from the database.
testdb
Package testdb supports opening ephemeral databases for testing.
Package testdb supports opening ephemeral databases for testing.
batch
Package batch allows for reading and writing of batches of mutations.
Package batch allows for reading and writing of batches of mutations.
directory
Package directory reads and writes Key Transparency Directory information.
Package directory reads and writes Key Transparency Directory information.
mutations
Package mutations stores mutations by timestamp.
Package mutations stores mutations by timestamp.
testutil
Package testutil helps with tests against Spanner.
Package testutil helps with tests against Spanner.

Jump to

Keyboard shortcuts

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