trigger.gno
0.44 Kb · 11 lines
1// Package trigger holds the Trigger struct that gnotif registries accept. A
2// struct declared in a realm cannot be built by another realm, so it lives in
3// a pure package.
4package trigger
5
6// Trigger holds one trigger's fields. Filter is comma-separated key=value
7// pairs; Title, Body and Link are templates where {key} stands for the value
8// of the event's attribute key.
9type Trigger struct {
10 Event, Filter, Param, Title, Body, Link string
11}