Documentation ¶
Overview ¶
Package graphql provides a GraphQL client implementation.
For more information, see package github.com/shurcooL/githubv4, which is a specialized version targeting GitHub GraphQL API v4. That package is driving the feature development.
For now, see README for more details.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Boolean ¶
type Boolean bool
Boolean represents true or false values.
func NewBoolean ¶
NewBoolean is a helper to make a new *Boolean.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a GraphQL client.
func NewClient ¶
NewClient creates a GraphQL client targeting the specified GraphQL server URL. If httpClient is nil, then http.DefaultClient is used.
func (*Client) Mutate ¶
Mutate executes a single GraphQL mutation request, with a mutation derived from m, populating the response into it. m should be a pointer to struct that corresponds to the GraphQL schema.
type Datetime ¶
type Datetime string
Datetime represents textual datetime as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.
func NewDatetime ¶
NewDatetime is a helper to make a new *Datetime.
type EmailAddress ¶ added in v1.0.2
type EmailAddress string
EmailAddress represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.
func NewEmailAddress ¶ added in v1.0.2
func NewEmailAddress(v EmailAddress) *EmailAddress
NewGeoPoint is a helper to make a new *GeoPoint.
type Float ¶
type Float float64
Float represents signed double-precision fractional values as specified by IEEE 754.
type GeoPoint ¶ added in v1.0.1
type GeoPoint string
GeoPoint represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.
func NewGeoPoint ¶ added in v1.0.1
NewGeoPoint is a helper to make a new *GeoPoint.
type ID ¶
type ID interface{}
ID represents a unique identifier that is Base64 obfuscated. It is often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "VXNlci0xMA==") or integer (such as 4) input value will be accepted as an ID.
type Int ¶
type Int int32
Int represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
type Int64Bit ¶
type Int64Bit int64
Int64Bit represents non-fractional signed whole numeric values. Int64Bit can represent values between -(2^63) and 2^63 - 1.
func NewInt64Bit ¶
NewInt64Bit is a helper to make a new *Int64Bit.
type InventoryItemDeviceStatus ¶ added in v1.0.4
type InventoryItemDeviceStatus string
InventoryItemDeviceStatus represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.
func NewInventoryItemDeviceStatus ¶ added in v1.0.4
func NewInventoryItemDeviceStatus(v InventoryItemDeviceStatus) *InventoryItemDeviceStatus
NewInventoryItemDeviceStatus is a helper to make a new *InventoryItemDeviceStatus.
type InventoryitemableType ¶ added in v1.0.3
type InventoryitemableType string
InventoryitemableType represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.
func NewInventoryitemableType ¶ added in v1.0.3
func NewInventoryitemableType(v InventoryitemableType) *InventoryitemableType
NewInventoryitemableType is a helper to make a new *InventoryitemableType.
type PreseemStatus ¶ added in v1.0.4
type PreseemStatus string
PreseemStatus represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.
func NewPreseemStatus ¶ added in v1.0.4
func NewPreseemStatus(v PreseemStatus) *PreseemStatus
NewPreseemStatus is a helper to make a new *PreseemStatus.
type String ¶
type String string
String represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.
type Subdivision ¶ added in v1.0.5
type Subdivision string
Subdivision represents textual data as UTF-8 character sequences. This type is most often used by GraphQL to represent free-form human-readable text.
func NewSubdivision ¶ added in v1.0.5
func NewSubdivision(v Subdivision) *Subdivision
NewSubdivision is a helper to make a new *Subdivision.
Directories ¶
Path | Synopsis |
---|---|
example
|
|
graphqldev
graphqldev is a test program currently being used for developing graphql package.
|
graphqldev is a test program currently being used for developing graphql package. |
Package ident provides functions for parsing and converting identifier names between various naming convention.
|
Package ident provides functions for parsing and converting identifier names between various naming convention. |
internal
|
|
jsonutil
Package jsonutil provides a function for decoding JSON into a GraphQL query data structure.
|
Package jsonutil provides a function for decoding JSON into a GraphQL query data structure. |