compressxdr

package
v0.0.0-...-095633c Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	GZIP = "gzip"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MockXDRDecoder

type MockXDRDecoder struct {
	mock.Mock
}

func (*MockXDRDecoder) ReadFrom

func (m *MockXDRDecoder) ReadFrom(r io.Reader) (int64, error)

func (*MockXDRDecoder) Unzip

func (m *MockXDRDecoder) Unzip(r io.Reader) ([]byte, error)

type XDRDecoder

type XDRDecoder interface {
	ReadFrom(r io.Reader) (int64, error)
	Unzip(r io.Reader) ([]byte, error)
}

func NewXDRDecoder

func NewXDRDecoder(compressionType string, xdrPayload interface{}) (XDRDecoder, error)

type XDREncoder

type XDREncoder interface {
	WriteTo(w io.Writer) (int64, error)
}

func NewXDREncoder

func NewXDREncoder(compressionType string, xdrPayload interface{}) (XDREncoder, error)

type XDRGzipDecoder

type XDRGzipDecoder struct {
	XdrPayload interface{}
}

func (*XDRGzipDecoder) ReadFrom

func (d *XDRGzipDecoder) ReadFrom(r io.Reader) (int64, error)

func (*XDRGzipDecoder) Unzip

func (d *XDRGzipDecoder) Unzip(r io.Reader) ([]byte, error)

type XDRGzipEncoder

type XDRGzipEncoder struct {
	XdrPayload interface{}
}

func (*XDRGzipEncoder) WriteTo

func (g *XDRGzipEncoder) WriteTo(w io.Writer) (int64, error)

Jump to

Keyboard shortcuts

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