httpnotifyservice

package
v0.2.49 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventTopicPublished = "topic.published"
	EventTopicUpdated   = "topic.updated"
	EventCommentCreated = "comment.created"
	EventUserSignup     = "user.signup"
	EventReportCreated  = "moderation.report.created"
)

Variables

This section is empty.

Functions

func Notify

func Notify(eventName string, data any)

func ShouldNotify added in v0.2.41

func ShouldNotify(eventName string) bool

Types

type Envelope

type Envelope struct {
	Event     string `json:"event"`
	Timestamp int64  `json:"timestamp"`
	Data      any    `json:"data"`
}

Jump to

Keyboard shortcuts

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