cloudevents

package
v0.1.38 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudEvent added in v0.1.24

type CloudEvent struct {
	Id              string                 `json:"id"`
	Source          string                 `json:"source"`
	SpecVersion     string                 `json:"specversion"`
	Type            string                 `json:"type"`
	DataContentType string                 `json:"datacontenttype"`
	DataSchema      string                 `json:"dataschema"`
	Subject         *string                `json:"subject"`
	Time            time.Time              `json:"time"`
	Data            map[string]interface{} `json:"data"`
	DataBase64      string                 `json:"dataBase64,omitempty"`
}

func BuildEvent added in v0.1.24

func BuildEvent(payload gjson.Result) (CloudEvent, error)

func (CloudEvent) AsByte added in v0.1.24

func (e CloudEvent) AsByte() ([]byte, error)

func (CloudEvent) AsMap added in v0.1.24

func (e CloudEvent) AsMap() (map[string]interface{}, error)

func (CloudEvent) PayloadAsByte added in v0.1.24

func (e CloudEvent) PayloadAsByte() ([]byte, error)

func (CloudEvent) Protocol added in v0.1.24

func (e CloudEvent) Protocol() string

func (CloudEvent) Schema added in v0.1.24

func (e CloudEvent) Schema() *string

Jump to

Keyboard shortcuts

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