types

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TimeLayout = "2006-01-02T15:04:05.000Z"

Variables

This section is empty.

Functions

This section is empty.

Types

type Datetime

type Datetime struct {
	// contains filtered or unexported fields
}

func NewDatetimeFromTime

func NewDatetimeFromTime(t time.Time) *Datetime

func (*Datetime) GetTime added in v0.4.8

func (d *Datetime) GetTime() time.Time

func (Datetime) MarshalGQL

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

func (*Datetime) UnmarshalGQL

func (d *Datetime) UnmarshalGQL(vi interface{}) (err error)

type JSONString

type JSONString string

func (JSONString) MarshalGQL

func (qs JSONString) MarshalGQL(w io.Writer)

func (*JSONString) UnmarshalGQL

func (qs *JSONString) UnmarshalGQL(vi interface{}) (err error)

type QuotedString

type QuotedString string

func (QuotedString) MarshalGQL

func (qs QuotedString) MarshalGQL(w io.Writer)

func (*QuotedString) UnmarshalGQL

func (qs *QuotedString) UnmarshalGQL(vi interface{}) (err error)

Jump to

Keyboard shortcuts

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