database

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 8 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(id string) models.User

GetUserByID returns User by ID

func SetAPIData added in v0.5.0

func SetAPIData()

func SetUserData

func SetUserData(id string, user models.User) error

SetUserData adds User data to nitr database with default values

func SetupDB

func SetupDB() 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