Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = fmt.Errorf("Not found") ErrDuplicateKey = fmt.Errorf("Duplicate key") )
View Source
var People = map[string]*models.Person{
"1": {ID: "1", Name: "Marco Rosner", Nickname: "Rosner", Birth: "2000-10-01"},
"2": {ID: "2", Name: "João Rosner", Nickname: "João", Birth: "2000-10-02"},
"3": {ID: "3", Name: "Maria", Nickname: "Maria", Birth: "2000-10-03"},
}
Functions ¶
func NewPostgresDB ¶
func NewPostgresDB() *postgresDB
Types ¶
type InMemDB ¶
type InMemDB struct {
// contains filtered or unexported fields
}
func NewInMemDB ¶
func NewInMemDB() *InMemDB
type MongoDB ¶
type MongoDB struct {
// contains filtered or unexported fields
}
func NewMongoDB ¶
func NewMongoDB() *MongoDB
Click to show internal directories.
Click to hide internal directories.