Documentation
¶
Index ¶
Constants ¶
View Source
const ( PushFormatDefault = mautrix.PushFormatDefault PushFormatEventIDOnly = mautrix.PushFormatEventIDOnly PusherKindHTTP = mautrix.PusherKindHTTP PusherKindEmail = mautrix.PusherKindEmail PusherKindWebPush = mautrix.PusherKindWebPush PusherAppEmail = mautrix.PusherAppEmail )
Variables ¶
View Source
var ErrPushRejected error = &RespPush{}
Functions ¶
This section is empty.
Types ¶
type BaseDevice ¶
type BaseDevice struct {
AppID PusherAppID `json:"app_id"`
PushKey string `json:"pushkey"`
PushKeyTS int64 `json:"pushkey_ts,omitzero"`
Data PusherData `json:"data,omitempty"`
}
type Device ¶
type Device struct {
BaseDevice
Tweaks map[pushrules.PushActionTweak]any `json:"tweaks,omitempty"`
}
type NotificationCounts ¶
type PushFormat ¶ added in v0.12.2
type PushFormat = mautrix.PushFormat
type PushKey ¶
type PushKey struct {
BaseDevice
URL string `json:"url"`
}
type PushNotification ¶
type PushNotification struct {
Devices []Device `json:"devices"`
Counts *NotificationCounts `json:"counts,omitempty"`
EventID id.EventID `json:"event_id,omitempty"`
Priority PushPriority `json:"prio,omitempty"`
RoomAlias id.RoomAlias `json:"room_alias,omitempty"`
RoomID id.RoomID `json:"room_id,omitempty"`
RoomName string `json:"room_name,omitempty"`
Sender id.UserID `json:"sender,omitempty"`
SenderDisplayName string `json:"sender_display_name,omitempty"`
Type string `json:"type,omitempty"`
Content json.RawMessage `json:"content,omitempty"`
UserIsTarget bool `json:"user_is_target,omitzero"`
BeeperTTL *int `json:"com.beeper.ttl,omitempty"`
BeeperUserID id.UserID `json:"com.beeper.user_id,omitempty"`
BeeperLastFullyReadRoomID id.RoomID `json:"com.beeper.last_fully_read_room_id,omitempty"`
}
type PushPriority ¶
type PushPriority string
const ( PushPriorityHigh PushPriority = "high" PushPriorityLow PushPriority = "low" )
type PusherAppID ¶ added in v0.12.2
type PusherAppID = mautrix.PusherAppID
type PusherData ¶ added in v0.12.2
type PusherData = mautrix.PusherData
type PusherKind ¶ added in v0.12.2
type PusherKind = mautrix.PusherKind
type ReqPush ¶
type ReqPush struct {
Notification *PushNotification `json:"notification"`
}
type RespPushers ¶ added in v0.12.2
type RespPushers = mautrix.RespPushers
Click to show internal directories.
Click to hide internal directories.