deaggregator

package
v0.0.0-...-ed0ae9b Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 5 Imported by: 0

README

Temporary Deaggregator

Upgrading to aws-sdk-go-v2 was blocked on a PR to introduce a new Deaggregator: https://github.com/awslabs/kinesis-aggregation/pull/143/files

Once that PR is merged I'll remove this code and pull in the awslabs/kinesis-aggregation repo.

Documentation

Overview

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	KplMagicLen = 4  // Length of magic header for KPL Aggregate Record checking.
	DigestSize  = 16 // MD5 Message size for protobuf.
)

Variables

View Source
var KplMagicHeader = fmt.Sprintf("%q", []byte("\xf3\x89\x9a\xc2"))

Magic File Header for a KPL Aggregated Record

Functions

func DeaggregateRecords

func DeaggregateRecords(records []*types.Record) ([]*types.Record, error)

DeaggregateRecords takes an array of Kinesis records and expands any Protobuf records within that array, returning an array of all records

Types

This section is empty.

Jump to

Keyboard shortcuts

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