eventkeys

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package eventkeys is the SHARED definition of the event names core publishes and the Data keys each one carries — the contract a notification plugin depends on.

It is a LEAF with no imports at all, and it lives outside internal/ on purpose: core builds every event's Data from it (internal/events) and the public SDK re-exports it (plugin/sdk.EventKeys), so the documented set cannot drift from what core actually emits. Putting it in internal/events instead would drag that package's database dependency into every plugin that wants to know an event's field names.

All values are non-secret and non-PII (ids and slugs).

Index

Constants

View Source
const (
	EventChallengeSolved = "challenge.solved"
)

Event names published by core. A name here MUST have a Schema entry and a builder in internal/events.

Variables

View Source
var Schema = map[string][]string{
	EventChallengeSolved: {"challenge_id", "challenge_slug", "team_id", "user_id"},
}

Schema documents the Data keys each event type carries. Keys are sorted.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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