store

package
v0.0.0-...-82fd2f4 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Vocabularies = &VocabularyStore{Vocabularies: map[entity.VocabularyID]*entity.Vocabulary{}}

Functions

func ConnectToDatabse

func ConnectToDatabse(ctx context.Context, config *config.Config) (*sqlx.DB, error)

Types

type VocabularyStore

type VocabularyStore struct {
	LastID       entity.VocabularyID
	Vocabularies map[entity.VocabularyID]*entity.Vocabulary
}

func (*VocabularyStore) AddVocabulary

func (vs *VocabularyStore) AddVocabulary(vocabulary *entity.Vocabulary) (entity.VocabularyID, error)

Add a new vocabularry

Jump to

Keyboard shortcuts

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