database

package
v0.0.0-...-1ad6a86 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

func New

func New(dir string, options *Options) (*Driver, error)

func (*Driver) Delete

func (d *Driver) Delete(collection string, resource string) error

func (*Driver) Read

func (d *Driver) Read(collection string, resource string, v interface{}) error

func (*Driver) ReadAll

func (d *Driver) ReadAll(collection string) ([]string, error)

func (*Driver) Write

func (d *Driver) Write(collection string, resource string, v interface{}) error

type Options

type Options struct {
	logger.Logger
}

Options contains optional configurations for the database.

Jump to

Keyboard shortcuts

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