pubsub

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PubsubName string

Functions

func PublishDataPayload

func PublishDataPayload(ctx context.Context, topic string, correlationId string, eventData interface{}) error

func PublishEvent

func PublishEvent(ctx context.Context, topic string, event interface{}) error

func UnwrapDataRequestPayload

func UnwrapDataRequestPayload(e event.Event, to interface{}) (string, error)

Types

type DataRequestPayload

type DataRequestPayload struct {
	CorrelationId string `json:"correlationId"`
	Data          []byte `json:"data"`
}

func (DataRequestPayload) DataAs

func (p DataRequestPayload) DataAs(target interface{}) error

Jump to

Keyboard shortcuts

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