db

package
v0.0.0-...-65f3c3b Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	SaveBoleto(models.BoletoView) error
	GetBoletoByID(string) (models.BoletoView, error)
	Close()
}

DB é a interface basica para os métodos de persistência

func CreateMongo

func CreateMongo() (DB, error)

CreateMongo cria uma nova intancia de conexão com o mongodb

func GetDB

func GetDB() (DB, error)

GetDB retorna o objeto concreto que implementa as funções de persistência

Jump to

Keyboard shortcuts

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