syngodb

package module
v0.0.0-...-82c3d3d Latest Latest
Warning

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

Go to latest
Published: May 2, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

README

SyngoDB

Fork of "https://github.com/DeveloperJosh/SynDB" for Golang

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 Create

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

func (*Driver) Delete

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

func (*Driver) Read

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

func (*Driver) ReadAll

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

func (*Driver) Write

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

type Logger

type Logger interface {
	Debug(string, ...interface{})
	Error(string, ...interface{})
	Fatal(string, ...interface{})
	Info(string, ...interface{})
	Trace(string, ...interface{})
	Warn(string, ...interface{})
}

type Options

type Options struct {
	Logger
}

Jump to

Keyboard shortcuts

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