db

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exit

func Exit()

func Init

func Init(db *config.Database)

Types

type Repository

type Repository interface {
	// Backend
	CreateBackend(backend *model.Backend) (*model.Backend, error)
	DeleteBackend(id string) error
	UpdateBackend(backend *model.Backend) (*model.Backend, error)
	GetBackend(id string) (*model.Backend, error)
	ListBackend(limit, offset int, query interface{}) ([]*model.Backend, error)
	Close()
}
var Repo Repository

Directories

Path Synopsis
drivers

Jump to

Keyboard shortcuts

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