user

package
v0.0.0-...-76439fa Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserStore

func NewUserStore(db mDB.Database) mStore.Store

NewUserStore is the constructor of Store

Types

type Store

type Store struct {
	DB mDB.Database
}

Store defines user store struct

func (Store) Create

func (s Store) Create(args interface{}) (interface{}, error)

Create creates a new user record, return errors if any

func (Store) Delete

func (s Store) Delete(id string, _ interface{}) (interface{}, error)

Delete deletes a user record.

func (Store) Retrieve

func (s Store) Retrieve(_ interface{}) (interface{}, error)

Retrieve retrieves users. Since currently it does not make sense getting one user, we just assume retrieving all users first

func (Store) Update

func (s Store) Update(_ string, _ interface{}) (interface{}, error)

Update updates a user records. Currently no need for update

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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