database

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetApiKey

func GetApiKey() string

GetApiKey returns current User Api Key

func GetUserByID

func GetUserByID(db *bolt.DB, id string) models.User

GetUserByID returns User by ID

func SetUserData

func SetUserData(db *bolt.DB, id string, user models.User) error

SetUserData adds User data to nitr database with default values

func SetupDB

func SetupDB() (*bolt.DB, error)

SetupDB creates nitr database with default values

Types

This section is empty.

Jump to

Keyboard shortcuts

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