kv

package
v1.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(rs rules.Store, opts StoreOptions) r2store.Store

NewStore returns a new service that knows how to talk to a kv backed r2 store.

Types

type StoreOptions

type StoreOptions interface {
	// SetClockOptions sets the clock options.
	SetClockOptions(value clock.Options) StoreOptions

	// ClockOptions returns the clock options
	ClockOptions() clock.Options

	// SetInstrumentOptions sets the instrument options.
	SetInstrumentOptions(value instrument.Options) StoreOptions

	// InstrumentOptions returns the instrument options.
	InstrumentOptions() instrument.Options

	// SetRuleUpdatePropagationDelay sets the propagation delay for rule updates.
	SetRuleUpdatePropagationDelay(value time.Duration) StoreOptions

	// RuleUpdatePropagationDelay returns the propagation delay for rule updates.
	RuleUpdatePropagationDelay() time.Duration

	// SetStoreValidator sets the validator for the store.
	SetValidator(value rules.Validator) StoreOptions

	// ValidatprOptions returns the validator for the store.
	Validator() rules.Validator
}

StoreOptions is a set of options for a kv backed store.

func NewStoreOptions

func NewStoreOptions() StoreOptions

NewStoreOptions creates a new set of store options.

Jump to

Keyboard shortcuts

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