events

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Publish

func Publish(e Event)

func Subscribe

func Subscribe(buffer int) (string, <-chan Event, func())

Types

type Event

type Event struct {
	Type    EventType
	Version int64
	Source  string
	At      time.Time
}

type EventType

type EventType string
const (
	ConfigChanged EventType = "ConfigChanged"
	DiskSpaceLow  EventType = "DiskSpaceLow"
)

Jump to

Keyboard shortcuts

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