di

package
v0.0.0-...-01bad0f Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package di provides a mechanism to select storage providers. In a separate package so as to avoid an import cycle.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCannotResolveStorage = errors.New("failed to find a possible storage configuration")
)

Err* are sentinel errors

Functions

func WireStorage

func WireStorage() (storage.Storer, error)

WireStorage generates a storage engine from the Viper based configuration. Fails if there are no configuration values supplied.

Doesn't actually use wire (yet)

TODO: Rewrite this with the new configuration format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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