sender

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCloudEvent

func NewCloudEvent(data interface{}, typ string) cloudevents.Event

NewCloudEvent creates a new cloud event

func NewEventID

func NewEventID() string

NewEventID creates new event ID

func SendEvent

func SendEvent(e cloudevents.Event, url string) error

SendEvent will send cloud event to given url

Types

type Sender

type Sender interface {
	SendContinually()
}

Sender will send messages continuously until process receives a SIGINT

func New

func New() Sender

New creates new Sender

Jump to

Keyboard shortcuts

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