fakebatchdb

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewModule

func NewModule(mc *ModuleConfig) modules.Module

NewModule returns a new module for a fake batch database. It stores all the data in memory in plain go maps.

Types

type ModuleConfig

type ModuleConfig struct {
	Self t.ModuleID // id of this module
}

ModuleConfig sets the module ids. All replicas are expected to use identical module configurations.

func DefaultModuleConfig

func DefaultModuleConfig() *ModuleConfig

DefaultModuleConfig returns a valid module config with default names for all modules.

Jump to

Keyboard shortcuts

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