codec

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direct

type Direct interface {
	Interface
	Unmarshal(*http.Request, interface{}) error
}

type Empty

type Empty struct {
}

func (*Empty) ContentType

func (j *Empty) ContentType() []string

func (*Empty) Marshal

func (j *Empty) Marshal(ptr interface{}) ([]byte, error)

func (*Empty) Unmarshal

func (j *Empty) Unmarshal(req *http.Request, ptr interface{}) error

type Interface

type Interface interface {
	ContentType() []string
	Marshal(interface{}) ([]byte, error)
}

type Json

type Json struct {
}

func (*Json) ContentType

func (j *Json) ContentType() []string

func (*Json) Marshal

func (j *Json) Marshal(ptr interface{}) ([]byte, error)

func (*Json) Unmarshal

func (j *Json) Unmarshal(req *http.Request, ptr interface{}) error

type MultipartForm

type MultipartForm struct {
}

func (*MultipartForm) ContentType

func (j *MultipartForm) ContentType() []string

func (*MultipartForm) Marshal

func (j *MultipartForm) Marshal(ptr interface{}) ([]byte, error)

func (*MultipartForm) UnmarshalSearchMap

func (j *MultipartForm) UnmarshalSearchMap(req *http.Request) (SearchMap, error)
type Search interface {
	Interface
	UnmarshalSearchMap(*http.Request) (SearchMap, error)
}

type SearchMap

type SearchMap map[string][]byte

Jump to

Keyboard shortcuts

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