messagingv2

package
v0.2.47 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateReference

type AggregateReference struct {
	Aggregate string                          `json:"aggregate"`
	Domain    string                          `json:"domain"`
	Id        string                          `json:"id"`
	Parents   []AggregateReferenceParentsItem `json:"parents,omitempty"`
}

func (*AggregateReference) Validate

func (o *AggregateReference) Validate() error

type AggregateReferenceParentsItem

type AggregateReferenceParentsItem struct {
	Aggregate string `json:"aggregate"`
	Domain    string `json:"domain"`
	Id        string `json:"id"`
}

func (*AggregateReferenceParentsItem) Validate

func (o *AggregateReferenceParentsItem) Validate() error

type Notification

type Notification struct {
	CreatedAt time.Time            `json:"createdAt"`
	Id        string               `json:"id"`
	Read      bool                 `json:"read"`
	Reference AggregateReference   `json:"reference"`
	Severity  NotificationSeverity `json:"severity"`
	Type      string               `json:"type"`
}

func (*Notification) Validate

func (o *Notification) Validate() error

type NotificationSeverity

type NotificationSeverity string
const NotificationSeverityError NotificationSeverity = "error"
const NotificationSeverityInfo NotificationSeverity = "info"
const NotificationSeveritySuccess NotificationSeverity = "success"
const NotificationSeverityWarning NotificationSeverity = "warning"

func (NotificationSeverity) Validate

func (e NotificationSeverity) Validate() error

type NotificationStatus

type NotificationStatus string
const NotificationStatusRead NotificationStatus = "read"

func (NotificationStatus) Validate

func (e NotificationStatus) Validate() error

Jump to

Keyboard shortcuts

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