modelnetzach

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SystemNotifyTitleCronJob = "Server Scheduled Task"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NotifyFilter added in v0.1.15

type NotifyFilter struct {
	ExcludeKeywords []string
	IncludeKeywords []string
}

type NotifyFlow

type NotifyFlow struct {
	ID          model.InternalID
	Name        string
	Description string
	Sources     []*NotifyFlowSource
	Targets     []*NotifyFlowTarget
	Status      NotifyFlowStatus
}

type NotifyFlowSource

type NotifyFlowSource struct {
	SourceID model.InternalID
	Filter   *NotifyFilter
}

type NotifyFlowStatus

type NotifyFlowStatus int
const (
	NotifyFlowStatusUnspecified NotifyFlowStatus = iota
	NotifyFlowStatusActive
	NotifyFlowStatusSuspend
)

type NotifyFlowTarget

type NotifyFlowTarget struct {
	TargetID model.InternalID
	Filter   *NotifyFilter
}

type NotifyTarget

type NotifyTarget struct {
	ID          model.InternalID
	Name        string
	Description string
	Destination *modelsupervisor.FeatureRequest
	Status      NotifyTargetStatus
}

type NotifyTargetStatus

type NotifyTargetStatus int
const (
	NotifyTargetStatusUnspecified NotifyTargetStatus = iota
	NotifyTargetStatusActive
	NotifyTargetStatusSuspend
)

type SystemNotification added in v0.2.10

type SystemNotification struct {
	ID         model.InternalID
	Type       SystemNotificationType
	Level      SystemNotificationLevel
	Status     SystemNotificationStatus
	Title      string
	Content    string
	CreateTime time.Time
	UpdateTime time.Time
}

type SystemNotificationLevel added in v0.2.10

type SystemNotificationLevel int
const (
	SystemNotificationLevelUnspecified SystemNotificationLevel = iota
	SystemNotificationLevelOngoing
	SystemNotificationLevelError
	SystemNotificationLevelWarning
	SystemNotificationLevelInfo
)

type SystemNotificationStatus added in v0.2.10

type SystemNotificationStatus int
const (
	SystemNotificationStatusUnspecified SystemNotificationStatus = iota
	SystemNotificationStatusUnread
	SystemNotificationStatusRead
	SystemNotificationStatusDismissed
)

type SystemNotificationType added in v0.2.10

type SystemNotificationType int
const (
	SystemNotificationTypeUnspecified SystemNotificationType = iota
	SystemNotificationTypeSystem
	SystemNotificationTypeUser
)

type SystemNotify added in v0.2.10

type SystemNotify struct {
	UserID       model.InternalID
	Notification SystemNotification
}

func NewSystemNotify added in v0.2.10

func NewSystemNotify(
	level SystemNotificationLevel,
	title string,
	content string,
) SystemNotify

func NewUserNotify added in v0.2.10

func NewUserNotify(
	userID model.InternalID,
	level SystemNotificationLevel,
	title string,
	content string,
) SystemNotify

Jump to

Keyboard shortcuts

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