types

package
v1.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0, MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigInt

type BigInt struct {
	stbig.Int
}

BigInt is a custom GraphQL type to represent a big integer. It has to be added to a schema via "scalar BigInt" since it is not a predeclared GraphQL type like "ID".

func (BigInt) ImplementsGraphQLType

func (BigInt) ImplementsGraphQLType(name string) bool

ImplementsGraphQLType maps this custom Go type to the graphql scalar type in the schema.

func (BigInt) MarshalJSON

func (n BigInt) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for BigInt

This function will be called whenever you query for fields that use the BigInt type

func (*BigInt) UnmarshalGraphQL

func (n *BigInt) UnmarshalGraphQL(input interface{}) error

UnmarshalGraphQL is a custom unmarshaler for BigInt

This function will be called whenever you use the BigInt scalar as an input

type Uint64

type Uint64 uint64

Uint64 is a custom GraphQL type to represent a uint64. It has to be added to a schema via "scalar Uint64" since it is not a predeclared GraphQL type like "ID".

func (Uint64) ImplementsGraphQLType

func (Uint64) ImplementsGraphQLType(name string) bool

ImplementsGraphQLType maps this custom Go type to the graphql scalar type in the schema.

func (Uint64) MarshalJSON

func (n Uint64) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Uint64

This function will be called whenever you query for fields that use the Uint64 type

func (*Uint64) UnmarshalGraphQL

func (n *Uint64) UnmarshalGraphQL(input interface{}) error

UnmarshalGraphQL is a custom unmarshaler for Uint64

This function will be called whenever you use the Uint64 scalar as an input

Jump to

Keyboard shortcuts

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