model

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateOpen   = "open"
	StateClosed = "closed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Issue

type Issue struct {
	RepoOwner string
	RepoName  string
	Number    int
	Username  string
	State     string
	Labels    StringArray
}

type PullRequest

type PullRequest struct {
	RepoOwner           string
	RepoName            string
	FullName            string
	Number              int
	Username            string
	Ref                 string
	Sha                 string
	Labels              StringArray
	State               string
	BuildStatus         string
	BuildConclusion     string
	BuildLink           string
	URL                 string
	CreatedAt           time.Time
	Merged              sql.NullBool
	MergeCommitSHA      string `db:"-"`
	MaintainerCanModify sql.NullBool
	MilestoneNumber     sql.NullInt64
	MilestoneTitle      sql.NullString
}

type Spinmint

type Spinmint struct {
	InstanceID string `db:"InstanceId"`
	RepoOwner  string
	RepoName   string
	Number     int
	CreatedAt  int64
}

type StringArray added in v0.5.2

type StringArray []string

StringArray type to load and save []string in mysql column as json using sqlx

func (*StringArray) Scan added in v0.5.2

func (sa *StringArray) Scan(value interface{}) error

Scan converts database column value to StringArray

func (StringArray) Value added in v0.5.2

func (sa StringArray) Value() (driver.Value, error)

Value converts StringArray to database value

Jump to

Keyboard shortcuts

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