dbtypes

package
v0.0.0-...-9835270 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: AGPL-3.0, Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

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 AccountDBEventKeyToStr(key int64) string

func AccountDBEventKeyToTableStr

func AccountDBEventKeyToTableStr(key int64) string

func DBCategoryToStr

func DBCategoryToStr(category int64) string

func DBEventKeyToStr

func DBEventKeyToStr(category, key int64) string

func DBEventKeyToTableStr

func DBEventKeyToTableStr(category, key int64) string

func DeviceDBEventKeyToStr

func DeviceDBEventKeyToStr(key int64) string

func DeviceDBEventKeyToTableStr

func DeviceDBEventKeyToTableStr(key int64) string

func E2EDBEventKeyToStr

func E2EDBEventKeyToStr(key int64) string

func E2EDBEventKeyToTableStr

func E2EDBEventKeyToTableStr(key int64) string

func PresenceDBEventKeyToStr

func PresenceDBEventKeyToStr(key int64) string

func PresenceDBEventKeyToTableStr

func PresenceDBEventKeyToTableStr(key int64) string

func PublicRoomDBEventKeyToStr

func PublicRoomDBEventKeyToStr(key int64) string

func PublicRoomDBEventKeyToTableStr

func PublicRoomDBEventKeyToTableStr(key int64) string

func PushDBEventKeyToStr

func PushDBEventKeyToStr(key int64) string

func PushDBEventKeyToTableStr

func PushDBEventKeyToTableStr(key int64) string

func RoomDBEventKeyToStr

func RoomDBEventKeyToStr(key int64) string

func RoomDBEventKeyToTableStr

func RoomDBEventKeyToTableStr(key int64) string

func SyncDBEventKeyToStr

func SyncDBEventKeyToStr(key int64) string

func SyncDBEventKeyToTableStr

func SyncDBEventKeyToTableStr(key int64) string

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 AccountDataInsert struct {
	UserID  string `json:"user_id"`
	RoomID  string `json:"room_id"`
	Type    string `json:"type"`
	Content string `json:"content"`
}

type AccountInsert

type AccountInsert struct {
	UserID       string `json:"user_id"`
	CreatedTs    int64  `json:"created_ts"`
	PassWordHash string `json:"password_hash"`
	AppServiceID string `json:"app_service_id"`
}

type AlInsert

type AlInsert struct {
	DeviceID   string `json:"device_id"`
	UserID     string `json:"user_id"`
	Algorithm  string `json:"algorithm"`
	Identifier string `json:"identifier"`
}

type AliaseDelete

type AliaseDelete struct {
	Alias string `json:"alias"`
}

type AliaseInsert

type AliaseInsert struct {
	Alias  string `json:"alias"`
	RoomID string `json:"room_id"`
}

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 (dbe *DBEvent) GetEventKey() string

func (*DBEvent) GetTblName

func (dbe *DBEvent) GetTblName() string

func (*DBEvent) GetUid

func (dbe *DBEvent) GetUid() int64

func (*DBEvent) SetUid

func (dbe *DBEvent) SetUid(uid int64)

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 DeviceDelete struct {
	DeviceID string `json:"device_id"`
	UserID   string `json:"user_id"`
	CreateTs int64  `json:"create_ts"`
}

type DeviceInsert

type DeviceInsert struct {
	DeviceID     string `json:"device_id"`
	DisplayName  string `json:"display_name"`
	UserID       string `json:"user_id"`
	CreatedTs    int64  `json:"created_ts"`
	DeviceType   string `json:"device_type"`
	Identifier   string `json:"identifier"`
	LastActiveTs int64  `json:"last_active_ts"`
}

type DeviceKeyDelete

type DeviceKeyDelete struct {
	DeviceID string `json:"device_id"`
	UserID   string `json:"user_id"`
}

type DeviceUpdateTs

type DeviceUpdateTs struct {
	DeviceID     string `json:"device_id"`
	UserID       string `json:"user_id"`
	LastActiveTs int64  `json:"last_active_ts"`
}

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 EventInviteInsert struct {
	RoomNid int64  `json:"room_nid"`
	EventId string `json:"event_id"`
	Target  string `json:"target"`
	Sender  string `json:"sender"`
	Content []byte `json:"content"`
}

type EventInviteUpdate

type EventInviteUpdate struct {
	RoomNid int64  `json:"room_nid"`
	Target  string `json:"target"`
}

type EventJsonInsert

type EventJsonInsert struct {
	EventNid  int64  `json:"event_nid"`
	EventJson []byte `json:"event_json"`
	EventType string `json:"event_type"`
}

type EventMembershipForgetUpdate

type EventMembershipForgetUpdate struct {
	RoomID   int64  `json:"room_nid"`
	Target   string `json:"target_id"`
	ForgetID int64  `json:"target_forget_nid"`
}

type EventMembershipInsert

type EventMembershipInsert struct {
	RoomNID       int64  `json:"room_nid"`
	Target        string `json:"target_id"`
	RoomID        string `json:"room_id"`
	MembershipNID int64  `json:"membership_nid"`
	EventNID      int64  `json:"event_nid"`
}

type EventMembershipUpdate

type EventMembershipUpdate struct {
	RoomID     int64  `json:"room_nid"`
	Target     string `json:"target_id"`
	Sender     string `json:"sender_id"`
	Membership int64  `json:"membership_nid"`
	EventNID   int64  `json:"event_nid"`
	Version    int64  `json:"version"`
}

type EventRoomInsert

type EventRoomInsert struct {
	RoomNid int64  `json:"room_nid"`
	RoomId  string `json:"room_id"`
}

type EventRoomUpdate

type EventRoomUpdate struct {
	LatestEventNids  []int64 `json:"latest_event_nids"`
	LastEventSentNid int64   `json:"last_event_sent_nid"`
	StateSnapNid     int64   `json:"state_snapshot_nid"`
	RoomNid          int64   `json:"room_nid"`
	Version          int64   `json:"version"`
	Depth            int64   `json:"depth"`
}

type EventStateSnapInsert

type EventStateSnapInsert struct {
	StateSnapNid   int64   `json:"state_snapshot_nid"`
	RoomNid        int64   `json:"room_nid"`
	StateBlockNids []int64 `json:"state_block_nids"`
}

type FilterInsert

type FilterInsert struct {
	Filter   string `json:"filter"`
	FilterID string `json:"filter_id"`
	UserID   string `json:"user_id"`
}

type KeyDelete

type KeyDelete struct {
	DeviceID  string `json:"device_id"`
	UserID    string `json:"user_id"`
	KeyID     string `json:"key_id"`
	Algorithm string `json:"algorithm"`
}

type KeyInsert

type KeyInsert struct {
	DeviceID   string `json:"device_id"`
	UserID     string `json:"user_id"`
	KeyID      string `json:"key_id"`
	KeyInfo    string `json:"key_info"`
	Algorithm  string `json:"algorithm"`
	Signature  string `json:"signature"`
	Identifier string `json:"identifier"`
}

type MacKeyDelete

type MacKeyDelete struct {
	DeviceID   string `json:"device_id"`
	UserID     string `json:"user_id"`
	Identifier string `json:"identifier"`
}

type MigDeviceInsert

type MigDeviceInsert struct {
	DeviceID       string `json:"device_id"`
	UserID         string `json:"user_id"`
	AccessToken    string `json:"access_token"`
	MigAccessToken string `json:"mig_access_token"`
}

type PresenceDBEvent

type PresenceDBEvent struct {
	PresencesInsert *PresencesInsert `json:"presences_insert,omitempty"`
}

type PresencesInsert

type PresencesInsert struct {
	UserID       string `json:"user_id"`
	Status       string `json:"status"`
	StatusMsg    string `json:"status_msg"`
	ExtStatusMsg string `json:"ext_status_msg"`
}

type ProfileInsert

type ProfileInsert struct {
	UserID      string `json:"user_id"`
	DisplayName string `json:"display_name"`
	AvatarUrl   string `json:"avatar_url"`
}

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 PublicRoomUpdate struct {
	RoomID    string      `json:"room_id"`
	AttrName  string      `json:"attr_name"`
	AttrValue interface{} `json:"attr_value"`
}

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 PushRuleDelete struct {
	UserID string `json:"user_id"`
	RuleID string `json:"rule_id"`
}

type PushRuleEnableInsert

type PushRuleEnableInsert struct {
	UserID  string `json:"user_id"`
	RuleID  string `json:"rule_id"`
	Enabled int    `json:"enabled"`
}

type PushRuleInert

type PushRuleInert struct {
	UserID        string `json:"user_id"`
	RuleID        string `json:"rule_id"`
	PriorityClass int    `json:"priority_class"`
	Priority      int    `json:"priority"`
	Conditions    []byte `json:"conditions"`
	Actions       []byte `json:"actions"`
}

type PusherDelete

type PusherDelete struct {
	UserID  string `json:"user_id"`
	AppID   string `json:"app_id"`
	PushKey string `json:"push_key"`
}

type PusherDeleteByKey

type PusherDeleteByKey struct {
	AppID   string `json:"app_id"`
	PushKey string `json:"push_key"`
}

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 RoomDepthUpdate struct {
	RoomNid int64 `json:"room_nid"`
	Depth   int64 `json:"depth"`
}

type RoomDomainInsert

type RoomDomainInsert struct {
	RoomNid int64  `json:"room_nid"`
	Domain  string `json:"domain"`
	Offset  int64  `json:"offset"`
}

type RoomEventUpdate

type RoomEventUpdate struct {
	RoomNid  int64  `json:"room_nid"`
	EventNid int64  `json:"event_nid"`
	Depth    int64  `json:"depth"`
	Offset   int64  `json:"offset"`
	Domain   string `json:"domain"`
}

type RoomTagDelete

type RoomTagDelete struct {
	RoomID string `json:"room_id"`
	UserID string `json:"user_id"`
	Tag    string `json:"tag"`
}

type RoomTagInsert

type RoomTagInsert struct {
	RoomID  string `json:"room_id"`
	UserID  string `json:"user_id"`
	Tag     string `json:"tag"`
	Content []byte `json:"content"`
}

type SettingsInsert

type SettingsInsert struct {
	SettingKey string `json:"setting_key"`
	Val        string `json:"val"`
}

type SyncClientDataInsert

type SyncClientDataInsert struct {
	ID         int64  `json:"id"`
	UserID     string `json:"user_id"`
	RoomID     string `json:"room_id"`
	DataType   string `json:"data_type"`
	StreamType string `json:"stream_type"`
}

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 SyncEventUpdate struct {
	DomainOffset int64  `json:"domain_offset"`
	Domain       string `json:"domain"`
	OriginTs     int64  `json:"origin_ts"`
	RoomId       string `json:"room_id"`
	EventId      string `json:"event_id"`
}

type SyncEventUpdateContent

type SyncEventUpdateContent struct {
	EventID   string `json:"event_id"`
	RoomID    string `json:"room_id"`
	Content   string `json:"content"`
	EventType string `json:"event_type"`
}

type SyncKeyStreamInsert

type SyncKeyStreamInsert struct {
	ID            int64  `json:"id"`
	ChangedUserID string `json:"changed_user_id"`
}

type SyncMacStdEventDelete

type SyncMacStdEventDelete struct {
	Identifier   string `json:"identifier"`
	TargetUID    string `json:"target_uid"`
	TargetDevice string `json:"target_device"`
}

type SyncOutputMinStreamInsert

type SyncOutputMinStreamInsert struct {
	ID     int64  `json:"id"`
	RoomID string `json:"room_id"`
}

type SyncPresenceInsert

type SyncPresenceInsert struct {
	ID      int64  `json:"id"`
	UserID  string `json:"user_id"`
	Content string `json:"content"`
}

type SyncReceiptInsert

type SyncReceiptInsert struct {
	ID        int64  `json:"id"`
	EvtOffset int64  `json:"evt_offset"`
	RoomID    string `json:"room_id"`
	Content   string `json:"content"`
}

type SyncRoomStateDelete

type SyncRoomStateDelete struct {
	EventId string `json:"event_id"`
}

type SyncRoomStateUpdate

type SyncRoomStateUpdate struct {
	RoomId        string `json:"room_id"`
	EventId       string `json:"event_id"`
	Type          string `json:"event_type"`
	EventJson     []byte `json:"event_json"`
	EventStateKey string `json:"event_state_key"`
	Membership    string `json:"membership"`
	AddPos        int64  `json:"add_position"`
}

type SyncStdEventDelete

type SyncStdEventDelete struct {
	ID           int64  `json:"id"`
	TargetUID    string `json:"target_uid"`
	TargetDevice string `json:"target_device"`
}

type SyncStdEventInsert

type SyncStdEventInsert struct {
	ID           int64                  `json:"id"`
	StdEvent     syncapitypes.StdHolder `json:"std_event"`
	TargetUID    string                 `json:"target_uid"`
	TargetDevice string                 `json:"target_device"`
	Identifier   string                 `json:"identifier"`
}

type SyncUserReceiptInsert

type SyncUserReceiptInsert struct {
	UserID    string `json:"user_id"`
	RoomID    string `json:"room_id"`
	Content   string `json:"content"`
	EvtOffset int64  `json:"event_offset"`
}

type SyncUserTimeLineInsert

type SyncUserTimeLineInsert struct {
	ID          int64  `json:"id"`
	RoomID      string `json:"room_id"`
	EventNID    int64  `json:"event_id"`
	UserID      string `json:"user_id"`
	RoomState   string `json:"room_state"`
	Ts          int64  `json:"ts"`
	EventOffset int64  `json:"event_offset"`
}

type UserInfoDelete

type UserInfoDelete struct {
	UserID string `json:"user_id"`
}

type UserInfoInsert

type UserInfoInsert struct {
	UserID    string `json:"user_id"`
	UserName  string `json:"user_name"`
	JobNumber string `json:"job_number"`
	Mobile    string `json:"mobile"`
	Landline  string `json:"landline"`
	Email     string `json:"email"`
	State     int    `json:"state,omitempty"`
}

Jump to

Keyboard shortcuts

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