db

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: Apache-2.0 Imports: 5 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(ctx context.Context, backend *model.Backend) (*model.Backend, error)
	DeleteBackend(ctx context.Context, id string) error
	UpdateBackend(ctx context.Context, backend *model.Backend) (*model.Backend, error)
	GetBackend(ctx context.Context, id string) (*model.Backend, error)
	ListBackend(ctx context.Context, 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