unwrap

package
v0.0.0-...-e11bb24 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unwrap

func Unwrap(msg substrate.Message) substrate.Message

Unwrap is a convenience function that unwraps a chain of annotated messages and returns the original one.

Types

type AnnotatedMessage

type AnnotatedMessage interface {
	substrate.Message
	Original() substrate.Message
}

AnnotatedMessage is an interface implemented by messages used by sink wrappers, in particular the synchronous sink adapter. This allows the backends to retrieve the original message the user sent when invoking user provided callbacks for example for getting partition keys.

Jump to

Keyboard shortcuts

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