-
Notifications
You must be signed in to change notification settings - Fork 13
Database
emli edited this page Nov 16, 2017
·
31 revisions
Gorjun uses boltDB. Bolt an embedded key/value database for Go.
- MyBucket - store information about all files in Gorjun. Here key - is a file UUID.
- Users - store all users registered in the system. Key is a username, the value is a bucket with multiple GPG-keys.
- SearchIndex - store a search index for fast accessing artifacts. Key - filename, value - bucket with files UUIDs.
- Tokens - store authentication tokens for user sessions. Key - token, value bucket with username and date of creation.
- AuthID - store AuthID(random string) that user should sign to get token. Key - authID, value - username.
- Tags - another search index that is used to group templates by tags. Key - tag, value - template UUIDs