demo

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

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

Go to latest
Published: Nov 13, 2015 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SliceAuthor

func SliceAuthor(v *Author) []interface{}

func SliceCommit

func SliceCommit(v *Commit) []interface{}

func SliceHook

func SliceHook(v *Hook) []interface{}

func SliceIssue

func SliceIssue(v *Issue) []interface{}

func SliceUser

func SliceUser(v *User) []interface{}

Types

type Author

type Author struct {
	Name     string
	Email    string
	Username string
}

func ScanAuthor

func ScanAuthor(row *sql.Row) (*Author, error)

func ScanAuthors

func ScanAuthors(rows *sql.Rows) ([]*Author, error)

type Commit

type Commit struct {
	ID        string
	Message   string
	Timestamp string
	Author    *Author
	Committer *Author
}

func ScanCommit

func ScanCommit(row *sql.Row) (*Commit, error)

func ScanCommits

func ScanCommits(rows *sql.Rows) ([]*Commit, error)

type Hook

type Hook struct {
	ID         int64 `sql:"pk: true, auto: true"`
	Sha        string
	After      string
	Before     string
	Created    bool
	Deleted    bool
	Forced     bool
	HeadCommit *Commit `sql:"name: head"`
}

func ScanHook

func ScanHook(row *sql.Row) (*Hook, error)

func ScanHooks

func ScanHooks(rows *sql.Rows) ([]*Hook, error)

type Issue

type Issue struct {
	ID       int64 `sql:"pk: true, auto: true"`
	Number   int
	Title    string   `sql:"size: 512"`
	Body     string   `sql:"size: 2048"`
	Assignee string   `sql:"index: issue_assignee"`
	State    string   `sql:"size: 50"`
	Labels   []string `sql:"encode: json"`
	// contains filtered or unexported fields
}

func ScanIssue

func ScanIssue(row *sql.Row) (*Issue, error)

func ScanIssues

func ScanIssues(rows *sql.Rows) ([]*Issue, error)

type User

type User struct {
	ID     int64  `sql:"pk: true, auto: true"`
	Login  string `sql:"unique: user_login"`
	Email  string `sql:"unique: user_email"`
	Avatar string
	Active bool
	Admin  bool
	// contains filtered or unexported fields
}

func ScanUser

func ScanUser(row *sql.Row) (*User, error)

func ScanUsers

func ScanUsers(rows *sql.Rows) ([]*User, error)

Jump to

Keyboard shortcuts

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