Documentation
¶
Overview ¶
Package model provides shared data types for UI views and transport.
Package model provides shared data types for UI views and transport.
Package model provides shared data types for UI views and transport.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigItem ¶
type ConfigItem struct {
ID int64 `json:"id"`
UID string `json:"uid"`
Topic string `json:"topic"`
Key string `json:"key"`
Value types.KV `json:"value"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
ConfigItem represents a row from the configs database table.
type NotifyChannel ¶
type NotifyChannel struct {
ID int64 `json:"id"`
Name string `json:"name"`
Protocol string `json:"protocol"`
URI string `json:"uri"` // masked for display
Enabled bool `json:"enabled"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
NotifyChannel represents a configured notification channel for UI display. The URI is masked for display; raw URI is never exposed to the client.
type NotifyRule ¶
type NotifyRule struct {
ID int64 `json:"id"`
RuleID string `json:"rule_id"`
Name string `json:"name"`
Action string `json:"action"`
EventPattern string `json:"event_pattern"`
ChannelPattern string `json:"channel_pattern"`
Condition string `json:"condition"`
Priority int `json:"priority"`
ParamsJSON string `json:"params_json"` // JSON string for form display
Enabled bool `json:"enabled"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
NotifyRule represents a notification routing rule for UI display and editing.
type TokenItem ¶
type TokenItem struct {
Token string `json:"token"`
UID types.Uid `json:"uid"`
Scopes []string `json:"scopes"`
CreatedAt time.Time `json:"created_at"`
LastUsedAt *time.Time `json:"last_used_at,omitempty"`
ExpiredAt time.Time `json:"expired_at"`
}
TokenItem represents a token row displayed in the token management UI.
Click to show internal directories.
Click to hide internal directories.