abstract

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package abstract implements abstract factory for storage Factory interface.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidDBType = errors.New("abstract: invalid database type")

ErrInvalidDBType is returned when database type cannot be recognized.

Functions

func Factory

func Factory(dbPath string, dbType string) (storage.Factory, func(), error)

Factory is abstract factory for storage.Factory interface. Returns storage factory for given type and uses storage file placed at given path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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