event

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTextCompactTemplate

func RegisterTextCompactTemplate(schema string, body string) error

func RegisterTextExtendedTemplate

func RegisterTextExtendedTemplate(schema string, body string) error

Types

type NATSEvent

type NATSEvent struct {
	Type string    `json:"type"`
	ID   string    `json:"id"`
	Time time.Time `json:"timestamp"`
}

func (NATSEvent) EventID

func (e NATSEvent) EventID() string

func (NATSEvent) EventSource

func (e NATSEvent) EventSource() string

func (NATSEvent) EventSubject

func (e NATSEvent) EventSubject() string

func (NATSEvent) EventTemplate

func (e NATSEvent) EventTemplate(kind string) (*template.Template, error)

func (NATSEvent) EventTime

func (e NATSEvent) EventTime() time.Time

func (NATSEvent) EventType

func (e NATSEvent) EventType() string

Jump to

Keyboard shortcuts

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