storage

package
v0.0.0-...-97b4fb6 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STORAGE_MONGODB = "mongodb"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountRepository

type AccountRepository interface {
	Save(*domain.Account) error
	GetByEmail(email string) (*domain.Account, error)
	GetByUsername(username string) (*domain.Account, error)
	GetById(id string) (*domain.Account, error)
}

AccountRepository type

func MakeRepositoryFromEnv

func MakeRepositoryFromEnv() (AccountRepository, error)

MakeRepository factory

Jump to

Keyboard shortcuts

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