model

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: MIT Imports: 7 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

MarshalFilePath marshal the file path

func MarshalTimestamp

func MarshalTimestamp(t time.Time) graphql.Marshaler

MarshalTimestamp marshall time stamp content as RFC3339

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)

UnmarshalFilePath unmarshal the file path

func UnmarshalTimestamp

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

UnmarshalTimestamp transform value to Timestamps

Types

This section is empty.

Jump to

Keyboard shortcuts

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