database

package
v0.0.0-...-4e290a4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: GPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAO

type DAO interface {
	GetName() string
	Count(context.Context) (int64, error)
	GetByID(context.Context, string, interface{}) error
	GetList(context.Context, interface{}, map[string]interface{}, int64) error
	GetAll(context.Context, interface{}, int64) error
	Insert(context.Context, interface{}) (string, error)
	UpdateByID(context.Context, string, interface{}) error
	RemoveByID(context.Context, string) error
}

DAO interface for accessing a standard collection of items

type HashedItem

type HashedItem interface {
	SaltandHash() error
	CompareSaltandHash(string) bool
}

HashedItem interface for handling passwords

type IDItem

type IDItem interface {
	GetID() string
}

IDItem interface for handling IDs

type ItemFormData

type ItemFormData interface {
	GetIDItem() IDItem
	SetIDItem(IDItem) error
}

ItemFormData interface for handling forms to populate IDs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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