integration

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Code generated by github.com/stackworx-go/graphql, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var CreateTodoMutation = `` /* 157-byte string literal not displayed */
View Source
var NodeQuery = `` /* 148-byte string literal not displayed */
View Source
var TodosQuery = `query TodosQuery {
	todos {
		id
		text
		done
		user {
			id
			name
		}
	}
}
`
View Source
var TodosWithVariablesQuery = `query TodosWithVariablesQuery ($userId: ID!) {
	todos(userId: $userId) {
		id
		text
		done
		user {
			id
			name
		}
	}
}
`

Functions

This section is empty.

Types

type Client

type Client struct {
	http.Client
	URL string
}

func (*Client) CreateTodoMutation

func (c *Client) CreateTodoMutation(input CreateTodoInput, opts *RequestOpts) (*CreateTodoMutationPayload, error)

func (*Client) NodeQuery

func (c *Client) NodeQuery(nodeId string, opts *RequestOpts) (*NodeQueryPayload, error)

func (*Client) TodosQuery

func (c *Client) TodosQuery(opts *RequestOpts) (*TodosQueryPayload, error)

func (*Client) TodosWithVariablesQuery

func (c *Client) TodosWithVariablesQuery(userId string, opts *RequestOpts) (*TodosWithVariablesQueryPayload, error)

type CreateTodoInput

type CreateTodoInput struct {
	Text   string `json:"text"`
	UserId string `json:"userId"`
}

type CreateTodoMutationPayload

type CreateTodoMutationPayload struct {
	CreateTodo CreateTodoMutationPayloadCreateTodo `json:"createTodo"`
}

type CreateTodoMutationPayloadCreateTodo

type CreateTodoMutationPayloadCreateTodo struct {
	Todo CreateTodoMutationPayloadCreateTodoTodo `json:"todo"`
}

type CreateTodoMutationPayloadCreateTodoTodo

type CreateTodoMutationPayloadCreateTodoTodo struct {
	Id   string                                      `json:"id"`
	Text string                                      `json:"text"`
	Done bool                                        `json:"done"`
	User CreateTodoMutationPayloadCreateTodoTodoUser `json:"user"`
}

type CreateTodoMutationPayloadCreateTodoTodoUser

type CreateTodoMutationPayloadCreateTodoTodoUser struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type GraphqlError

type GraphqlError struct {
	Errors []gqlerror.Error
}

func (*GraphqlError) Error

func (e *GraphqlError) Error() string

type NodeQueryPayload

type NodeQueryPayload struct {
	Node *NodeQueryPayloadNode `json:"node,omitempty"`
}

type NodeQueryPayloadNode

type NodeQueryPayloadNode struct {
	Id           string `json:"id"`
	UserFragment *NodeQueryPayloadNodeUserFragment
	TodoFragment *NodeQueryPayloadNodeTodoFragment
}

func (*NodeQueryPayloadNode) UnmarshalJSON

func (f *NodeQueryPayloadNode) UnmarshalJSON(data []byte) error

type NodeQueryPayloadNodeTodoFragment

type NodeQueryPayloadNodeTodoFragment struct {
	Text string `json:"text"`
	// contains filtered or unexported fields
}

type NodeQueryPayloadNodeUserFragment

type NodeQueryPayloadNodeUserFragment struct {
	Name string `json:"name"`
	// contains filtered or unexported fields
}

type RequestOpts

type RequestOpts struct {
	Header http.Header
}

type TodosQueryPayload

type TodosQueryPayload struct {
	Todos []TodosQueryPayloadTodos `json:"todos"`
}

type TodosQueryPayloadTodos

type TodosQueryPayloadTodos struct {
	Id   string                     `json:"id"`
	Text string                     `json:"text"`
	Done bool                       `json:"done"`
	User TodosQueryPayloadTodosUser `json:"user"`
}

type TodosQueryPayloadTodosUser

type TodosQueryPayloadTodosUser struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type TodosWithVariablesQueryPayload

type TodosWithVariablesQueryPayload struct {
	Todos []TodosWithVariablesQueryPayloadTodos `json:"todos"`
}

type TodosWithVariablesQueryPayloadTodos

type TodosWithVariablesQueryPayloadTodos struct {
	Id   string                                  `json:"id"`
	Text string                                  `json:"text"`
	Done bool                                    `json:"done"`
	User TodosWithVariablesQueryPayloadTodosUser `json:"user"`
}

type TodosWithVariablesQueryPayloadTodosUser

type TodosWithVariablesQueryPayloadTodosUser struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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