db

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 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)
	CreateTier(ctx context.Context, tier *model.Tier) (*model.Tier, error)
	DeleteTier(ctx context.Context, id string) error
	UpdateTier(ctx context.Context, tier *model.Tier) (*model.Tier, error)
	GetTier(ctx context.Context, id string) (*model.Tier, error)
	ListTiers(ctx context.Context, limit, offset int, query interface{}) ([]*model.Tier, 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