Help us shape the future of Go! Take the 2026 Go Developer Survey

fakebatchdb

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 6 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