unmarshal

package
v0.0.0-...-9dd33c3 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package unmarshal implements the unmarshalling side of network encoding

Index

Constants

View Source
const ContentTypeJSON = "application/json"

ContentTypeJSON holds the HTML content-type of a JSON payload

View Source
const ContentTypeProtobuf = "application/protobuf"

ContentTypeProtobuf holds the HTML content-type of a Protobuf payload

Variables

This section is empty.

Functions

This section is empty.

Types

type Unmarshaler

type Unmarshaler interface {
	Unmarshal([]byte) (*model.Connections, error)
	ContentType() string
}

Unmarshaler is an interface implemented by all Connections deserializers

func GetUnmarshaler

func GetUnmarshaler(ctype string) Unmarshaler

GetUnmarshaler returns the appropriate Unmarshaler based on the given content type

Jump to

Keyboard shortcuts

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