metaDB

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaDB

type MetaDB struct {
	// contains filtered or unexported fields
}

MetaDB is used to handle user extra data

func New

func New() *MetaDB

New returns a new metaDB handler struct

func (MetaDB) ChangeStatus

func (metaDB MetaDB) ChangeStatus(userID, status string)

ChangeStatus changed account status to something

func (MetaDB) Create

func (metaDB MetaDB) Create(userID string)

Create is used to generate and add new user meta data into database

func (MetaDB) Get

func (metaDB MetaDB) Get(userID string) (data types.Meta)

Get is used to a users data

Jump to

Keyboard shortcuts

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