context

package
Version: v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromRecord

func FromRecord(parent context.Context, record *data.Record) context.Context

func RecordFromContext

func RecordFromContext(ctx context.Context, key []byte, val []byte) (*data.Record, error)

Types

type Context

type Context struct {
	context.Context
}

type RecordMeta

type RecordMeta struct {
	Topic     string
	Partition int32
	Offset    int64
	Timestamp time.Time
	Headers   data.RecordHeaders
}

func Meta

func Meta(ctx context.Context) *RecordMeta

Source Files

Jump to

Keyboard shortcuts

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