scalars

package
v0.19.5 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const GqlDateFormat = "2006-01-02"

Variables

This section is empty.

Functions

func MarshalDecimalScalar added in v0.1.2

func MarshalDecimalScalar(id *decimal.Decimal) graphql.Marshaler

func MarshalUUIDScalar

func MarshalUUIDScalar(id *uuid.UUID) graphql.Marshaler

func UnmarshalDecimalScalar added in v0.1.2

func UnmarshalDecimalScalar(v interface{}) (*decimal.Decimal, error)

func UnmarshalUUIDScalar

func UnmarshalUUIDScalar(v interface{}) (*uuid.UUID, error)

Types

type GqlDate added in v0.0.11

type GqlDate time.Time

func (GqlDate) MarshalGQL added in v0.0.11

func (d GqlDate) MarshalGQL(w io.Writer)

func (GqlDate) MarshalJSON added in v0.6.2

func (d GqlDate) MarshalJSON() ([]byte, error)

func (GqlDate) String added in v0.0.11

func (d GqlDate) String() string

func (GqlDate) Time added in v0.0.11

func (d GqlDate) Time() time.Time

func (*GqlDate) UnmarshalGQL added in v0.0.11

func (d *GqlDate) UnmarshalGQL(v interface{}) error

func (*GqlDate) UnmarshalJSON added in v0.6.2

func (d *GqlDate) UnmarshalJSON(data []byte) error

type GqlDuration added in v0.1.3

type GqlDuration string

func (GqlDuration) IsValid added in v0.1.3

func (d GqlDuration) IsValid() bool

func (GqlDuration) MarshalGQL added in v0.1.3

func (d GqlDuration) MarshalGQL(w io.Writer)

func (GqlDuration) String added in v0.1.3

func (d GqlDuration) String() string

func (*GqlDuration) UnmarshalGQL added in v0.1.3

func (d *GqlDuration) UnmarshalGQL(v interface{}) error

Jump to

Keyboard shortcuts

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