event

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContentSubtype

func ContentSubtype(contentType string) (string, bool)

func ContentType

func ContentType(contentSubtype string) string

func NewIncomingContext

func NewIncomingContext(ctx context.Context, md *Metadata) context.Context

Types

type Metadata

type Metadata struct {
	SpecVersion     string
	Type            string
	Source          string
	Subject         string
	ID              string
	Time            time.Time
	Extensions      map[string]interface{}
	DataSchema      *url.URL
	DataContentType string
}

func MetadataFromIncomingContext

func MetadataFromIncomingContext(ctx context.Context) (*Metadata, bool)

func NewMetadata added in v0.1.6

func NewMetadata(t string) *Metadata

Jump to

Keyboard shortcuts

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