report

package
v0.0.0-...-477d6df Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRecords

func GetRecords(model string) (map[string]interface{}, error)

GetRecords returns the actual records that I'm recording

func GetRecordsForBucket

func GetRecordsForBucket(b *bolt.Bucket) (map[string]interface{}, error)

GetRecordsForBucket use the bucket to look all the records

func Init

func Init(u string, dbn string)

Init initialize the records to be recorded

func Print

func Print()

Print all the reports

func ReadReport

func ReadReport(dbname string) (map[string][]string, error)

ReadReport gets the ids that needs to be imported from the report already in disk and return the records in a way that can be easily read it

func Record

func Record(model string, id interface{}, n string, e error)

Record adds a new record to the report on failed imports

Types

type Note

type Note struct {
	ID      string
	Details string
	Error   string
}

Note is the schema for each row in the db

Jump to

Keyboard shortcuts

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