notifications

package
v0.0.0-...-6603b5a Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckBalancedLeaders

func CheckBalancedLeaders(out chan []Notification)

func CheckISRDelta

func CheckISRDelta(out chan []Notification)

func CheckPluginVersion

func CheckPluginVersion(ch chan []Notification)

func CheckURP

func CheckURP(out chan []Notification)

Types

type IsrStat

type IsrStat struct {
	Shrink int
	Expand int
}

func (IsrStat) Diff

func (me IsrStat) Diff() int

type Level

type Level int
const (
	DANGER  Level = 0
	WARNING Level = 1
	INFO    Level = 2
)

func (Level) String

func (l Level) String() string

type Notification

type Notification struct {
	Key       string
	Title     string
	Level     Level
	Message   string
	Timestamp time.Time
	Link      NotificationLink
}

func List

func List(ctx context.Context) []Notification

func (Notification) MarshalJSON

func (n Notification) MarshalJSON() ([]byte, error)
type NotificationLink struct {
	URL  string `json:"url"`
	Text string `json:"text"`
}

Jump to

Keyboard shortcuts

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