storage

package
v0.0.0-...-cf35708 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRefFromNoteFields

func GetRefFromNoteFields(db *bolt.DB, value string) (string, error)

func LoadNoteBold

func LoadNoteBold(db *bolt.DB, ref string) ([]models.Note, error)

func RemoveNotesByReferencBold

func RemoveNotesByReferencBold(db *bolt.DB, reference string) error

func RemoveNotesByTitleBold

func RemoveNotesByTitleBold(db *bolt.DB, title string) error

func SaveNoteBold

func SaveNoteBold(db *bolt.DB, ref string, note models.Note) error

func SaveNotesBold

func SaveNotesBold(db *bolt.DB, ref string, notes []models.Note) error

Types

type NoteStruct

type NoteStruct struct {
	Ref  string
	Note models.Note
}

func FindByValue

func FindByValue(db *bolt.DB, value string, parameter string) ([]NoteStruct, error)

type NotesMap

type NotesMap map[string][]models.Note

func FindByRef

func FindByRef(db *bolt.DB, ref string) (NotesMap, error)

func LoadAllNotesBolt

func LoadAllNotesBolt(db *bolt.DB) (NotesMap, error)

Jump to

Keyboard shortcuts

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