database

package
v0.0.0-...-b2b3290 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2017 License: MIT Imports: 4 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 struct {
	// contains filtered or unexported fields
}

func Connect

func Connect(dsn string) (*DB, error)

func (*DB) AddResult

func (db *DB) AddResult(result *Result) error

func (*DB) GetLastScanned

func (db *DB) GetLastScanned(projectID int) (string, error)

func (*DB) GetResults

func (db *DB) GetResults(projectID int) (<-chan *Result, error)

func (*DB) ResultCount

func (db *DB) ResultCount(projectID int) (int, error)

func (*DB) SetLastScanned

func (db *DB) SetLastScanned(projectID int, commitID string) error

type Result

type Result struct {
	ID          int
	Project     int
	Commit      string
	Path        string
	Caption     string
	Description string
}

Jump to

Keyboard shortcuts

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