models

package
v0.0.0-...-3d4bac1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AuthorBurndown

type AuthorBurndown struct {
	RepoID int              `json:"repoID"`
	Type   BurndownType     `json:"type"`
	Author []*BurndownEntry `json:"author"`
}

func (AuthorBurndown) IsBurndown

func (AuthorBurndown) IsBurndown()

type Burndown

type Burndown interface {
	IsBurndown()
}

type BurndownAlert

type BurndownAlert struct {
	RepoID int          `json:"repoID"`
	Type   BurndownType `json:"type"`
	Alert  string       `json:"alert"`
}

func (BurndownAlert) IsBurndown

func (BurndownAlert) IsBurndown()

type BurndownEntry

type BurndownEntry struct {
	Start time.Time `json:"start"`
	Bands []int     `json:"bands"`
}

type BurndownType

type BurndownType string
const (
	BurndownTypeGlobal BurndownType = "GLOBAL"
	BurndownTypeFile   BurndownType = "FILE"
	BurndownTypeAuthor BurndownType = "AUTHOR"
	BurndownTypeAlert  BurndownType = "ALERT"
)

func (BurndownType) IsValid

func (e BurndownType) IsValid() bool

func (BurndownType) MarshalGQL

func (e BurndownType) MarshalGQL(w io.Writer)

func (BurndownType) String

func (e BurndownType) String() string

func (*BurndownType) UnmarshalGQL

func (e *BurndownType) UnmarshalGQL(v interface{}) error

type FileBurndown

type FileBurndown struct {
	RepoID int                  `json:"repoID"`
	Type   BurndownType         `json:"type"`
	File   []*FileBurndownEntry `json:"file"`
}

func (FileBurndown) IsBurndown

func (FileBurndown) IsBurndown()

type FileBurndownEntry

type FileBurndownEntry struct {
	File  string         `json:"file"`
	Entry *BurndownEntry `json:"entry"`
}

type GlobalBurndown

type GlobalBurndown struct {
	RepoID  int              `json:"repoID"`
	Type    BurndownType     `json:"type"`
	Entries []*BurndownEntry `json:"entries"`
}

func (GlobalBurndown) IsBurndown

func (GlobalBurndown) IsBurndown()

type Repository

type Repository struct {
	ID          int    `json:"id"`
	Owner       string `json:"owner"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type RepositoryAnalytics

type RepositoryAnalytics struct {
	Repository *Repository `json:"repository"`
	Burndown   Burndown    `json:"burndown"`
}

type RepositoryHost

type RepositoryHost string
const (
	RepositoryHostGithub    RepositoryHost = "GITHUB"
	RepositoryHostGitlab    RepositoryHost = "GITLAB"
	RepositoryHostBitbucket RepositoryHost = "BITBUCKET"
)

func (RepositoryHost) IsValid

func (e RepositoryHost) IsValid() bool

func (RepositoryHost) MarshalGQL

func (e RepositoryHost) MarshalGQL(w io.Writer)

func (RepositoryHost) String

func (e RepositoryHost) String() string

func (*RepositoryHost) UnmarshalGQL

func (e *RepositoryHost) UnmarshalGQL(v interface{}) error

type ServiceStatus

type ServiceStatus struct {
	Build    string    `json:"build"`
	Deployed time.Time `json:"deployed"`
}

Jump to

Keyboard shortcuts

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