Documentation ¶
Index ¶
- Constants
- func AccountDBEventKeyToStr(key int64) string
- func AccountDBEventKeyToTableStr(key int64) string
- func DBCategoryToStr(category int64) string
- func DBEventKeyToStr(category, key int64) string
- func DBEventKeyToTableStr(category, key int64) string
- func DeviceDBEventKeyToStr(key int64) string
- func DeviceDBEventKeyToTableStr(key int64) string
- func E2EDBEventKeyToStr(key int64) string
- func E2EDBEventKeyToTableStr(key int64) string
- func PresenceDBEventKeyToStr(key int64) string
- func PresenceDBEventKeyToTableStr(key int64) string
- func PublicRoomDBEventKeyToStr(key int64) string
- func PublicRoomDBEventKeyToTableStr(key int64) string
- func PushDBEventKeyToStr(key int64) string
- func PushDBEventKeyToTableStr(key int64) string
- func RoomDBEventKeyToStr(key int64) string
- func RoomDBEventKeyToTableStr(key int64) string
- func SyncDBEventKeyToStr(key int64) string
- func SyncDBEventKeyToTableStr(key int64) string
- type AccountDBEvent
- type AccountDataInsert
- type AccountInsert
- type AlInsert
- type AliaseDelete
- type AliaseInsert
- type DBEvent
- type DeviceDBEvent
- type DeviceDelete
- type DeviceInsert
- type DeviceKeyDelete
- type DeviceUpdateTs
- type E2EDBEvent
- type EventInsert
- type EventInviteInsert
- type EventInviteUpdate
- type EventJsonInsert
- type EventMembershipForgetUpdate
- type EventMembershipInsert
- type EventMembershipUpdate
- type EventRoomInsert
- type EventRoomUpdate
- type EventStateSnapInsert
- type FilterInsert
- type KeyDelete
- type KeyInsert
- type MacKeyDelete
- type MigDeviceInsert
- type PresenceDBEvent
- type PresencesInsert
- type ProfileInsert
- type PublicRoomDBEvent
- type PublicRoomInsert
- type PublicRoomUpdate
- type PushDBEvent
- type PushRuleDelete
- type PushRuleEnableInsert
- type PushRuleInert
- type PusherDelete
- type PusherDeleteByKey
- type PusherDeleteByKeyOnly
- type PusherInsert
- type RoomDBEvent
- type RoomDepthUpdate
- type RoomDomainInsert
- type RoomEventUpdate
- type RoomTagDelete
- type RoomTagInsert
- type SettingsInsert
- type SyncClientDataInsert
- type SyncDBEvent
- type SyncEventInsert
- type SyncEventUpdate
- type SyncEventUpdateContent
- type SyncKeyStreamInsert
- type SyncMacStdEventDelete
- type SyncOutputMinStreamInsert
- type SyncPresenceInsert
- type SyncReceiptInsert
- type SyncRoomStateDelete
- type SyncRoomStateUpdate
- type SyncStdEventDelete
- type SyncStdEventInsert
- type SyncUserReceiptInsert
- type SyncUserTimeLineInsert
- type UserInfoDelete
- type UserInfoInsert
Constants ¶
View Source
const ( AccountDataInsertKey int64 = 0 AccountInsertKey int64 = 1 FilterInsertKey int64 = 2 ProfileInsertKey int64 = 3 RoomTagInsertKey int64 = 4 RoomTagDeleteKey int64 = 5 ProfileInitKey int64 = 6 DisplayNameInsertKey int64 = 7 AvatarInsertKey int64 = 8 UserInfoInsertKey int64 = 9 UserInfoInitKey int64 = 10 UserInfoDeleteKey int64 = 11 AccountMaxKey int64 = 12 )
View Source
const ( CATEGORY_ROOM_DB_EVENT int64 = 1 CATEGORY_DEVICE_DB_EVENT int64 = 2 CATEGORY_ACCOUNT_DB_EVENT int64 = 3 CATEGORY_PUSH_DB_EVENT int64 = 4 CATEGORY_E2E_DB_EVENT int64 = 5 CATEGORY_SYNC_DB_EVENT int64 = 6 CATEGORY_PUBLICROOM_DB_EVENT int64 = 7 CATEGORY_PRESENCE_DB_EVENT int64 = 8 )
View Source
const ( DeviceInsertKey int64 = 0 DeviceDeleteKey int64 = 1 MigDeviceInsertKey int64 = 2 DeviceRecoverKey int64 = 3 DeviceUpdateTsKey int64 = 4 DeviceMaxKey int64 = 5 )
View Source
const ( DeviceKeyInsertKey int64 = 0 OneTimeKeyInsertKey int64 = 1 OneTimeKeyDeleteKey int64 = 2 AlInsertKey int64 = 3 DeviceAlDeleteKey int64 = 4 DeviceKeyDeleteKey int64 = 5 DeviceOneTimeKeyDeleteKey int64 = 6 MacOneTimeKeyDeleteKey int64 = 7 MacDeviceKeyDeleteKey int64 = 8 MacDeviceAlDeleteKey int64 = 9 E2EMaxKey int64 = 10 )
View Source
const ( PresencesInsertKey int64 = 0 PresenceMaxKey int64 = 1 )
View Source
const ( PublicRoomInsertKey int64 = 0 PublicRoomUpdateKey int64 = 1 PublicRoomIncrementJoinedKey int64 = 2 PublicRoomDecrementJoinedKey int64 = 3 PublicRoomMaxKey int64 = 4 )
View Source
const ( PusherDeleteKey int64 = 0 PusherDeleteByKeyKey int64 = 1 PusherDeleteByKeyOnlyKey int64 = 2 PusherInsertKey int64 = 3 PushRuleUpsertKey int64 = 4 PushRuleDeleteKey int64 = 5 PushRuleEnableUpsetKey int64 = 6 PushMaxKey int64 = 7 )
View Source
const ( EventJsonInsertKey int64 = 0 EventInsertKey int64 = 1 EventRoomInsertKey int64 = 2 EventRoomUpdateKey int64 = 3 EventStateSnapInsertKey int64 = 4 EventInviteInsertKey int64 = 5 EventInviteUpdateKey int64 = 6 EventMembershipInsertKey int64 = 7 EventMembershipUpdateKey int64 = 8 EventMembershipForgetUpdateKey int64 = 9 AliasInsertKey int64 = 10 AliasDeleteKey int64 = 11 RoomDomainInsertKey int64 = 12 RoomEventUpdateKey int64 = 13 RoomDepthUpdateKey int64 = 14 SettingUpsertKey int64 = 15 EventMaxKey int64 = 16 )
View Source
const ( SyncEventInsertKey int64 = 0 SyncRoomStateUpdateKey int64 = 1 SyncClientDataInsertKey int64 = 2 SyncKeyStreamInsertKey int64 = 3 SyncReceiptInsertKey int64 = 4 SyncStdEventInertKey int64 = 5 SyncStdEventDeleteKey int64 = 6 SyncDeviceStdEventDeleteKey int64 = 7 SyncPresenceInsertKey int64 = 8 SyncUserReceiptInsertKey int64 = 9 SyncMacStdEventDeleteKey int64 = 10 SyncUserTimeLineInsertKey int64 = 11 SyncOutputMinStreamInsertKey int64 = 12 SyncEventUpdateKey int64 = 13 SyncEventUpdateContentKey int64 = 14 SyncMaxKey int64 = 15 )
Variables ¶
This section is empty.
Functions ¶
func AccountDBEventKeyToStr ¶
func DBCategoryToStr ¶
func DBEventKeyToStr ¶
func DBEventKeyToTableStr ¶
func DeviceDBEventKeyToStr ¶
func E2EDBEventKeyToStr ¶
func E2EDBEventKeyToTableStr ¶
func PresenceDBEventKeyToStr ¶
func PushDBEventKeyToStr ¶
func RoomDBEventKeyToStr ¶
func SyncDBEventKeyToStr ¶
Types ¶
type AccountDBEvent ¶
type AccountDBEvent struct { AccountDataInsert *AccountDataInsert `json:"account_data_insert,omitempty"` AccountInsert *AccountInsert `json:"account_insert,omitempty"` FilterInsert *FilterInsert `json:"filter_insert,omitempty"` ProfileInsert *ProfileInsert `json:"profile_insert,omitempty"` RoomTagInsert *RoomTagInsert `json:"room_tag_insert,omitempty"` RoomTagDelete *RoomTagDelete `json:"room_tag_delete,omitempty"` UserInfoInsert *UserInfoInsert `json:"user_info_insert,omitempty"` UserInfoDelete *UserInfoDelete `json:"user_info_delete,omitempty"` }
type AccountDataInsert ¶
type AccountInsert ¶
type AliaseDelete ¶
type AliaseDelete struct {
Alias string `json:"alias"`
}
type AliaseInsert ¶
type DBEvent ¶
type DBEvent struct { Key int64 `json:"event_type,omitempty"` Category int64 `json:"category,omitempty"` IsRecovery bool `json:"is_recovery,omitempty"` //recover from db Uid int64 `json:"uid,omitempty"` RoomDBEvents RoomDBEvent `json:"room_db_events,omitempty"` DeviceDBEvents DeviceDBEvent `json:"device_db_events,omitempty"` AccountDBEvents AccountDBEvent `json:"account_db_events,omitempty"` PushDBEvents PushDBEvent `json:"push_db_events,omitempty"` E2EDBEvents E2EDBEvent `json:"e2e_db_events,omitempty"` SyncDBEvents SyncDBEvent `json:"sync_db_events,omitempty"` PublicRoomDBEvents PublicRoomDBEvent `json:"public_room_db_events,omitempty"` PresenceDBEvents PresenceDBEvent `json:"presence_db_events,omitempty"` }
func (*DBEvent) GetEventKey ¶
func (*DBEvent) GetTblName ¶
type DeviceDBEvent ¶
type DeviceDBEvent struct { DeviceInsert *DeviceInsert `json:"device_insert,omitempty"` DeviceDelete *DeviceDelete `json:"device_delete,omitempty"` MigDeviceInsert *MigDeviceInsert `json:"mig_device_insert,omitempty"` DeviceUpdateTs *DeviceUpdateTs `json:"device_update_ts,omitempty"` }
type DeviceDelete ¶
type DeviceInsert ¶
type DeviceKeyDelete ¶
type DeviceUpdateTs ¶
type E2EDBEvent ¶
type E2EDBEvent struct { KeyInsert *KeyInsert `json:"key_insert,omitempty"` KeyDelete *KeyDelete `json:"key_delete,omitempty"` AlInsert *AlInsert `json:"al_insert,omitempty"` DeviceKeyDelete *DeviceKeyDelete `json:"device_key_delete,omitempty"` MacKeyDelete *MacKeyDelete `json:"mac_key_delete,omitempty"` }
type EventInsert ¶
type EventInsert struct { RoomNid int64 `json:"room_nid"` EventType string `json:"event_type"` EventStateKey string `json:"event_state_key"` EventId string `json:"event_id"` RefSha []byte `json:"reference_sha256"` AuthEventNids []int64 `json:"auth_event_nids"` Depth int64 `json:"depth"` EventNid int64 `json:"event_nid"` StateSnapNid int64 `json:"state_snapshot_nid"` RefEventId string `json:"ref_event_id"` Sha []byte `json:"reference_sha256"` Offset int64 `json:"offset"` Domain string `json:"domain"` }
type EventInviteInsert ¶
type EventInviteUpdate ¶
type EventJsonInsert ¶
type EventMembershipInsert ¶
type EventMembershipUpdate ¶
type EventRoomInsert ¶
type EventRoomUpdate ¶
type EventStateSnapInsert ¶
type FilterInsert ¶
type MacKeyDelete ¶
type MigDeviceInsert ¶
type PresenceDBEvent ¶
type PresenceDBEvent struct {
PresencesInsert *PresencesInsert `json:"presences_insert,omitempty"`
}
type PresencesInsert ¶
type ProfileInsert ¶
type PublicRoomDBEvent ¶
type PublicRoomDBEvent struct { PublicRoomInsert *PublicRoomInsert `json:"public_room_insert,omitempty"` PublicRoomUpdate *PublicRoomUpdate `json:"public_room_update,omitempty"` PublicRoomJoined *string `json:"public_room_joined,omitempty"` }
type PublicRoomInsert ¶
type PublicRoomInsert struct { RoomID string `json:"room_id"` SeqID int64 `json:"seq_id"` JoinedMembers int64 `json:"joined_members"` Aliases []string `json:"aliases"` CanonicalAlias string `json:"canonical_alias"` Name string `json:"name"` Topic string `json:"topic"` WorldReadable bool `json:"world_readable"` GuestCanJoin bool `json:"guest_can_join"` AvatarUrl string `json:"avatar_url"` Visibility bool `json:"visibility"` }
type PublicRoomUpdate ¶
type PushDBEvent ¶
type PushDBEvent struct { PusherDelete *PusherDelete `json:"pusher_delete,omitempty"` PusherDeleteByKey *PusherDeleteByKey `json:"pusher_delete_by_key,omitempty"` PusherDeleteByKeyOnly *PusherDeleteByKeyOnly `json:"pusher_delete_by_key_only,omitempty"` PusherInsert *PusherInsert `json:"pusher_insert,omitempty"` PushRuleInert *PushRuleInert `json:"push_rule_insert,omitempty"` PushRuleDelete *PushRuleDelete `json:"push_rule_delete,omitempty"` PushRuleEnableInsert *PushRuleEnableInsert `json:"push_rule_enabled_insert,omitempty"` }
type PushRuleDelete ¶
type PushRuleEnableInsert ¶
type PushRuleInert ¶
type PusherDelete ¶
type PusherDeleteByKey ¶
type PusherDeleteByKeyOnly ¶
type PusherDeleteByKeyOnly struct {
PushKey string `json:"push_key"`
}
type PusherInsert ¶
type PusherInsert struct { UserID string `json:"user_id"` ProfileTag string `json:"profile_tag"` Kind string `json:"kind"` AppID string `json:"app_id"` AppDisplayName string `json:"app_display_name"` DeviceDisplayName string `json:"device_display_name"` PushKey string `json:"push_key"` PushKeyTs int64 `json:"push_key_ts"` Lang string `json:"lang"` Data []byte `json:"data"` DeviceID string `json:"device_id"` }
type RoomDBEvent ¶
type RoomDBEvent struct { EventJsonInsert *EventJsonInsert `json:"event_json_insert,omitempty"` EventInsert *EventInsert `json:"event_insert,omitempty"` EventRoomInsert *EventRoomInsert `json:"event_room_insert,omitempty"` EventRoomUpdate *EventRoomUpdate `json:"event_room_update,omitempty"` EventStateSnapInsert *EventStateSnapInsert `json:"event_state_snap_insert,omitempty"` EventInviteInsert *EventInviteInsert `json:"event_invite_insert,omitempty"` EventInviteUpdate *EventInviteUpdate `json:"event_invite_update,omitempty"` EventMembershipInsert *EventMembershipInsert `json:"event_member_insert,omitempty"` EventMembershipUpdate *EventMembershipUpdate `json:"event_member_update,omitempty"` EventMembershipForgetUpdate *EventMembershipForgetUpdate `json:"event_member_forget_update,omitempty"` AliaseInsert *AliaseInsert `json:"aliase_insert,omitempty"` AliaseDelete *AliaseDelete `json:"aliase_delete,omitempty"` RoomDomainInsert *RoomDomainInsert `json:"room_domain_insert,omitempty"` RoomEventUpdate *RoomEventUpdate `json:"room_event_update,omitempty"` RoomDepthUpdate *RoomDepthUpdate `json:"room_depth_update,omitempty"` SettingsInsert *SettingsInsert `json:"setting_insert,omitempty"` }
type RoomDepthUpdate ¶
type RoomDomainInsert ¶
type RoomEventUpdate ¶
type RoomTagDelete ¶
type RoomTagInsert ¶
type SettingsInsert ¶
type SyncClientDataInsert ¶
type SyncDBEvent ¶
type SyncDBEvent struct { SyncEventInsert *SyncEventInsert `json:"sync_event_insert,omitempty"` SyncRoomStateUpdate *SyncRoomStateUpdate `json:"room_state_update,omitempty"` SyncClientDataInsert *SyncClientDataInsert `json:"sync_client_data_insert,omitempty"` SyncKeyStreamInsert *SyncKeyStreamInsert `json:"sync_key_stream_insert,omitempty"` SyncReceiptInsert *SyncReceiptInsert `json:"sync_receipt_insert,omitempty"` SyncStdEventInsert *SyncStdEventInsert `json:"sync_std_event_insert,omitempty"` SyncStdEventDelete *SyncStdEventDelete `json:"sync_std_event_delete,omitempty"` SyncPresenceInsert *SyncPresenceInsert `json:"sync_presence_insert,omitempty"` SyncUserReceiptInsert *SyncUserReceiptInsert `json:"sync_user_receipt_insert,omitempty"` SyncMacStdEventDelete *SyncMacStdEventDelete `json:"sync_mac_std_delete,omitempty"` SyncUserTimeLineInsert *SyncUserTimeLineInsert `json:"sync_user_time_line_insert,omitempty"` SyncOutputMinStreamInsert *SyncOutputMinStreamInsert `json:"sync_output_min_stream_insert,omitempty"` SyncEventUpdate *SyncEventUpdate `json:"sync_output_event_update,omitempty"` SyncEventUpdateContent *SyncEventUpdateContent `json:"sync_output_event_update_content,omitempty"` }
type SyncEventInsert ¶
type SyncEventInsert struct { Pos int64 `json:"position"` RoomId string `json:"room_id"` EventId string `json:"event_id"` EventJson []byte `json:"event_json"` Add []string `json:"add"` Remove []string `json:"remove"` Device string `json:"device"` TxnId string `json:"txnId"` Type string `json:"event_type"` DomainOffset int64 `json:"domain_offset"` Depth int64 `json:"depth"` Domain string `json:"domain"` OriginTs int64 `json:"origin_ts"` }
type SyncEventUpdate ¶
type SyncEventUpdateContent ¶
type SyncKeyStreamInsert ¶
type SyncMacStdEventDelete ¶
type SyncPresenceInsert ¶
type SyncReceiptInsert ¶
type SyncRoomStateDelete ¶
type SyncRoomStateDelete struct {
EventId string `json:"event_id"`
}
type SyncRoomStateUpdate ¶
type SyncStdEventDelete ¶
type SyncStdEventInsert ¶
type SyncUserReceiptInsert ¶
type SyncUserTimeLineInsert ¶
type UserInfoDelete ¶
type UserInfoDelete struct {
UserID string `json:"user_id"`
}
Click to show internal directories.
Click to hide internal directories.