encoding

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(msg messages.Builder, d []byte) error

Types

type DefaultUnmarshaller

type DefaultUnmarshaller struct {
	Validator Validator
	Strict    bool
}

func NewDefaultUnmarshaller

func NewDefaultUnmarshaller(strict bool) *DefaultUnmarshaller

func (DefaultUnmarshaller) Unmarshal

func (u DefaultUnmarshaller) Unmarshal(msg messages.Builder, d []byte) error

type DefaultValidator

type DefaultValidator struct{}

func (DefaultValidator) Do

type Validator

type Validator interface {
	Do(msg messages.Builder) error
}

Jump to

Keyboard shortcuts

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