packer

package
v0.0.0-...-8b81d4d Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MIT, BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

func NewBuilder

func NewBuilder() *Builder

func (*Builder) Finish

func (b *Builder) Finish() error

func (*Builder) MakeStructPacker

func (b *Builder) MakeStructPacker(values common.InputValueList, typ reflect.Type) (*StructPacker, error)

type StructPacker

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

func (*StructPacker) Pack

func (p *StructPacker) Pack(value interface{}) (reflect.Value, error)

type Unmarshaler

type Unmarshaler interface {
	ImplementsGraphQLType(name string) bool
	UnmarshalGraphQL(input interface{}) error
}

type ValuePacker

type ValuePacker struct {
	ValueType reflect.Type
}

func (*ValuePacker) Pack

func (p *ValuePacker) Pack(value interface{}) (reflect.Value, error)

Jump to

Keyboard shortcuts

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