persistencefactory

package
v0.0.0-...-00b5140 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ImplementationUnknown is an unknown and invalid adapter implementation.
	ImplementationUnknown = ""
	// ImplementationStub is an implementation that does nothing and return no error.
	ImplementationStub = "stub"
	// ImplementationBadger uses a badger impl.
	ImplementationBadger = "badger"
)

Variables

This section is empty.

Functions

func New

func New(config Config) (persistenceadapter.Adapter, error)

New creates a new Adapter instance based on a Config.

Types

type Config

type Config struct {
	Implementation string `mapstructure:"impl"`
	Badger         badger.Config
}

Config struct which describe how build an ad adapter instance.

Jump to

Keyboard shortcuts

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