Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidNumberOfShards = errors.New("the number of shards must be greater than zero")
ErrInvalidNumberOfShards signals that an invalid number of shards was passed to the sharding registry
View Source
var ErrInvalidPath = errors.New("invalid path")
ErrInvalidPath signals that an invalid path has been provided
View Source
var ErrNilIDProvider = errors.New("nil id provider")
ErrNilIDProvider signals that a nil id provider was provided
View Source
var ErrNilPersisterCreator = errors.New("nil persister creator")
ErrNilPersisterCreator signals that a nil persister creator was provided
Functions ¶
func NewShardIDProvider ¶
NewShardIDProvider will create a new shard ID provider component
func NewShardedPersister ¶
func NewShardedPersister(path string, persisterCreator types.PersisterCreator, idProvider types.ShardIDProvider) (*shardedPersister, error)
NewShardedPersister will created a new sharded persister
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.