models

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

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

Go to latest
Published: Oct 1, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package models contains the various GraphQL data models

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authored

type Authored interface{}

An object that has an author.

type BugConnection

type BugConnection struct {
	Edges      []BugEdge      `json:"edges"`
	Nodes      []bug.Snapshot `json:"nodes"`
	PageInfo   PageInfo       `json:"pageInfo"`
	TotalCount int            `json:"totalCount"`
}

The connection type for Bug.

type BugEdge

type BugEdge struct {
	Cursor string       `json:"cursor"`
	Node   bug.Snapshot `json:"node"`
}

An edge in a connection.

func (BugEdge) GetCursor

func (e BugEdge) GetCursor() string

GetCursor return the cursor entry of an edge

type CommentConnection

type CommentConnection struct {
	Edges      []CommentEdge `json:"edges"`
	Nodes      []bug.Comment `json:"nodes"`
	PageInfo   PageInfo      `json:"pageInfo"`
	TotalCount int           `json:"totalCount"`
}

type CommentEdge

type CommentEdge struct {
	Cursor string      `json:"cursor"`
	Node   bug.Comment `json:"node"`
}

func (CommentEdge) GetCursor

func (e CommentEdge) GetCursor() string

GetCursor return the cursor entry of an edge

type ConnectionInput

type ConnectionInput struct {
	After  *string
	Before *string
	First  *int
	Last   *int
}

type OperationConnection

type OperationConnection struct {
	Edges      []OperationEdge `json:"edges"`
	Nodes      []bug.Operation `json:"nodes"`
	PageInfo   PageInfo        `json:"pageInfo"`
	TotalCount int             `json:"totalCount"`
}

type OperationEdge

type OperationEdge struct {
	Cursor string        `json:"cursor"`
	Node   bug.Operation `json:"node"`
}

func (OperationEdge) GetCursor

func (e OperationEdge) GetCursor() string

GetCursor return the cursor entry of an edge

type PageInfo

type PageInfo struct {
	HasNextPage     bool   `json:"hasNextPage"`
	HasPreviousPage bool   `json:"hasPreviousPage"`
	StartCursor     string `json:"startCursor"`
	EndCursor       string `json:"endCursor"`
}

Information about pagination in a connection.

type Repository

type Repository struct {
	Cache *cache.MultiRepoCache
	Repo  *cache.RepoCache
}

type RepositoryMutation

type RepositoryMutation struct {
	Cache *cache.MultiRepoCache
	Repo  *cache.RepoCache
}

type Status

type Status string
const (
	StatusOpen   Status = "OPEN"
	StatusClosed Status = "CLOSED"
)

func (Status) IsValid

func (e Status) IsValid() bool

func (Status) MarshalGQL

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

func (Status) String

func (e Status) String() string

func (*Status) UnmarshalGQL

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

type TimelineItemConnection

type TimelineItemConnection struct {
	Edges      []TimelineItemEdge `json:"edges"`
	Nodes      []bug.TimelineItem `json:"nodes"`
	PageInfo   PageInfo           `json:"pageInfo"`
	TotalCount int                `json:"totalCount"`
}

type TimelineItemEdge

type TimelineItemEdge struct {
	Cursor string           `json:"cursor"`
	Node   bug.TimelineItem `json:"node"`
}

func (TimelineItemEdge) GetCursor

func (e TimelineItemEdge) GetCursor() string

GetCursor return the cursor entry of an edge

Jump to

Keyboard shortcuts

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