serializer

package
Version: v0.0.0-...-97f5b14 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferMarshaller

type BufferMarshaller struct {
	io.Writer
}

BufferMarshaller is a simple wrapper arround a reader

func (BufferMarshaller) Marshal

func (u BufferMarshaller) Marshal(adr *adr.ADR) error

Marshal into the supplied ADR reference

type BufferUnmarshaller

type BufferUnmarshaller struct {
	io.Reader
}

BufferUnmarshaller is a simple wrapper arround a reader

func (BufferUnmarshaller) Unmarshal

func (u BufferUnmarshaller) Unmarshal(adr *adr.ADR) error

Unmarshal into the supplied ADR reference

type Interface

type Interface interface {
	Marshaller
	Unmarshaller
}

type Marshaller

type Marshaller interface {
	Marshal(*adr.ADR) error
}

func NewMarshal

func NewMarshal(r io.Writer) Marshaller

NewMarshal is what it says

type Unmarshaller

type Unmarshaller interface {
	Unmarshal(*adr.ADR) error
}

func NewUnmarshal

func NewUnmarshal(r io.Reader) Unmarshaller

NewUnmarshal is what it says

Jump to

Keyboard shortcuts

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