remote_api

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalFloat32

func MarshalFloat32(id testomitempty.NamedFloat32) graphql.Marshaler

Lets redefine the base Float32 type

func MarshalID

func MarshalID(id testomitempty.NamedID) graphql.Marshaler

Lets redefine the base ID type to use an id from an external library

func MarshalUint64

func MarshalUint64(id testomitempty.NamedUint64) graphql.Marshaler

Lets redefine the base Uint64 type

func UnmarshalFloat32

func UnmarshalFloat32(v interface{}) (testomitempty.NamedFloat32, error)

And the same for the unmarshaler

func UnmarshalID

func UnmarshalID(v interface{}) (testomitempty.NamedID, error)

And the same for the unmarshaler

func UnmarshalUint64

func UnmarshalUint64(v interface{}) (testomitempty.NamedUint64, error)

And the same for the unmarshaler

Types

type DefinedTypeFromBasics

type DefinedTypeFromBasics struct {
	NewString  testomitempty.NamedString  `json:"newString"`
	NewInt     testomitempty.NamedInt     `json:"newInt"`
	NewInt8    testomitempty.NamedInt8    `json:"newInt8"`
	NewInt16   testomitempty.NamedInt16   `json:"newInt16"`
	NewInt32   testomitempty.NamedInt32   `json:"newInt32"`
	NewInt64   testomitempty.NamedInt64   `json:"newInt64"`
	NewBool    testomitempty.NamedBool    `json:"newBool"`
	NewFloat32 testomitempty.NamedFloat32 `json:"newFloat32"`
	NewFloat64 testomitempty.NamedFloat64 `json:"newFloat64"`
	NewUint    testomitempty.NamedUint    `json:"newUint"`
	NewUint8   testomitempty.NamedUint8   `json:"newUint8"`
	NewUint16  testomitempty.NamedUint16  `json:"newUint16"`
	NewUint32  testomitempty.NamedUint32  `json:"newUint32"`
	NewUint64  testomitempty.NamedUint64  `json:"newUint64"`
	NewID      testomitempty.NamedID      `json:"newID"`
}

type User

type User struct {
	Name  string
	Likes []string
}

Jump to

Keyboard shortcuts

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