backend

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ID2Path

func ID2Path(r string) string

ID2Path ...

func RegisterEngine

func RegisterEngine(name string, farm FarmFunc)

RegisterEngine Register a Engine

Types

type FarmFunc

type FarmFunc func(string) (Wagoner, error)

type JsonKV

type JsonKV = types.JsonKV

type Wagoner

type Wagoner interface {
	Get(id string) ([]byte, error)
	Put(id string, data []byte, meta JsonKV) (JsonKV, error)
	Exists(id string) (bool, error)
	Del(id string) error
}

func FarmEngine

func FarmEngine(roof string) (Wagoner, error)

FarmEngine get a intance of Wagoner by a special config name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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