inputdecoder

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	// NextYAMLBytes returns YAML marshaled bytes of the next request body
	// It returns io.EOF when there are no more requests
	NextYAMLBytes() ([]byte, error)
}

Decoder interface exposes method for reading multiple input requests

func New

func New(reader io.Reader) (Decoder, error)

New detects the input encoding type, returns either json or yaml request decoder

Jump to

Keyboard shortcuts

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