handler

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package handler contains fns for encoding redis stream messages to block-replica AVRO segments

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeReplicaSegmentToAvro

func EncodeReplicaSegmentToAvro(replicaAvro *goavro.Codec, blockReplicaSegment interface{}) ([]byte, error)

EncodeReplicaSegmentToAvro encodes replica segment into AVRO binary encoding

func ParseEventToBlockReplica added in v1.1.6

func ParseEventToBlockReplica(e event.Event, hash string, data *types.BlockReplica) (*event.BlockReplicaEvent, error)

ParseEventToBlockReplica takes block-replica data and parses it to a block-replica event

func ParseMessageToBlockReplica added in v1.1.6

func ParseMessageToBlockReplica(msg redis.XMessage) (*event.BlockReplicaEvent, error)

ParseMessageToBlockReplica decodes the redis message to a BlockReplicaEvent

Types

This section is empty.

Jump to

Keyboard shortcuts

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