payload

package
v0.0.0-...-af03cf1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Payload

type Payload struct {
	CorrelationID   string
	OriginTimestamp string
	IsSynthetic     bool `codec:",omitempty"`
	ApplicationID   string
	APIVersion      string `codec:"apiVersion"`
	EventHeader     string
	EventBody       string
}

Payload event type

func FromJSON

func FromJSON(jsonPayload []byte) (Payload, error)

FromJSON deserializes a JSON payload using codecs

func (*Payload) CodecDecodeSelf

func (x *Payload) CodecDecodeSelf(d *codec1978.Decoder)

func (*Payload) CodecEncodeSelf

func (x *Payload) CodecEncodeSelf(e *codec1978.Encoder)

type Reader

type Reader func() (Payload, error)

Reader deserializes a json payload... json string must be passed in as part of a closure

Jump to

Keyboard shortcuts

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