packer

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: 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 []*types.InputValueDefinition, typ reflect.Type) (*StructPacker, error)

type NullUnmarshaller

type NullUnmarshaller interface {
	decode.Unmarshaler
	Nullable()
}

NullUnmarshaller is an unmarshaller that can handle a nil input

type StructPacker

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

func (*StructPacker) Pack

func (p *StructPacker) Pack(value interface{}) (reflect.Value, 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