codec

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableChunkedFraming

func EnableChunkedFraming(d *Decoder, e *Encoder)

EnableChunkedFraming enables chunked framing on the specified decoder and encoder.

Types

type Decoder

type Decoder struct {
	*xml.Decoder
	// contains filtered or unexported fields
}

Decoder wraps the standard xml Codec (for XML decoding) and RFC6242-compliant Codec (for netconf message framing)

func NewDecoder

func NewDecoder(t io.Reader) *Decoder

NewDecoder delivers a new decoder.

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

Encoder wraps the standard xml Codec (for XML encoding) and RFC6242-compliant Codec (for netconf message framing)

func NewEncoder

func NewEncoder(t io.Writer) *Encoder

NewEncoder delivers a new encoder.

func (*Encoder) Encode

func (e *Encoder) Encode(msg interface{}) error

Encode encodes netconf message.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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