Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BigInt ¶
type BigInt int64
BigInt wraps the scalar implementation for big integer, with string representation
@scalar BigInt string.
func (BigInt) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (BigInt) ScalarName ¶
ScalarName get the schema name of the scalar.
func (*BigInt) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type Bytes ¶
type Bytes struct {
// contains filtered or unexported fields
}
Bytes wraps the scalar implementation for bytes with base64 encoding
@scalar Bytes string.
func ParseBytes ¶
ParseBytes parses bytes from base64 string.
func (Bytes) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Bytes) ScalarName ¶
ScalarName get the schema name of the scalar.
func (*Bytes) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type Date ¶
Date wraps the scalar implementation for date representation string
@scalar Date date.
func (Date) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (Date) ScalarName ¶
ScalarName get the schema name of the scalar.
func (*Date) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type Duration ¶ added in v1.6.0
Decimal wraps the scalar implementation for duration, with string or unix time integer in nanoseconds
@scalar Duration
func NewDuration ¶ added in v1.6.0
NewDuration creates a Duration instance
func (Duration) MarshalJSON ¶ added in v1.6.0
MarshalJSON implements json.Marshaler.
func (Duration) ScalarName ¶ added in v1.6.0
ScalarName get the schema name of the scalar.
func (*Duration) UnmarshalJSON ¶ added in v1.6.0
UnmarshalJSON implements json.Unmarshaler.
type URL ¶
URL represents a URL string
@scalar URL string.
func (URL) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
func (URL) ScalarName ¶
ScalarName get the schema name of the scalar.
func (*URL) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.