payload

package
v1.0.0-beta11 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package payload ...

Package payload ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONBodyProvider

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

JSONBodyProvider ...

func NewJSONBodyProvider

func NewJSONBodyProvider(p interface{}) *JSONBodyProvider

NewJSONBodyProvider ...

func (*JSONBodyProvider) Body

func (p *JSONBodyProvider) Body() (io.Reader, error)

Body ...

func (*JSONBodyProvider) ContentType

func (p *JSONBodyProvider) ContentType() string

ContentType ...

type JSONConsumer

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

JSONConsumer ...

func NewJSONConsumer

func NewJSONConsumer(receiver interface{}) *JSONConsumer

NewJSONConsumer ...

func (*JSONConsumer) Consume

func (c *JSONConsumer) Consume(reader io.Reader) error

Consume ...

func (*JSONConsumer) Receiver

func (c *JSONConsumer) Receiver() interface{}

Receiver ...

type MultipartFileBody

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

MultipartFileBody ...

func NewMultipartFileBody

func NewMultipartFileBody(name string, contents io.Reader) *MultipartFileBody

NewMultipartFileBody ...

func (*MultipartFileBody) Body

func (p *MultipartFileBody) Body() (io.Reader, error)

Body ...

func (*MultipartFileBody) Close

func (p *MultipartFileBody) Close()

Close ...

func (*MultipartFileBody) ContentType

func (p *MultipartFileBody) ContentType() string

ContentType ...

Jump to

Keyboard shortcuts

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