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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址