model

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalDuration

func MarshalDuration(d time.Duration) graphql.Marshaler

if the type referenced in .gqlgen.yml is a function that returns a marshaller we can use it to encode and decode onto any existing go type.

func MarshalFilePath

func MarshalFilePath(f string) graphql.Marshaler

if the type referenced in .gqlgen.yml is a function that returns a marshaller we can use it to encode and decode onto any existing go type.

func MarshalTimestamp

func MarshalTimestamp(t time.Time) graphql.Marshaler

if the type referenced in .gqlgen.yml is a function that returns a marshaller we can use it to encode and decode onto any existing go type.

func UnmarshalDuration

func UnmarshalDuration(v interface{}) (time.Duration, error)

Unmarshal{Typename} is only required if the scalars appears as an input. The raw values have already been decoded from json into int/float64/bool/nil/map[string]interface/[]interface

func UnmarshalFilePath

func UnmarshalFilePath(v interface{}) (string, error)

Unmarshal{Typename} is only required if the scalars appears as an input. The raw values have already been decoded from json into int/float64/bool/nil/map[string]interface/[]interface

func UnmarshalTimestamp

func UnmarshalTimestamp(v interface{}) (time.Time, error)

Unmarshal{Typename} is only required if the scalars appears as an input. The raw values have already been decoded from json into int/float64/bool/nil/map[string]interface/[]interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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