common

package
v2.0.0-...-90a9bfb Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressGZIP

type CompressGZIP struct {
}

CompressGZIP Gzip compression

func (*CompressGZIP) Compress

func (es *CompressGZIP) Compress(subBatchMessages []byte) ([]byte, error)

func (*CompressGZIP) GetType

func (es *CompressGZIP) GetType() uint8

type CompressNONE

type CompressNONE struct {
}

CompressNONE No compression

func (*CompressNONE) Compress

func (es *CompressNONE) Compress(subBatchMessages []byte) ([]byte, error)

func (*CompressNONE) GetType

func (es *CompressNONE) GetType() uint8

type CompresserCodec

type CompresserCodec interface {
	Compress(subBatchMessages []byte) ([]byte, error)
	GetType() uint8
}

type Message

type Message interface {
	encoding.BinaryMarshaler
	encoding.BinaryUnmarshaler
}

Message is the interface for the message

type PublishingMessager

type PublishingMessager interface {
	io.WriterTo
	SetPublishingId(publishingId uint64)
	PublishingId() uint64
	SetMessage(message Message)
	Message() Message
}

PublishingMessager is the interface for the publishing message it creates a message with a publishingId and a Message The message doesn't contain the publishingId this is why we need this interface

Jump to

Keyboard shortcuts

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