dal

package
v0.0.0-...-c298ccb Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseDataStoreClient

func CloseDataStoreClient()

Ends the data store client (i.e. Redis)

func InitDataStoreClient

func InitDataStoreClient()

Initializes the data store client (i.e. Redis)

Types

type UserDal

type UserDal struct{}

func NewUserDal

func NewUserDal() *UserDal

func (*UserDal) Count

func (dal *UserDal) Count(id int64) (int64, error)

func (*UserDal) Create

func (dal *UserDal) Create(user *models.User) error

func (*UserDal) Delete

func (dal *UserDal) Delete(id int64) error

func (*UserDal) Get

func (dal *UserDal) Get(id int64) (*models.User, error)

func (*UserDal) Update

func (dal *UserDal) Update(id int64, user *models.User) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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