db

package
v0.0.0-...-1293670 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2016 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DropDB

func DropDB()

Funtion that drops entire database.

func StartDB

func StartDB()

Function that connects database and basically all necessary initialization processes.

func StopDB

func StopDB()

Function that closes database connection.

Types

type UsersRepository

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

UsersRepository is a collection of users

var (
	UsersRepo UsersRepository
)

func (UsersRepository) FindUserByUsername

func (repo UsersRepository) FindUserByUsername(username string) (models.User, error)

FindUserByUsername provides searching for user by username. It returns one User and error.

Jump to

Keyboard shortcuts

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