Documentation ¶
Index ¶
- func FmtID(format string, args ...interface{}) string
- func MarshalInt(t int) graphql.Marshaler
- func MarshalInt32(t int32) graphql.Marshaler
- func MarshalInt64(t int64) graphql.Marshaler
- func MarshalNullInt64(b sql.NullInt64) graphql.Marshaler
- func MarshalNullUint64(t uint64) graphql.Marshaler
- func MarshalUint(t uint) graphql.Marshaler
- func MarshalUint32(t uint32) graphql.Marshaler
- func MarshalUint64(t uint64) graphql.Marshaler
- func SplitID(id string) ([]string, error)
- func UnmarshalInt(v interface{}) (int, error)
- func UnmarshalInt32(v interface{}) (int32, error)
- func UnmarshalInt64(v interface{}) (int64, error)
- func UnmarshalNullInt64(v interface{}) (i sql.NullInt64, err error)
- func UnmarshalUint(v interface{}) (uint, error)
- func UnmarshalUint32(v interface{}) (uint32, error)
- func UnmarshalUint64(v interface{}) (uint64, error)
- type AppInfo
- type GraphGQL
- type GraphNode
- type ListIDs
- type ListStrings
- type Node
- type NodeFn
- type NullTime
- func (n NullTime) MarshalGQL(w io.Writer)
- func (n NullTime) MarshalJSON() (out []byte, err error)
- func (n *NullTime) Scan(value interface{}) (err error)
- func (n *NullTime) UnmarshalGQL(v interface{}) (err error)
- func (n *NullTime) UnmarshalJSON(in []byte) (err error)
- func (n NullTime) Value() (driver.Value, error)
- type NullUint64
- type QueryInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalInt32 ¶
MarshalInt32 implements a Int32 value
func MarshalInt64 ¶
MarshalInt64 implements a Int64 value
func MarshalNullInt64 ¶
MarshalNullInt64 is a nullable int marshaller
func MarshalNullUint64 ¶
MarshalNullUint64 overrides the default data type of NullUint for graphQL
func MarshalUint32 ¶
MarshalUint32 implements a Uint32 value
func MarshalUint64 ¶
MarshalUint64 implements a Uint64 value
func UnmarshalInt ¶
UnmarshalInt implements a Int value
func UnmarshalInt32 ¶
UnmarshalInt32 implements a Int32 value
func UnmarshalInt64 ¶
UnmarshalInt64 implements a Int64 value
func UnmarshalNullInt64 ¶
UnmarshalNullInt64 is a nullable int unmarshaller
func UnmarshalUint ¶
UnmarshalUint implements a Uint value
func UnmarshalUint32 ¶
UnmarshalUint32 implements a Uint32 value
func UnmarshalUint64 ¶
UnmarshalUint64 implements a Uint64 value
Types ¶
type AppInfo ¶
type AppInfo struct { // Application Name Name string `json:"name"` // Version number Version string `json:"version"` // Build information Build string `json:"build"` }
AppInfo about running server
type GraphNode ¶ added in v0.12.6
type GraphNode struct {
// contains filtered or unexported fields
}
GraphNode implements the node interface for Graphql
type ListIDs ¶
type ListIDs []uint64
ListIDs is a list of ID values.
func (ListIDs) MarshalJSON ¶
MarshalJSON implements the JSON interface for ListIDs.
func (*ListIDs) UnmarshalJSON ¶
UnmarshalJSON implements the JSON interface for ListIDs.
type ListStrings ¶
type ListStrings []string
ListStrings is a list of String values.
func (ListStrings) MarshalJSON ¶
func (e ListStrings) MarshalJSON() (out []byte, err error)
MarshalJSON implements the JSON interface for ListIDs.
func (*ListStrings) Scan ¶
func (e *ListStrings) Scan(value interface{}) (err error)
Scan implements the Scanner interface for ListIDs.
func (*ListStrings) UnmarshalJSON ¶
func (e *ListStrings) UnmarshalJSON(in []byte) error
UnmarshalJSON implements the JSON interface for ListStrings.
type Node ¶ added in v0.12.6
type Node interface {
IsNode()
}
Node for use with graphql schema @goModel()
type NullTime ¶
NullTime implements a nullable timestamp for sql swagger:type string
func (NullTime) MarshalGQL ¶
MarshalGQL implements the graphql.Marshaler interface for NullTime
func (NullTime) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for NullTime
func (*NullTime) UnmarshalGQL ¶
UnmarshalGQL implements the graphql.Marshaler interface for NullTime
func (*NullTime) UnmarshalJSON ¶
UnmarshalJSON implements the json.Marshaler interface for NullTime
type NullUint64 ¶
NullUint64 represents an int64 that may be null. NullUint64 implements the Scanner interface so it can be used as a scan destination, similar to NullString.
func UnmarshalNullUint64 ¶
func UnmarshalNullUint64(v interface{}) (n NullUint64, err error)
UnmarshalNullUint64 overrides the default data type of NullUint for graphQL
func (*NullUint64) Scan ¶
func (n *NullUint64) Scan(value interface{}) (err error)
Scan implements the Scanner interface.