database

package
v0.0.0-...-aaacf6c Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func DeleteUser

func DeleteUser(user models.User, db models.Schema) string

DeleteUser will modify and the record for a user given a username.

func LoadDB

func LoadDB(path string, object interface{}) error

Decode Gob file

func QueryUser

func QueryUser(user string, db models.Schema) string

QueryUser will return the record for a user given a username.

func SaveDB

func SaveDB(path string, object interface{}) error

Encode via Gob to file

func UpdateUser

func UpdateUser(user models.User, db models.Schema) string

UpdateUser will modify and the record for a user given a username.

Types

This section is empty.

Jump to

Keyboard shortcuts

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