models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notification

type Notification struct {
	Id           string         `json:"id" readonly:"true"`
	Origin       string         `json:"origin" binding:"required"`
	OriginUri    string         `json:"originUri,omitempty"` // can be used to provide a link to the origin
	Timestamp    string         `json:"timestamp" binding:"required" format:"date-time"`
	Title        string         `json:"title" binding:"required"` // can also be seen as the 'type'
	Detail       string         `json:"detail" binding:"required"`
	Level        string         `json:"level" binding:"required" enums:"info,warning,error,critical"`
	CustomFields map[string]any `json:"customFields,omitempty"` // can contain arbitrary structured information about the notification
}

Jump to

Keyboard shortcuts

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