cache

package
v0.0.0-...-8814989 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	PullRequests []PullRequest `json:"pull_requests"`
}

func LoadJson

func LoadJson(filepath string) *Data

func (*Data) SaveGob

func (cache *Data) SaveGob(filepath string)

func (*Data) SaveJson

func (cache *Data) SaveJson(filepath string)

type PrInteraction

type PrInteraction struct {
	AuthorLdap      string `json:"author_ldap"`
	AuthorFullName  string `json:"author_fullname"`
	PullRequestId   int64  `json:"pull_request_id"`
	CreatedDateTime int64  `json:"created_datetime"`
	PrApproval      bool   `json:"approved"`
	Type            string `json:"type"`
	/* the id in stash of the Activity */
	RefId int64 `json:"ref_id"`
}

A comment or approval

type PullRequest

type PullRequest struct {
	AuthorLdap     string `json:"author_ldap"`
	AuthorFullName string `json:"author_fullname"`
	Project        string `json:"project"`
	Repo           string `json:"repo"`
	PullRequestId  int64  `json:"pull_request_id"`
	Title          string `json:"title"`
	CommentCount   int    `json:"comment_count"`
	/* e.g. OPEN, MERGED, REJECTED */
	State                 string          `json:"state"`
	Comments              []PrInteraction `json:"comments"`
	CreatedDateTime       int64           `json:"created_datetime"`
	UpdatedDateTime       int64           `json:"updated_datetime"`
	SecondsOpen           int64           `json:"seconds_open"`
	CommentsByAuthorLdap  map[string]int  `json:"comments_by_author_ldap"`
	ApprovalsByAuthorLdap map[string]int  `json:"approvals_by_author_ldap"`
	SelfUrl               string          `json:"self_url"`
}

Jump to

Keyboard shortcuts

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