store

package
v0.0.0-...-381a539 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	// FileServer is the file server to use. If nil, file.InMemory will be used.
	// This option is useless for inmemory (mock).
	FileServer foodtinder.FileServer
}

Opts contains optional options for the store backend.

type Server

type Server interface {
	foodtinder.Server
	io.Closer
}

func NopCloser

func NopCloser(s foodtinder.Server) Server

NopCloser wraps a foodtinder.Server with a Close method that always returns nil.

func Open

func Open(uri string, opts Opts) (Server, error)

Open opens a new database connection.

Directories

Path Synopsis
Package memory implements foodtinder.Server using on-memory maps.
Package memory implements foodtinder.Server using on-memory maps.
sql

Jump to

Keyboard shortcuts

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