types

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0, MIT Imports: 7 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 Checkpoint added in v1.5.1

type Checkpoint struct {
	Value *string
	Set   bool
}

func (Checkpoint) ImplementsGraphQLType added in v1.5.1

func (Checkpoint) ImplementsGraphQLType(name string) bool

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

func (Checkpoint) MarshalJSON added in v1.5.1

func (cp Checkpoint) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Checkpoint

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

func (*Checkpoint) Nullable added in v1.5.1

func (cp *Checkpoint) Nullable()

func (*Checkpoint) UnmarshalGraphQL added in v1.5.1

func (cp *Checkpoint) UnmarshalGraphQL(input interface{}) error

UnmarshalGraphQL is a custom unmarshaler for Checkpoint

This function will be called whenever you use the Checkpoint 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