inputdecoder

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: MIT Imports: 4 Imported by: 0

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