db

package
v0.0.0-...-8b129d1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueueChecker

func QueueChecker(dur time.Duration) (*model.TeamQueue, error)

QueueChecker returns benchmark queue

func SaveResult

func SaveResult(teamID int64, score *model.Score) error

SaveResult saves result to database

Types

type DB

type DB struct {
	Type string
	Host string
	Port string
	User string
	Pass string
	Name string
	Conn *dbr.Session
}

func NewDB

func NewDB() (*DB, error)

func (DB) FetchQueue

func (db DB) FetchQueue() (*model.TeamQueue, error)

Jump to

Keyboard shortcuts

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