test

package
v1.32.4 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodeFormInput

type DecodeFormInput struct {
	Reader      io.Reader
	ContentType string
}

type DecodeFormOutput

type DecodeFormOutput struct {
	Metadata      *image.Metadata
	ContentIntent string
	Content       *image.Content
	Error         error
}

type EncodeFormInput

type EncodeFormInput struct {
	Metadata      *image.Metadata
	ContentIntent string
	Content       *image.Content
}

type EncodeFormOutput

type EncodeFormOutput struct {
	Reader      io.ReadCloser
	ContentType string
}

type FormDecoder

type FormDecoder struct {
	DecodeFormInvocations int
	DecodeFormInputs      []DecodeFormInput
	DecodeFormStub        func(reader io.Reader, contentType string) (*image.Metadata, string, *image.Content, error)
	DecodeFormOutputs     []DecodeFormOutput
	DecodeFormOutput      *DecodeFormOutput
}

func NewFormDecoder

func NewFormDecoder() *FormDecoder

func (*FormDecoder) AssertOutputsEmpty

func (f *FormDecoder) AssertOutputsEmpty()

func (*FormDecoder) DecodeForm

func (f *FormDecoder) DecodeForm(reader io.Reader, contentType string) (*image.Metadata, string, *image.Content, error)

type FormEncoder

type FormEncoder struct {
	EncodeFormInvocations int
	EncodeFormInputs      []EncodeFormInput
	EncodeFormStub        func(metadata *image.Metadata, contentIntent string, content *image.Content) (io.ReadCloser, string)
	EncodeFormOutputs     []EncodeFormOutput
	EncodeFormOutput      *EncodeFormOutput
}

func NewFormEncoder

func NewFormEncoder() *FormEncoder

func (*FormEncoder) AssertOutputsEmpty

func (f *FormEncoder) AssertOutputsEmpty()

func (*FormEncoder) EncodeForm

func (f *FormEncoder) EncodeForm(metadata *image.Metadata, contentIntent string, content *image.Content) (io.ReadCloser, string)

Jump to

Keyboard shortcuts

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