persistence

package
v0.0.0-...-a24e4be Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func Init

func Init()

Types

type DAO

type DAO[T DataObject] struct {
	// contains filtered or unexported fields
}

func NewDAO

func NewDAO[T DataObject](bucket string) *DAO[T]

func (*DAO[T]) Find

func (dao *DAO[T]) Find(query string) []T

func (*DAO[T]) Save

func (dao *DAO[T]) Save(item T) error

type DataObject

type DataObject interface {
	Identifier() []byte
	UpdateTimestamp()
}

Jump to

Keyboard shortcuts

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