database

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	GetImportType(ctx context.Context, id string) (device model.ImportType, exists bool, err error)
	ListImportTypes(ctx context.Context, limit int64, offset int64, sort string) (result []model.ImportType, err error)
	SetImportType(ctx context.Context, importType model.ImportType) error
	RemoveImportType(ctx context.Context, id string) error
}

func New

func New(conf config.Config, ctx context.Context, wg *sync.WaitGroup) (db Database, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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