external

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 Imports: 12 Imported by: 0

README

capn 使用: 1.根据消息类型编写对应的 capn schema 定义, 比如 login.capn。 2.根据 capn schema 定义, 比如 login.capn,定义编译生成 go 代码,login.capn.go: VENDER_PATH 为 dendrite vender 目录。 本机安装 capnp 程序: brew install capnp。 编译需要使用 go 插件, 已生成在:export PATH=$PATH:$VENDER_PATH/bin 编译:capnp compile -I$VENDER_PATH/src/zombiezen.com/go/capnproto2/std -ogo login.capn 3.使用生成的 go 代码编写 encode 和 decode 过程。

编译和调用 go 代码都需要依赖 zombiezen.com/go/capnproto2。 调用过程不需要依赖本地 capnp 库。

Documentation

Index

Constants

View Source
const AccountDataCapn_TypeID = 0xec66b586e9b30696

AccountDataCapn_TypeID is the unique identifier for the type AccountDataCapn.

View Source
const AuthDataCapn_TypeID = 0xcfbff7df7450a508

AuthDataCapn_TypeID is the unique identifier for the type AuthDataCapn.

View Source
const AuthDictCapn_TypeID = 0xeee54a14f2c8c4f3

AuthDictCapn_TypeID is the unique identifier for the type AuthDictCapn.

View Source
const AuthFlowCapn_TypeID = 0xa57da608a1e656cd

AuthFlowCapn_TypeID is the unique identifier for the type AuthFlowCapn.

View Source
const DelDeviceRequestCapn_TypeID = 0xcb0e6b8da42d98b7

DelDeviceRequestCapn_TypeID is the unique identifier for the type DelDeviceRequestCapn.

View Source
const DelDevicesByIDRequestCapn_TypeID = 0xaf2c8e1482733e39

DelDevicesByIDRequestCapn_TypeID is the unique identifier for the type DelDevicesByIDRequestCapn.

View Source
const DelDirectoryRoomAliasRequestCapn_TypeID = 0xdd685532e70ac5cf

DelDirectoryRoomAliasRequestCapn_TypeID is the unique identifier for the type DelDirectoryRoomAliasRequestCapn.

View Source
const DelPushrulesByIDRequestCapn_TypeID = 0xfcd7f6cdba6022fa

DelPushrulesByIDRequestCapn_TypeID is the unique identifier for the type DelPushrulesByIDRequestCapn.

View Source
const DelRoomsTagsByIDRequestCapn_TypeID = 0xfd765c10c8315840

DelRoomsTagsByIDRequestCapn_TypeID is the unique identifier for the type DelRoomsTagsByIDRequestCapn.

View Source
const DeviceAuthDictCapn_TypeID = 0xb7628e8135d9844e

DeviceAuthDictCapn_TypeID is the unique identifier for the type DeviceAuthDictCapn.

View Source
const DeviceCapn_TypeID = 0xf882edf00b3cf3b7

DeviceCapn_TypeID is the unique identifier for the type DeviceCapn.

View Source
const DeviceListCapn_TypeID = 0x8434d739f5fd7da6

DeviceListCapn_TypeID is the unique identifier for the type DeviceListCapn.

View Source
const DeviceListsCapn_TypeID = 0xd0826f72f7a0b6d8

DeviceListsCapn_TypeID is the unique identifier for the type DeviceListsCapn.

View Source
const EphemeralCapn_TypeID = 0xf6c06e60c9f8ba9d

EphemeralCapn_TypeID is the unique identifier for the type EphemeralCapn.

View Source
const EventCapn_TypeID = 0xfa27d6ab30deafd8

EventCapn_TypeID is the unique identifier for the type EventCapn.

View Source
const EventFilterCapn_TypeID = 0xc3019559a9c4b193

EventFilterCapn_TypeID is the unique identifier for the type EventFilterCapn.

View Source
const FilterCapn_TypeID = 0xbd580a6d0364043f

FilterCapn_TypeID is the unique identifier for the type FilterCapn.

View Source
const FlowCapn_TypeID = 0x9ab73643587fe10c

FlowCapn_TypeID is the unique identifier for the type FlowCapn.

View Source
const GetAccount3PIDResponseCapn_TypeID = 0xfce92fabcab7ecbb

GetAccount3PIDResponseCapn_TypeID is the unique identifier for the type GetAccount3PIDResponseCapn.

View Source
const GetAccountWhoAmIResponseCapn_TypeID = 0x982630eb369fc653

GetAccountWhoAmIResponseCapn_TypeID is the unique identifier for the type GetAccountWhoAmIResponseCapn.

View Source
const GetAccountWhoAmIRquestCapn_TypeID = 0xa65517d19c535006

GetAccountWhoAmIRquestCapn_TypeID is the unique identifier for the type GetAccountWhoAmIRquestCapn.

View Source
const GetAvatarURLRequestCapn_TypeID = 0xbe5e69974aa5e7af

GetAvatarURLRequestCapn_TypeID is the unique identifier for the type GetAvatarURLRequestCapn.

View Source
const GetAvatarURLResponseCapn_TypeID = 0x97c59b2360f2bd24

GetAvatarURLResponseCapn_TypeID is the unique identifier for the type GetAvatarURLResponseCapn.

View Source
const GetDeviceRequestCapn_TypeID = 0xb886e6d051434b84

GetDeviceRequestCapn_TypeID is the unique identifier for the type GetDeviceRequestCapn.

View Source
const GetDevicesByIDRequestCapn_TypeID = 0x9368ba1f37b34503

GetDevicesByIDRequestCapn_TypeID is the unique identifier for the type GetDevicesByIDRequestCapn.

View Source
const GetDevicesByIDResponseCapn_TypeID = 0xbf1d23c7af967ed0

GetDevicesByIDResponseCapn_TypeID is the unique identifier for the type GetDevicesByIDResponseCapn.

View Source
const GetDevicesResponseCapn_TypeID = 0xd3d9a3cbe851ea30

GetDevicesResponseCapn_TypeID is the unique identifier for the type GetDevicesResponseCapn.

View Source
const GetDirectoryRoomAliasRequestCapn_TypeID = 0xf90baea598307491

GetDirectoryRoomAliasRequestCapn_TypeID is the unique identifier for the type GetDirectoryRoomAliasRequestCapn.

View Source
const GetDirectoryRoomAliasResponseCapn_TypeID = 0xbc8fa0773bb12e2f

GetDirectoryRoomAliasResponseCapn_TypeID is the unique identifier for the type GetDirectoryRoomAliasResponseCapn.

View Source
const GetDirectoryRoomRequestCapn_TypeID = 0xfbfb84869193203d

GetDirectoryRoomRequestCapn_TypeID is the unique identifier for the type GetDirectoryRoomRequestCapn.

View Source
const GetDirectoryRoomResponseCapn_TypeID = 0xa862165daa39f9fc

GetDirectoryRoomResponseCapn_TypeID is the unique identifier for the type GetDirectoryRoomResponseCapn.

View Source
const GetDisplayNameRequestCapn_TypeID = 0x87aeb8fbedaaf0a1

GetDisplayNameRequestCapn_TypeID is the unique identifier for the type GetDisplayNameRequestCapn.

View Source
const GetDisplayNameResponseCapn_TypeID = 0xb46aae264582eaec

GetDisplayNameResponseCapn_TypeID is the unique identifier for the type GetDisplayNameResponseCapn.

View Source
const GetEventByIDRequestCapn_TypeID = 0xdf6a3f4de866ea46

GetEventByIDRequestCapn_TypeID is the unique identifier for the type GetEventByIDRequestCapn.

View Source
const GetInitialSyncRequestCapn_TypeID = 0xb20092cd70a1cc25

GetInitialSyncRequestCapn_TypeID is the unique identifier for the type GetInitialSyncRequestCapn.

View Source
const GetJoinedMemberRequestCapn_TypeID = 0xd2a899805e30f215

GetJoinedMemberRequestCapn_TypeID is the unique identifier for the type GetJoinedMemberRequestCapn.

View Source
const GetJoinedRoomsResponseCapn_TypeID = 0xa794acd355ffccfd

GetJoinedRoomsResponseCapn_TypeID is the unique identifier for the type GetJoinedRoomsResponseCapn.

View Source
const GetKeysChangesRequestCapn_TypeID = 0xd93ba80c73591bb5

GetKeysChangesRequestCapn_TypeID is the unique identifier for the type GetKeysChangesRequestCapn.

View Source
const GetKeysChangesResponseCapn_TypeID = 0xc3ff4ffb72f00f5a

GetKeysChangesResponseCapn_TypeID is the unique identifier for the type GetKeysChangesResponseCapn.

View Source
const GetLoginRequestCapn_TypeID = 0xf9423d522bc945c9

GetLoginRequestCapn_TypeID is the unique identifier for the type GetLoginRequestCapn.

View Source
const GetLoginResponseCapn_TypeID = 0x9aa6454a3699f75b

GetLoginResponseCapn_TypeID is the unique identifier for the type GetLoginResponseCapn.

View Source
const GetMediaDownloadByFileNameRequestCapn_TypeID = 0xf436c006ff483bce

GetMediaDownloadByFileNameRequestCapn_TypeID is the unique identifier for the type GetMediaDownloadByFileNameRequestCapn.

View Source
const GetMediaDownloadRequestCapn_TypeID = 0x9b419f9b5478dbf2

GetMediaDownloadRequestCapn_TypeID is the unique identifier for the type GetMediaDownloadRequestCapn.

View Source
const GetMediaPreviewURLRequestCapn_TypeID = 0xd0a84875fef820a3

GetMediaPreviewURLRequestCapn_TypeID is the unique identifier for the type GetMediaPreviewURLRequestCapn.

View Source
const GetMediaPreviewURLResponseCapn_TypeID = 0x9f5f6c6fca7ffb80

GetMediaPreviewURLResponseCapn_TypeID is the unique identifier for the type GetMediaPreviewURLResponseCapn.

View Source
const GetMediaThumbnailRequestCapn_TypeID = 0x997bda7db590d5c6

GetMediaThumbnailRequestCapn_TypeID is the unique identifier for the type GetMediaThumbnailRequestCapn.

View Source
const GetNotificationsRequestCapn_TypeID = 0xf77c358ea390ed11

GetNotificationsRequestCapn_TypeID is the unique identifier for the type GetNotificationsRequestCapn.

View Source
const GetPresenceListRequestCapn_TypeID = 0xf4e0bdebc456b808

GetPresenceListRequestCapn_TypeID is the unique identifier for the type GetPresenceListRequestCapn.

View Source
const GetPresenceListResponseCapn_TypeID = 0x8c923144e5ae124a

GetPresenceListResponseCapn_TypeID is the unique identifier for the type GetPresenceListResponseCapn.

View Source
const GetPresenceRequestCapn_TypeID = 0x9e7b01a107712f9a

GetPresenceRequestCapn_TypeID is the unique identifier for the type GetPresenceRequestCapn.

View Source
const GetPresenceResponseCapn_TypeID = 0x862b8d8c39fb26aa

GetPresenceResponseCapn_TypeID is the unique identifier for the type GetPresenceResponseCapn.

View Source
const GetProfileRequestCapn_TypeID = 0xade4a4f4ea93c7c2

GetProfileRequestCapn_TypeID is the unique identifier for the type GetProfileRequestCapn.

View Source
const GetProfileResponseCapn_TypeID = 0xef61725d5fccd6e0

GetProfileResponseCapn_TypeID is the unique identifier for the type GetProfileResponseCapn.

View Source
const GetPublicRoomsRequestCapn_TypeID = 0xb7b6a444f547d023

GetPublicRoomsRequestCapn_TypeID is the unique identifier for the type GetPublicRoomsRequestCapn.

View Source
const GetPublicRoomsResponseCapn_TypeID = 0xf670fb1dce242bce

GetPublicRoomsResponseCapn_TypeID is the unique identifier for the type GetPublicRoomsResponseCapn.

View Source
const GetPushersResponseCapn_TypeID = 0xd9f727ecee5ee43c

GetPushersResponseCapn_TypeID is the unique identifier for the type GetPushersResponseCapn.

View Source
const GetPushrulesActionsByIDRequestCapn_TypeID = 0xa995fd3d9ddd6004

GetPushrulesActionsByIDRequestCapn_TypeID is the unique identifier for the type GetPushrulesActionsByIDRequestCapn.

View Source
const GetPushrulesActionsByIDResponseCapn_TypeID = 0x908f5faf45cee64a

GetPushrulesActionsByIDResponseCapn_TypeID is the unique identifier for the type GetPushrulesActionsByIDResponseCapn.

View Source
const GetPushrulesByIDRequestCapn_TypeID = 0xf265eb9956096e1a

GetPushrulesByIDRequestCapn_TypeID is the unique identifier for the type GetPushrulesByIDRequestCapn.

View Source
const GetPushrulesEnabledByIDRequestCapn_TypeID = 0xe0ded00e8fbdb14e

GetPushrulesEnabledByIDRequestCapn_TypeID is the unique identifier for the type GetPushrulesEnabledByIDRequestCapn.

View Source
const GetPushrulesEnabledByIDResponseCapn_TypeID = 0xf4649c850b964682

GetPushrulesEnabledByIDResponseCapn_TypeID is the unique identifier for the type GetPushrulesEnabledByIDResponseCapn.

View Source
const GetRegisterAvailCapn_TypeID = 0xcf61d6ea9e767aec

GetRegisterAvailCapn_TypeID is the unique identifier for the type GetRegisterAvailCapn.

View Source
const GetRegisterAvailResponseCapn_TypeID = 0xb1b696634fdb6440

GetRegisterAvailResponseCapn_TypeID is the unique identifier for the type GetRegisterAvailResponseCapn.

View Source
const GetRoomEventByIDRequestCapn_TypeID = 0xfb8dbe4d0597d4d2

GetRoomEventByIDRequestCapn_TypeID is the unique identifier for the type GetRoomEventByIDRequestCapn.

View Source
const GetRoomEventContextRequestCapn_TypeID = 0x88862da4a1ad5ec6

GetRoomEventContextRequestCapn_TypeID is the unique identifier for the type GetRoomEventContextRequestCapn.

View Source
const GetRoomInitialSyncRequestCapn_TypeID = 0xdbacb3ecab06ab9c

GetRoomInitialSyncRequestCapn_TypeID is the unique identifier for the type GetRoomInitialSyncRequestCapn.

View Source
const GetRoomJoinedMembersRequestCapn_TypeID = 0xbc4451c596bcc6f4

GetRoomJoinedMembersRequestCapn_TypeID is the unique identifier for the type GetRoomJoinedMembersRequestCapn.

View Source
const GetRoomMembersRequestCapn_TypeID = 0xc49e0ab3045cd4b4

GetRoomMembersRequestCapn_TypeID is the unique identifier for the type GetRoomMembersRequestCapn.

View Source
const GetRoomMessagesRequestCapn_TypeID = 0xf5445595caf11a6b

GetRoomMessagesRequestCapn_TypeID is the unique identifier for the type GetRoomMessagesRequestCapn.

View Source
const GetRoomMessagesResponseCapn_TypeID = 0xde6caf190dd671a4

GetRoomMessagesResponseCapn_TypeID is the unique identifier for the type GetRoomMessagesResponseCapn.

View Source
const GetRoomStateByTypeAndStateKeyRequestCapn_TypeID = 0xe2ddb73031c5cfa8

GetRoomStateByTypeAndStateKeyRequestCapn_TypeID is the unique identifier for the type GetRoomStateByTypeAndStateKeyRequestCapn.

View Source
const GetRoomStateByTypeRequestCapn_TypeID = 0xae02a9fed52b9614

GetRoomStateByTypeRequestCapn_TypeID is the unique identifier for the type GetRoomStateByTypeRequestCapn.

View Source
const GetRoomStateRequestCapn_TypeID = 0xfec0fff1bb69900e

GetRoomStateRequestCapn_TypeID is the unique identifier for the type GetRoomStateRequestCapn.

View Source
const GetRoomsTagsByIDRequestCapn_TypeID = 0xa5f80cf922cc6108

GetRoomsTagsByIDRequestCapn_TypeID is the unique identifier for the type GetRoomsTagsByIDRequestCapn.

View Source
const GetSyncRequestCapn_TypeID = 0xd95d27a9d1615c89

GetSyncRequestCapn_TypeID is the unique identifier for the type GetSyncRequestCapn.

View Source
const GetTurnServerResponseCapn_TypeID = 0x9937e45d6fe307c9

GetTurnServerResponseCapn_TypeID is the unique identifier for the type GetTurnServerResponseCapn.

View Source
const GetUserFilterRequestCapn_TypeID = 0xf442e4831014c326

GetUserFilterRequestCapn_TypeID is the unique identifier for the type GetUserFilterRequestCapn.

View Source
const GetUserPresenceListRequestCapn_TypeID = 0xc6bdc797e7c265c2

GetUserPresenceListRequestCapn_TypeID is the unique identifier for the type GetUserPresenceListRequestCapn.

View Source
const GetUserPresenceRequestCapn_TypeID = 0xbecbbb45b11284db

GetUserPresenceRequestCapn_TypeID is the unique identifier for the type GetUserPresenceRequestCapn.

View Source
const GetUserPresenceResponseCapn_TypeID = 0xb582089c13a1a1be

GetUserPresenceResponseCapn_TypeID is the unique identifier for the type GetUserPresenceResponseCapn.

View Source
const GetUserProfileAvatarURLRequestCapn_TypeID = 0xc88cd0641eca2e2d

GetUserProfileAvatarURLRequestCapn_TypeID is the unique identifier for the type GetUserProfileAvatarURLRequestCapn.

View Source
const GetUserProfileDisplayNameRequestCapn_TypeID = 0xfd6e19082b99c691

GetUserProfileDisplayNameRequestCapn_TypeID is the unique identifier for the type GetUserProfileDisplayNameRequestCapn.

View Source
const GetUserProfileRequestCapn_TypeID = 0xd0cf8d14918db5d7

GetUserProfileRequestCapn_TypeID is the unique identifier for the type GetUserProfileRequestCapn.

View Source
const Invite3pidCapn_TypeID = 0xfb575c1e07d9a223

Invite3pidCapn_TypeID is the unique identifier for the type Invite3pidCapn.

View Source
const InviteCapn_TypeID = 0x8456848ac50636fd

InviteCapn_TypeID is the unique identifier for the type InviteCapn.

View Source
const LegacyRegisterRequestCapn_TypeID = 0xbc488e8c2c6feb49

LegacyRegisterRequestCapn_TypeID is the unique identifier for the type LegacyRegisterRequestCapn.

View Source
const PaginationChunkCapn_TypeID = 0xd316696667594fde

PaginationChunkCapn_TypeID is the unique identifier for the type PaginationChunkCapn.

View Source
const PostAccount3PIDDelRequestCapn_TypeID = 0xe78a51ebcbc478f8

PostAccount3PIDDelRequestCapn_TypeID is the unique identifier for the type PostAccount3PIDDelRequestCapn.

View Source
const PostAccount3PIDEmailRequestCapn_TypeID = 0xffc9d189008a8c80

PostAccount3PIDEmailRequestCapn_TypeID is the unique identifier for the type PostAccount3PIDEmailRequestCapn.

View Source
const PostAccount3PIDEmailResponseCapn_TypeID = 0xf96d2f3fb936fb2e

PostAccount3PIDEmailResponseCapn_TypeID is the unique identifier for the type PostAccount3PIDEmailResponseCapn.

View Source
const PostAccount3PIDMsisdnRequestCapn_TypeID = 0xaaaa4c6433148b94

PostAccount3PIDMsisdnRequestCapn_TypeID is the unique identifier for the type PostAccount3PIDMsisdnRequestCapn.

View Source
const PostAccount3PIDMsisdnResponseCapn_TypeID = 0xc8a9640b58c1a854

PostAccount3PIDMsisdnResponseCapn_TypeID is the unique identifier for the type PostAccount3PIDMsisdnResponseCapn.

View Source
const PostAccount3PIDRequestCapn_TypeID = 0x9cac11bd6cf7b473

PostAccount3PIDRequestCapn_TypeID is the unique identifier for the type PostAccount3PIDRequestCapn.

View Source
const PostAccountDeactivateRequestCapn_TypeID = 0xa21771bc6cc61e96

PostAccountDeactivateRequestCapn_TypeID is the unique identifier for the type PostAccountDeactivateRequestCapn.

View Source
const PostAccountPasswordEmailRequestCapn_TypeID = 0xf09a324b6bda508f

PostAccountPasswordEmailRequestCapn_TypeID is the unique identifier for the type PostAccountPasswordEmailRequestCapn.

View Source
const PostAccountPasswordEmailResponseCapn_TypeID = 0xc7c6444c378939c5

PostAccountPasswordEmailResponseCapn_TypeID is the unique identifier for the type PostAccountPasswordEmailResponseCapn.

View Source
const PostAccountPasswordMsisdResponseCapn_TypeID = 0xb640c6d52e6203d6

PostAccountPasswordMsisdResponseCapn_TypeID is the unique identifier for the type PostAccountPasswordMsisdResponseCapn.

View Source
const PostAccountPasswordMsisdnRequestCapn_TypeID = 0xcd4ca44e7984ba13

PostAccountPasswordMsisdnRequestCapn_TypeID is the unique identifier for the type PostAccountPasswordMsisdnRequestCapn.

View Source
const PostAccountPasswordRequestCapn_TypeID = 0x879fbb16e05a3c03

PostAccountPasswordRequestCapn_TypeID is the unique identifier for the type PostAccountPasswordRequestCapn.

View Source
const PostCreateRoomResponseCapn_TypeID = 0xd1296631ed66a902

PostCreateRoomResponseCapn_TypeID is the unique identifier for the type PostCreateRoomResponseCapn.

View Source
const PostDevicesDelRequestCapn_TypeID = 0xa239fcb8475d850e

PostDevicesDelRequestCapn_TypeID is the unique identifier for the type PostDevicesDelRequestCapn.

View Source
const PostLoginResponseCapn_TypeID = 0xc853484cccd8383e

PostLoginResponseCapn_TypeID is the unique identifier for the type PostLoginResponseCapn.

View Source
const PostMediaUploadRequestCapn_TypeID = 0x90b1759d5878cb69

PostMediaUploadRequestCapn_TypeID is the unique identifier for the type PostMediaUploadRequestCapn.

View Source
const PostMediaUploadResponseCapn_TypeID = 0xeee2b14b3603048e

PostMediaUploadResponseCapn_TypeID is the unique identifier for the type PostMediaUploadResponseCapn.

View Source
const PostPresenceListRequestCapn_TypeID = 0x953b13c141bb03e9

PostPresenceListRequestCapn_TypeID is the unique identifier for the type PostPresenceListRequestCapn.

View Source
const PostPublicRoomsRequestCapn_TypeID = 0x9e62b64dff4f727a

PostPublicRoomsRequestCapn_TypeID is the unique identifier for the type PostPublicRoomsRequestCapn.

View Source
const PostPublicRoomsResponseCapn_TypeID = 0x890a46554859e99b

PostPublicRoomsResponseCapn_TypeID is the unique identifier for the type PostPublicRoomsResponseCapn.

View Source
const PostRegisterEmailRequestCapn_TypeID = 0xc092d29cb93f86dc

PostRegisterEmailRequestCapn_TypeID is the unique identifier for the type PostRegisterEmailRequestCapn.

View Source
const PostRegisterEmailResponseCapn_TypeID = 0xa5508c34544c0f89

PostRegisterEmailResponseCapn_TypeID is the unique identifier for the type PostRegisterEmailResponseCapn.

View Source
const PostRegisterMsisdResponseCapn_TypeID = 0x9b22e2590a4c4fb9

PostRegisterMsisdResponseCapn_TypeID is the unique identifier for the type PostRegisterMsisdResponseCapn.

View Source
const PostRegisterMsisdnRequestCapn_TypeID = 0xdaab6ace151da989

PostRegisterMsisdnRequestCapn_TypeID is the unique identifier for the type PostRegisterMsisdnRequestCapn.

View Source
const PostRegisterRequestCapn_TypeID = 0xf8d8657dfb7a1b21

PostRegisterRequestCapn_TypeID is the unique identifier for the type PostRegisterRequestCapn.

View Source
const PostRoomReadMarkersRequestCapn_TypeID = 0xea3bee07164ac635

PostRoomReadMarkersRequestCapn_TypeID is the unique identifier for the type PostRoomReadMarkersRequestCapn.

View Source
const PostRoomReceiptRequestCapn_TypeID = 0xcfd91ead8f7b5072

PostRoomReceiptRequestCapn_TypeID is the unique identifier for the type PostRoomReceiptRequestCapn.

View Source
const PostRoomsBanRequestCapn_TypeID = 0xf9ba5593e92ae524

PostRoomsBanRequestCapn_TypeID is the unique identifier for the type PostRoomsBanRequestCapn.

View Source
const PostRoomsForgetRequestCapn_TypeID = 0xe8b6e1c2d03dc54d

PostRoomsForgetRequestCapn_TypeID is the unique identifier for the type PostRoomsForgetRequestCapn.

View Source
const PostRoomsInviteRequestCapn_TypeID = 0x87637c467db85004

PostRoomsInviteRequestCapn_TypeID is the unique identifier for the type PostRoomsInviteRequestCapn.

View Source
const PostRoomsJoinByAliasResponseCapn_TypeID = 0xbcc64224ccd365c7

PostRoomsJoinByAliasResponseCapn_TypeID is the unique identifier for the type PostRoomsJoinByAliasResponseCapn.

View Source
const PostRoomsJoinResponseCapn_TypeID = 0xd417786d9842a89f

PostRoomsJoinResponseCapn_TypeID is the unique identifier for the type PostRoomsJoinResponseCapn.

View Source
const PostRoomsKickRequestCapn_TypeID = 0xed01775f09089582

PostRoomsKickRequestCapn_TypeID is the unique identifier for the type PostRoomsKickRequestCapn.

View Source
const PostRoomsLeaveRequestCapn_TypeID = 0x934f648e0d74fd74

PostRoomsLeaveRequestCapn_TypeID is the unique identifier for the type PostRoomsLeaveRequestCapn.

View Source
const PostRoomsUnbanRequestCapn_TypeID = 0xcd5e8de4cbfaa8aa

PostRoomsUnbanRequestCapn_TypeID is the unique identifier for the type PostRoomsUnbanRequestCapn.

View Source
const PostSetPushersRequestCapn_TypeID = 0xa14867b80f309cef

PostSetPushersRequestCapn_TypeID is the unique identifier for the type PostSetPushersRequestCapn.

View Source
const PostUserFilterResponseCapn_TypeID = 0xdd42575c766d4d06

PostUserFilterResponseCapn_TypeID is the unique identifier for the type PostUserFilterResponseCapn.

View Source
const PostUserPresenceListRequestCapn_TypeID = 0xa6f3c02597d54668

PostUserPresenceListRequestCapn_TypeID is the unique identifier for the type PostUserPresenceListRequestCapn.

View Source
const PostUserSearchRequestCapn_TypeID = 0x96745109c202f5a6

PostUserSearchRequestCapn_TypeID is the unique identifier for the type PostUserSearchRequestCapn.

View Source
const PostUserSearchResponseCapn_TypeID = 0x9e37487e38669298

PostUserSearchResponseCapn_TypeID is the unique identifier for the type PostUserSearchResponseCapn.

View Source
const PresenceCapn_TypeID = 0xdd6124c301545f8a

PresenceCapn_TypeID is the unique identifier for the type PresenceCapn.

View Source
const PresenceJSONCapn_TypeID = 0x8e0938e8642b7812

PresenceJSONCapn_TypeID is the unique identifier for the type PresenceJSONCapn.

View Source
const PresenceListJSONCapn_TypeID = 0xead5939a85a0b5aa

PresenceListJSONCapn_TypeID is the unique identifier for the type PresenceListJSONCapn.

View Source
const PublicRoomsChunkCapn_TypeID = 0xb61747f4954fbc62

PublicRoomsChunkCapn_TypeID is the unique identifier for the type PublicRoomsChunkCapn.

View Source
const PushConditionCapn_TypeID = 0xa880dd00c26faed7

PushConditionCapn_TypeID is the unique identifier for the type PushConditionCapn.

View Source
const PusherCapn_TypeID = 0xcc42e08dd7871e92

PusherCapn_TypeID is the unique identifier for the type PusherCapn.

View Source
const PusherDataCapn_TypeID = 0x91d24b11533004f1

PusherDataCapn_TypeID is the unique identifier for the type PusherDataCapn.

View Source
const PutAvatarURLRequestCapn_TypeID = 0x81d3b998d0131f72

PutAvatarURLRequestCapn_TypeID is the unique identifier for the type PutAvatarURLRequestCapn.

View Source
const PutDeviceRequestCapn_TypeID = 0xf8ed5b72a4f56af4

PutDeviceRequestCapn_TypeID is the unique identifier for the type PutDeviceRequestCapn.

View Source
const PutDevicesByIDRequestCapn_TypeID = 0xed35f846661c4ab1

PutDevicesByIDRequestCapn_TypeID is the unique identifier for the type PutDevicesByIDRequestCapn.

View Source
const PutDirectoryRoomAliasRequestCapn_TypeID = 0x93d6020cb05ef19d

PutDirectoryRoomAliasRequestCapn_TypeID is the unique identifier for the type PutDirectoryRoomAliasRequestCapn.

View Source
const PutDirectoryRoomRequestCapn_TypeID = 0xce92df9750c55155

PutDirectoryRoomRequestCapn_TypeID is the unique identifier for the type PutDirectoryRoomRequestCapn.

View Source
const PutDisplayNameRequestCapn_TypeID = 0xc2c09e43569e01b4

PutDisplayNameRequestCapn_TypeID is the unique identifier for the type PutDisplayNameRequestCapn.

View Source
const PutPresenceRequestCapn_TypeID = 0x83607ef79f6ff6c1

PutPresenceRequestCapn_TypeID is the unique identifier for the type PutPresenceRequestCapn.

View Source
const PutPushrulesActionsByIDRequestCapn_TypeID = 0xd7072ed77da85079

PutPushrulesActionsByIDRequestCapn_TypeID is the unique identifier for the type PutPushrulesActionsByIDRequestCapn.

View Source
const PutPushrulesByIDRequestCapn_TypeID = 0x9dc2714f425b716f

PutPushrulesByIDRequestCapn_TypeID is the unique identifier for the type PutPushrulesByIDRequestCapn.

View Source
const PutPushrulesEnabledByIDRequestCapn_TypeID = 0x9d30e8d535c6968f

PutPushrulesEnabledByIDRequestCapn_TypeID is the unique identifier for the type PutPushrulesEnabledByIDRequestCapn.

View Source
const PutRedactEventRequestCapn_TypeID = 0x932e5c0a6f21237e

PutRedactEventRequestCapn_TypeID is the unique identifier for the type PutRedactEventRequestCapn.

View Source
const PutRedactEventResponseCapn_TypeID = 0xbb6484418a95c835

PutRedactEventResponseCapn_TypeID is the unique identifier for the type PutRedactEventResponseCapn.

View Source
const PutRedactWithTxnIDEventRequestCapn_TypeID = 0x8c953b47310a1cd2

PutRedactWithTxnIDEventRequestCapn_TypeID is the unique identifier for the type PutRedactWithTxnIDEventRequestCapn.

View Source
const PutRoomAccountDataRequestCapn_TypeID = 0xb6c107e5e2b2c313

PutRoomAccountDataRequestCapn_TypeID is the unique identifier for the type PutRoomAccountDataRequestCapn.

View Source
const PutRoomStateByTypeAndStateKeyCapn_TypeID = 0xd8a50d37465756ba

PutRoomStateByTypeAndStateKeyCapn_TypeID is the unique identifier for the type PutRoomStateByTypeAndStateKeyCapn.

View Source
const PutRoomStateByTypeCapn_TypeID = 0xdd77bae6bf7da064

PutRoomStateByTypeCapn_TypeID is the unique identifier for the type PutRoomStateByTypeCapn.

View Source
const PutRoomStateByTypeResponseCapn_TypeID = 0xd698ad3cbbe793bf

PutRoomStateByTypeResponseCapn_TypeID is the unique identifier for the type PutRoomStateByTypeResponseCapn.

View Source
const PutRoomStateByTypeWithTxnIDCapn_TypeID = 0xb36573fb1405d102

PutRoomStateByTypeWithTxnIDCapn_TypeID is the unique identifier for the type PutRoomStateByTypeWithTxnIDCapn.

View Source
const PutRoomStateByTypeWithTxnIDResponseCapn_TypeID = 0xc6d061bd109054f6

PutRoomStateByTypeWithTxnIDResponseCapn_TypeID is the unique identifier for the type PutRoomStateByTypeWithTxnIDResponseCapn.

View Source
const PutRoomStateResponseCapn_TypeID = 0xfdc9b13568f8b176

PutRoomStateResponseCapn_TypeID is the unique identifier for the type PutRoomStateResponseCapn.

View Source
const PutRoomUserTypingRequestCapn_TypeID = 0x9a93ff9b5b722a9b

PutRoomUserTypingRequestCapn_TypeID is the unique identifier for the type PutRoomUserTypingRequestCapn.

View Source
const PutRoomsTagsByIDRequestCapn_TypeID = 0xfa0a3636d28f9d54

PutRoomsTagsByIDRequestCapn_TypeID is the unique identifier for the type PutRoomsTagsByIDRequestCapn.

View Source
const PutUserAccountDataRequestCapn_TypeID = 0x9a549238d044f5ea

PutUserAccountDataRequestCapn_TypeID is the unique identifier for the type PutUserAccountDataRequestCapn.

View Source
const PutUserPresenceRequestCapn_TypeID = 0xea85a408c105eb35

PutUserPresenceRequestCapn_TypeID is the unique identifier for the type PutUserPresenceRequestCapn.

View Source
const PutUserProfileAvatarURLRequestCapn_TypeID = 0xb43eb716e2a47a96

PutUserProfileAvatarURLRequestCapn_TypeID is the unique identifier for the type PutUserProfileAvatarURLRequestCapn.

View Source
const PutUserProfileDisplayNameRequestCapn_TypeID = 0xc216de4a31403538

PutUserProfileDisplayNameRequestCapn_TypeID is the unique identifier for the type PutUserProfileDisplayNameRequestCapn.

View Source
const (
	RCSFriendshipTypeBot = "bot"
)
View Source
const RegisterResponseCapn_TypeID = 0xc235bc5c20ec749c

RegisterResponseCapn_TypeID is the unique identifier for the type RegisterResponseCapn.

View Source
const RoomEventCapn_TypeID = 0xac8778e2250d9d0a

RoomEventCapn_TypeID is the unique identifier for the type RoomEventCapn.

View Source
const RoomEventFilterCapn_TypeID = 0xb6bafdf57d7bf0ba

RoomEventFilterCapn_TypeID is the unique identifier for the type RoomEventFilterCapn.

View Source
const SignedCapn_TypeID = 0xdfdd3852b87451ee

SignedCapn_TypeID is the unique identifier for the type SignedCapn.

View Source
const TagCapn_TypeID = 0x97c7370c0d585a33

TagCapn_TypeID is the unique identifier for the type TagCapn.

View Source
const ThirdPartyIdentifierCapn_TypeID = 0xe655e4b76632c41e

ThirdPartyIdentifierCapn_TypeID is the unique identifier for the type ThirdPartyIdentifierCapn.

View Source
const ThreePidCredentialsCapn_TypeID = 0x899eb1d8ee3e229a

ThreePidCredentialsCapn_TypeID is the unique identifier for the type ThreePidCredentialsCapn.

View Source
const TimelineCapn_TypeID = 0xb97e0a59e5e53b7a

TimelineCapn_TypeID is the unique identifier for the type TimelineCapn.

View Source
const ToDeviceCapn_TypeID = 0xca2680723f430e09

ToDeviceCapn_TypeID is the unique identifier for the type ToDeviceCapn.

View Source
const UnreadNotificationsCapn_TypeID = 0xed463b2d9fbf779e

UnreadNotificationsCapn_TypeID is the unique identifier for the type UnreadNotificationsCapn.

View Source
const UnsignedDataCapn_TypeID = 0xca2c12f486663543

UnsignedDataCapn_TypeID is the unique identifier for the type UnsignedDataCapn.

View Source
const UnsignedDeviceInfoCapn_TypeID = 0xfe0f2919237fc7f5

UnsignedDeviceInfoCapn_TypeID is the unique identifier for the type UnsignedDeviceInfoCapn.

View Source
const UserCapn_TypeID = 0xde55d01bc299d3b9

UserCapn_TypeID is the unique identifier for the type UserCapn.

View Source
const UserIdentifierCapn_TypeID = 0xa7908122e94773cc

UserIdentifierCapn_TypeID is the unique identifier for the type UserIdentifierCapn.

Variables

This section is empty.

Functions

func GetRemoteIP

func GetRemoteIP(r *http.Request) string

Types

type AccountData

type AccountData struct {
	Events []Event `json:"events"`
}

type AccountDataCapn

type AccountDataCapn struct{ capnp.Struct }

func NewAccountDataCapn

func NewAccountDataCapn(s *capnp.Segment) (AccountDataCapn, error)

func NewRootAccountDataCapn

func NewRootAccountDataCapn(s *capnp.Segment) (AccountDataCapn, error)

func ReadRootAccountDataCapn

func ReadRootAccountDataCapn(msg *capnp.Message) (AccountDataCapn, error)

func (AccountDataCapn) Events

func (s AccountDataCapn) Events() (EventCapn_List, error)

func (AccountDataCapn) HasEvents

func (s AccountDataCapn) HasEvents() bool

func (AccountDataCapn) NewEvents

func (s AccountDataCapn) NewEvents(n int32) (EventCapn_List, error)

NewEvents sets the events field to a newly allocated EventCapn_List, preferring placement in s's segment.

func (AccountDataCapn) SetEvents

func (s AccountDataCapn) SetEvents(v EventCapn_List) error

func (AccountDataCapn) String

func (s AccountDataCapn) String() string

type AccountDataCapn_List

type AccountDataCapn_List struct{ capnp.List }

AccountDataCapn_List is a list of AccountDataCapn.

func NewAccountDataCapn_List

func NewAccountDataCapn_List(s *capnp.Segment, sz int32) (AccountDataCapn_List, error)

NewAccountDataCapn creates a new list of AccountDataCapn.

func (AccountDataCapn_List) At

func (AccountDataCapn_List) Set

func (AccountDataCapn_List) String

func (s AccountDataCapn_List) String() string

type AccountDataCapn_Promise

type AccountDataCapn_Promise struct{ *capnp.Pipeline }

AccountDataCapn_Promise is a wrapper for a AccountDataCapn promised by a client call.

func (AccountDataCapn_Promise) Struct

type AuthData

type AuthData struct {
	Type    string `json:"type"`
	Session string `json:"session"`
}

type AuthDataCapn

type AuthDataCapn struct{ capnp.Struct }

func NewAuthDataCapn

func NewAuthDataCapn(s *capnp.Segment) (AuthDataCapn, error)

func NewRootAuthDataCapn

func NewRootAuthDataCapn(s *capnp.Segment) (AuthDataCapn, error)

func ReadRootAuthDataCapn

func ReadRootAuthDataCapn(msg *capnp.Message) (AuthDataCapn, error)

func (AuthDataCapn) HasSession

func (s AuthDataCapn) HasSession() bool

func (AuthDataCapn) HasType

func (s AuthDataCapn) HasType() bool

func (AuthDataCapn) Session

func (s AuthDataCapn) Session() (string, error)

func (AuthDataCapn) SessionBytes

func (s AuthDataCapn) SessionBytes() ([]byte, error)

func (AuthDataCapn) SetSession

func (s AuthDataCapn) SetSession(v string) error

func (AuthDataCapn) SetType

func (s AuthDataCapn) SetType(v string) error

func (AuthDataCapn) String

func (s AuthDataCapn) String() string

func (AuthDataCapn) Type

func (s AuthDataCapn) Type() (string, error)

func (AuthDataCapn) TypeBytes

func (s AuthDataCapn) TypeBytes() ([]byte, error)

type AuthDataCapn_List

type AuthDataCapn_List struct{ capnp.List }

AuthDataCapn_List is a list of AuthDataCapn.

func NewAuthDataCapn_List

func NewAuthDataCapn_List(s *capnp.Segment, sz int32) (AuthDataCapn_List, error)

NewAuthDataCapn creates a new list of AuthDataCapn.

func (AuthDataCapn_List) At

func (AuthDataCapn_List) Set

func (AuthDataCapn_List) String

func (s AuthDataCapn_List) String() string

type AuthDataCapn_Promise

type AuthDataCapn_Promise struct{ *capnp.Pipeline }

AuthDataCapn_Promise is a wrapper for a AuthDataCapn promised by a client call.

func (AuthDataCapn_Promise) Struct

func (p AuthDataCapn_Promise) Struct() (AuthDataCapn, error)

type AuthDict

type AuthDict struct {
	Type     string `json:"type"`
	Session  string `json:"session"`
	Mac      []byte `json:"mac"`
	Response string `json:"response"`
}

POST /_matrix/client/r0/register request

type AuthDictCapn

type AuthDictCapn struct{ capnp.Struct }

func NewAuthDictCapn

func NewAuthDictCapn(s *capnp.Segment) (AuthDictCapn, error)

func NewRootAuthDictCapn

func NewRootAuthDictCapn(s *capnp.Segment) (AuthDictCapn, error)

func ReadRootAuthDictCapn

func ReadRootAuthDictCapn(msg *capnp.Message) (AuthDictCapn, error)

func (AuthDictCapn) HasMac

func (s AuthDictCapn) HasMac() bool

func (AuthDictCapn) HasResponse

func (s AuthDictCapn) HasResponse() bool

func (AuthDictCapn) HasSession

func (s AuthDictCapn) HasSession() bool

func (AuthDictCapn) HasType

func (s AuthDictCapn) HasType() bool

func (AuthDictCapn) Mac

func (s AuthDictCapn) Mac() ([]byte, error)

func (AuthDictCapn) Response

func (s AuthDictCapn) Response() (string, error)

func (AuthDictCapn) ResponseBytes

func (s AuthDictCapn) ResponseBytes() ([]byte, error)

func (AuthDictCapn) Session

func (s AuthDictCapn) Session() (string, error)

func (AuthDictCapn) SessionBytes

func (s AuthDictCapn) SessionBytes() ([]byte, error)

func (AuthDictCapn) SetMac

func (s AuthDictCapn) SetMac(v []byte) error

func (AuthDictCapn) SetResponse

func (s AuthDictCapn) SetResponse(v string) error

func (AuthDictCapn) SetSession

func (s AuthDictCapn) SetSession(v string) error

func (AuthDictCapn) SetType

func (s AuthDictCapn) SetType(v string) error

func (AuthDictCapn) String

func (s AuthDictCapn) String() string

func (AuthDictCapn) Type

func (s AuthDictCapn) Type() (string, error)

func (AuthDictCapn) TypeBytes

func (s AuthDictCapn) TypeBytes() ([]byte, error)

type AuthDictCapn_List

type AuthDictCapn_List struct{ capnp.List }

AuthDictCapn_List is a list of AuthDictCapn.

func NewAuthDictCapn_List

func NewAuthDictCapn_List(s *capnp.Segment, sz int32) (AuthDictCapn_List, error)

NewAuthDictCapn creates a new list of AuthDictCapn.

func (AuthDictCapn_List) At

func (AuthDictCapn_List) Set

func (AuthDictCapn_List) String

func (s AuthDictCapn_List) String() string

type AuthDictCapn_Promise

type AuthDictCapn_Promise struct{ *capnp.Pipeline }

AuthDictCapn_Promise is a wrapper for a AuthDictCapn promised by a client call.

func (AuthDictCapn_Promise) Struct

func (p AuthDictCapn_Promise) Struct() (AuthDictCapn, error)

type AuthFlow

type AuthFlow struct {
	Stages []string `json:"stages"`
}

Flow represents one possible way that the client can authenticate a request. https://matrix.org/docs/spec/client_server/r0.3.0.html#user-interactive-authentication-api

type AuthFlowCapn

type AuthFlowCapn struct{ capnp.Struct }

func NewAuthFlowCapn

func NewAuthFlowCapn(s *capnp.Segment) (AuthFlowCapn, error)

func NewRootAuthFlowCapn

func NewRootAuthFlowCapn(s *capnp.Segment) (AuthFlowCapn, error)

func ReadRootAuthFlowCapn

func ReadRootAuthFlowCapn(msg *capnp.Message) (AuthFlowCapn, error)

func (AuthFlowCapn) HasStages

func (s AuthFlowCapn) HasStages() bool

func (AuthFlowCapn) NewStages

func (s AuthFlowCapn) NewStages(n int32) (capnp.TextList, error)

NewStages sets the stages field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (AuthFlowCapn) SetStages

func (s AuthFlowCapn) SetStages(v capnp.TextList) error

func (AuthFlowCapn) Stages

func (s AuthFlowCapn) Stages() (capnp.TextList, error)

func (AuthFlowCapn) String

func (s AuthFlowCapn) String() string

type AuthFlowCapn_List

type AuthFlowCapn_List struct{ capnp.List }

AuthFlowCapn_List is a list of AuthFlowCapn.

func NewAuthFlowCapn_List

func NewAuthFlowCapn_List(s *capnp.Segment, sz int32) (AuthFlowCapn_List, error)

NewAuthFlowCapn creates a new list of AuthFlowCapn.

func (AuthFlowCapn_List) At

func (AuthFlowCapn_List) Set

func (AuthFlowCapn_List) String

func (s AuthFlowCapn_List) String() string

type AuthFlowCapn_Promise

type AuthFlowCapn_Promise struct{ *capnp.Pipeline }

AuthFlowCapn_Promise is a wrapper for a AuthFlowCapn promised by a client call.

func (AuthFlowCapn_Promise) Struct

func (p AuthFlowCapn_Promise) Struct() (AuthFlowCapn, error)

type ConnectionInfo

type ConnectionInfo struct {
	Ip        string `json:"ip"`
	LastSeen  int    `json:"last_seen"`
	UserAgent string `json:"user_agent"`
}

type DelDeviceAuthResponse

type DelDeviceAuthResponse struct {
	Flows   []Flow                 `json:"flows"`
	Params  map[string]interface{} `json:"params"`
	Session string                 `json:"session"`
}

func (*DelDeviceAuthResponse) Decode

func (res *DelDeviceAuthResponse) Decode(input []byte) error

func (*DelDeviceAuthResponse) Encode

func (res *DelDeviceAuthResponse) Encode() ([]byte, error)

type DelDeviceRequest

type DelDeviceRequest struct {
	DeviceID string         `json:"device_id"`
	Auth     DeviceAuthDict `json:"auth"`
}

DELETE /_matrix/client/r0/devices/{deviceId}

func (*DelDeviceRequest) Decode

func (externalReq *DelDeviceRequest) Decode(input []byte) error

func (*DelDeviceRequest) Encode

func (externalReq *DelDeviceRequest) Encode() ([]byte, error)

type DelDeviceRequestCapn

type DelDeviceRequestCapn struct{ capnp.Struct }

func NewDelDeviceRequestCapn

func NewDelDeviceRequestCapn(s *capnp.Segment) (DelDeviceRequestCapn, error)

func NewRootDelDeviceRequestCapn

func NewRootDelDeviceRequestCapn(s *capnp.Segment) (DelDeviceRequestCapn, error)

func ReadRootDelDeviceRequestCapn

func ReadRootDelDeviceRequestCapn(msg *capnp.Message) (DelDeviceRequestCapn, error)

func (DelDeviceRequestCapn) Auth

func (DelDeviceRequestCapn) DeviceID

func (s DelDeviceRequestCapn) DeviceID() (string, error)

func (DelDeviceRequestCapn) DeviceIDBytes

func (s DelDeviceRequestCapn) DeviceIDBytes() ([]byte, error)

func (DelDeviceRequestCapn) HasAuth

func (s DelDeviceRequestCapn) HasAuth() bool

func (DelDeviceRequestCapn) HasDeviceID

func (s DelDeviceRequestCapn) HasDeviceID() bool

func (DelDeviceRequestCapn) NewAuth

NewAuth sets the auth field to a newly allocated DeviceAuthDictCapn struct, preferring placement in s's segment.

func (DelDeviceRequestCapn) SetAuth

func (DelDeviceRequestCapn) SetDeviceID

func (s DelDeviceRequestCapn) SetDeviceID(v string) error

func (DelDeviceRequestCapn) String

func (s DelDeviceRequestCapn) String() string

type DelDeviceRequestCapn_List

type DelDeviceRequestCapn_List struct{ capnp.List }

DelDeviceRequestCapn_List is a list of DelDeviceRequestCapn.

func NewDelDeviceRequestCapn_List

func NewDelDeviceRequestCapn_List(s *capnp.Segment, sz int32) (DelDeviceRequestCapn_List, error)

NewDelDeviceRequestCapn creates a new list of DelDeviceRequestCapn.

func (DelDeviceRequestCapn_List) At

func (DelDeviceRequestCapn_List) Set

func (DelDeviceRequestCapn_List) String

func (s DelDeviceRequestCapn_List) String() string

type DelDeviceRequestCapn_Promise

type DelDeviceRequestCapn_Promise struct{ *capnp.Pipeline }

DelDeviceRequestCapn_Promise is a wrapper for a DelDeviceRequestCapn promised by a client call.

func (DelDeviceRequestCapn_Promise) Auth

func (DelDeviceRequestCapn_Promise) Struct

type DelDevicesByIDRequest

type DelDevicesByIDRequest struct {
	DeviceId string   `json:"deviceId"`
	Auth     AuthData `json:"auth"`
}

DELETE /_matrix/client/r0/devices/{deviceId}

type DelDevicesByIDRequestCapn

type DelDevicesByIDRequestCapn struct{ capnp.Struct }

func NewDelDevicesByIDRequestCapn

func NewDelDevicesByIDRequestCapn(s *capnp.Segment) (DelDevicesByIDRequestCapn, error)

func NewRootDelDevicesByIDRequestCapn

func NewRootDelDevicesByIDRequestCapn(s *capnp.Segment) (DelDevicesByIDRequestCapn, error)

func ReadRootDelDevicesByIDRequestCapn

func ReadRootDelDevicesByIDRequestCapn(msg *capnp.Message) (DelDevicesByIDRequestCapn, error)

func (DelDevicesByIDRequestCapn) Auth

func (DelDevicesByIDRequestCapn) DeviceId

func (s DelDevicesByIDRequestCapn) DeviceId() (string, error)

func (DelDevicesByIDRequestCapn) DeviceIdBytes

func (s DelDevicesByIDRequestCapn) DeviceIdBytes() ([]byte, error)

func (DelDevicesByIDRequestCapn) HasAuth

func (s DelDevicesByIDRequestCapn) HasAuth() bool

func (DelDevicesByIDRequestCapn) HasDeviceId

func (s DelDevicesByIDRequestCapn) HasDeviceId() bool

func (DelDevicesByIDRequestCapn) NewAuth

NewAuth sets the auth field to a newly allocated AuthDataCapn struct, preferring placement in s's segment.

func (DelDevicesByIDRequestCapn) SetAuth

func (DelDevicesByIDRequestCapn) SetDeviceId

func (s DelDevicesByIDRequestCapn) SetDeviceId(v string) error

func (DelDevicesByIDRequestCapn) String

func (s DelDevicesByIDRequestCapn) String() string

type DelDevicesByIDRequestCapn_List

type DelDevicesByIDRequestCapn_List struct{ capnp.List }

DelDevicesByIDRequestCapn_List is a list of DelDevicesByIDRequestCapn.

func NewDelDevicesByIDRequestCapn_List

func NewDelDevicesByIDRequestCapn_List(s *capnp.Segment, sz int32) (DelDevicesByIDRequestCapn_List, error)

NewDelDevicesByIDRequestCapn creates a new list of DelDevicesByIDRequestCapn.

func (DelDevicesByIDRequestCapn_List) At

func (DelDevicesByIDRequestCapn_List) Set

func (DelDevicesByIDRequestCapn_List) String

type DelDevicesByIDRequestCapn_Promise

type DelDevicesByIDRequestCapn_Promise struct{ *capnp.Pipeline }

DelDevicesByIDRequestCapn_Promise is a wrapper for a DelDevicesByIDRequestCapn promised by a client call.

func (DelDevicesByIDRequestCapn_Promise) Auth

func (DelDevicesByIDRequestCapn_Promise) Struct

type DelDirectoryRoomAliasRequest

type DelDirectoryRoomAliasRequest struct {
	RoomAlias string `json:"roomAlias"`
}

DELETE /_matrix/client/r0/directory/room/{roomAlias}

func (*DelDirectoryRoomAliasRequest) Decode

func (externalReq *DelDirectoryRoomAliasRequest) Decode(input []byte) error

func (*DelDirectoryRoomAliasRequest) Encode

func (externalReq *DelDirectoryRoomAliasRequest) Encode() ([]byte, error)

type DelDirectoryRoomAliasRequestCapn

type DelDirectoryRoomAliasRequestCapn struct{ capnp.Struct }

func NewDelDirectoryRoomAliasRequestCapn

func NewDelDirectoryRoomAliasRequestCapn(s *capnp.Segment) (DelDirectoryRoomAliasRequestCapn, error)

func NewRootDelDirectoryRoomAliasRequestCapn

func NewRootDelDirectoryRoomAliasRequestCapn(s *capnp.Segment) (DelDirectoryRoomAliasRequestCapn, error)

func ReadRootDelDirectoryRoomAliasRequestCapn

func ReadRootDelDirectoryRoomAliasRequestCapn(msg *capnp.Message) (DelDirectoryRoomAliasRequestCapn, error)

func (DelDirectoryRoomAliasRequestCapn) HasRoomAlias

func (s DelDirectoryRoomAliasRequestCapn) HasRoomAlias() bool

func (DelDirectoryRoomAliasRequestCapn) RoomAlias

func (DelDirectoryRoomAliasRequestCapn) RoomAliasBytes

func (s DelDirectoryRoomAliasRequestCapn) RoomAliasBytes() ([]byte, error)

func (DelDirectoryRoomAliasRequestCapn) SetRoomAlias

func (s DelDirectoryRoomAliasRequestCapn) SetRoomAlias(v string) error

func (DelDirectoryRoomAliasRequestCapn) String

type DelDirectoryRoomAliasRequestCapn_List

type DelDirectoryRoomAliasRequestCapn_List struct{ capnp.List }

DelDirectoryRoomAliasRequestCapn_List is a list of DelDirectoryRoomAliasRequestCapn.

func NewDelDirectoryRoomAliasRequestCapn_List

func NewDelDirectoryRoomAliasRequestCapn_List(s *capnp.Segment, sz int32) (DelDirectoryRoomAliasRequestCapn_List, error)

NewDelDirectoryRoomAliasRequestCapn creates a new list of DelDirectoryRoomAliasRequestCapn.

func (DelDirectoryRoomAliasRequestCapn_List) At

func (DelDirectoryRoomAliasRequestCapn_List) Set

func (DelDirectoryRoomAliasRequestCapn_List) String

type DelDirectoryRoomAliasRequestCapn_Promise

type DelDirectoryRoomAliasRequestCapn_Promise struct{ *capnp.Pipeline }

DelDirectoryRoomAliasRequestCapn_Promise is a wrapper for a DelDirectoryRoomAliasRequestCapn promised by a client call.

func (DelDirectoryRoomAliasRequestCapn_Promise) Struct

type DelPushrulesByIDRequest

type DelPushrulesByIDRequest struct {
	Scope  string `json:"scope"`
	Kind   string `json:"kind"`
	RuleID string `json:"ruleId"`
}

DELETE /_matrix/client/r0/pushrules/{scope}/{kind}/{ruleId}

func (*DelPushrulesByIDRequest) Decode

func (externalReq *DelPushrulesByIDRequest) Decode(input []byte) error

func (*DelPushrulesByIDRequest) Encode

func (externalReq *DelPushrulesByIDRequest) Encode() ([]byte, error)

type DelPushrulesByIDRequestCapn

type DelPushrulesByIDRequestCapn struct{ capnp.Struct }

func NewDelPushrulesByIDRequestCapn

func NewDelPushrulesByIDRequestCapn(s *capnp.Segment) (DelPushrulesByIDRequestCapn, error)

func NewRootDelPushrulesByIDRequestCapn

func NewRootDelPushrulesByIDRequestCapn(s *capnp.Segment) (DelPushrulesByIDRequestCapn, error)

func ReadRootDelPushrulesByIDRequestCapn

func ReadRootDelPushrulesByIDRequestCapn(msg *capnp.Message) (DelPushrulesByIDRequestCapn, error)

func (DelPushrulesByIDRequestCapn) HasKind

func (s DelPushrulesByIDRequestCapn) HasKind() bool

func (DelPushrulesByIDRequestCapn) HasRuleID

func (s DelPushrulesByIDRequestCapn) HasRuleID() bool

func (DelPushrulesByIDRequestCapn) HasScope

func (s DelPushrulesByIDRequestCapn) HasScope() bool

func (DelPushrulesByIDRequestCapn) Kind

func (DelPushrulesByIDRequestCapn) KindBytes

func (s DelPushrulesByIDRequestCapn) KindBytes() ([]byte, error)

func (DelPushrulesByIDRequestCapn) RuleID

func (DelPushrulesByIDRequestCapn) RuleIDBytes

func (s DelPushrulesByIDRequestCapn) RuleIDBytes() ([]byte, error)

func (DelPushrulesByIDRequestCapn) Scope

func (DelPushrulesByIDRequestCapn) ScopeBytes

func (s DelPushrulesByIDRequestCapn) ScopeBytes() ([]byte, error)

func (DelPushrulesByIDRequestCapn) SetKind

func (DelPushrulesByIDRequestCapn) SetRuleID

func (s DelPushrulesByIDRequestCapn) SetRuleID(v string) error

func (DelPushrulesByIDRequestCapn) SetScope

func (DelPushrulesByIDRequestCapn) String

type DelPushrulesByIDRequestCapn_List

type DelPushrulesByIDRequestCapn_List struct{ capnp.List }

DelPushrulesByIDRequestCapn_List is a list of DelPushrulesByIDRequestCapn.

func NewDelPushrulesByIDRequestCapn_List

func NewDelPushrulesByIDRequestCapn_List(s *capnp.Segment, sz int32) (DelPushrulesByIDRequestCapn_List, error)

NewDelPushrulesByIDRequestCapn creates a new list of DelPushrulesByIDRequestCapn.

func (DelPushrulesByIDRequestCapn_List) At

func (DelPushrulesByIDRequestCapn_List) Set

func (DelPushrulesByIDRequestCapn_List) String

type DelPushrulesByIDRequestCapn_Promise

type DelPushrulesByIDRequestCapn_Promise struct{ *capnp.Pipeline }

DelPushrulesByIDRequestCapn_Promise is a wrapper for a DelPushrulesByIDRequestCapn promised by a client call.

func (DelPushrulesByIDRequestCapn_Promise) Struct

type DelRoomsTagsByIDRequest

type DelRoomsTagsByIDRequest struct {
	UserId string `json:"userId"`
	RoomId string `json:"roomId"`
	Tag    string `json:"tag"`
}

DELETE /_matrix/client/r0/user/{userId}/rooms/{roomId}/tags/{tag}

func (*DelRoomsTagsByIDRequest) Decode

func (externalReq *DelRoomsTagsByIDRequest) Decode(input []byte) error

func (*DelRoomsTagsByIDRequest) Encode

func (externalReq *DelRoomsTagsByIDRequest) Encode() ([]byte, error)

type DelRoomsTagsByIDRequestCapn

type DelRoomsTagsByIDRequestCapn struct{ capnp.Struct }

func NewDelRoomsTagsByIDRequestCapn

func NewDelRoomsTagsByIDRequestCapn(s *capnp.Segment) (DelRoomsTagsByIDRequestCapn, error)

func NewRootDelRoomsTagsByIDRequestCapn

func NewRootDelRoomsTagsByIDRequestCapn(s *capnp.Segment) (DelRoomsTagsByIDRequestCapn, error)

func ReadRootDelRoomsTagsByIDRequestCapn

func ReadRootDelRoomsTagsByIDRequestCapn(msg *capnp.Message) (DelRoomsTagsByIDRequestCapn, error)

func (DelRoomsTagsByIDRequestCapn) HasRoomId

func (s DelRoomsTagsByIDRequestCapn) HasRoomId() bool

func (DelRoomsTagsByIDRequestCapn) HasTag

func (s DelRoomsTagsByIDRequestCapn) HasTag() bool

func (DelRoomsTagsByIDRequestCapn) HasUserId

func (s DelRoomsTagsByIDRequestCapn) HasUserId() bool

func (DelRoomsTagsByIDRequestCapn) RoomId

func (DelRoomsTagsByIDRequestCapn) RoomIdBytes

func (s DelRoomsTagsByIDRequestCapn) RoomIdBytes() ([]byte, error)

func (DelRoomsTagsByIDRequestCapn) SetRoomId

func (s DelRoomsTagsByIDRequestCapn) SetRoomId(v string) error

func (DelRoomsTagsByIDRequestCapn) SetTag

func (DelRoomsTagsByIDRequestCapn) SetUserId

func (s DelRoomsTagsByIDRequestCapn) SetUserId(v string) error

func (DelRoomsTagsByIDRequestCapn) String

func (DelRoomsTagsByIDRequestCapn) Tag

func (DelRoomsTagsByIDRequestCapn) TagBytes

func (s DelRoomsTagsByIDRequestCapn) TagBytes() ([]byte, error)

func (DelRoomsTagsByIDRequestCapn) UserId

func (DelRoomsTagsByIDRequestCapn) UserIdBytes

func (s DelRoomsTagsByIDRequestCapn) UserIdBytes() ([]byte, error)

type DelRoomsTagsByIDRequestCapn_List

type DelRoomsTagsByIDRequestCapn_List struct{ capnp.List }

DelRoomsTagsByIDRequestCapn_List is a list of DelRoomsTagsByIDRequestCapn.

func NewDelRoomsTagsByIDRequestCapn_List

func NewDelRoomsTagsByIDRequestCapn_List(s *capnp.Segment, sz int32) (DelRoomsTagsByIDRequestCapn_List, error)

NewDelRoomsTagsByIDRequestCapn creates a new list of DelRoomsTagsByIDRequestCapn.

func (DelRoomsTagsByIDRequestCapn_List) At

func (DelRoomsTagsByIDRequestCapn_List) Set

func (DelRoomsTagsByIDRequestCapn_List) String

type DelRoomsTagsByIDRequestCapn_Promise

type DelRoomsTagsByIDRequestCapn_Promise struct{ *capnp.Pipeline }

DelRoomsTagsByIDRequestCapn_Promise is a wrapper for a DelRoomsTagsByIDRequestCapn promised by a client call.

func (DelRoomsTagsByIDRequestCapn_Promise) Struct

type DeleteUserInfoRequest

type DeleteUserInfoRequest struct {
	UserID string `json:"userID"`
}

DELETE /_matrix/client/r0/user_info/{userID}

func (*DeleteUserInfoRequest) Decode

func (externalReq *DeleteUserInfoRequest) Decode(data []byte) error

func (*DeleteUserInfoRequest) Encode

func (externalReq *DeleteUserInfoRequest) Encode() ([]byte, error)

type Device

type Device struct {
	DeviceID    string `json:"device_id"`
	DisplayName string `json:"display_name"`
	LastSeenIP  string `json:"last_seen_ip"`
	LastSeenTs  int    `json:"last_seen_ts"`

	UserID string `json:"user_id,omitempty"` //deprecated
}

response

func (*Device) Decode

func (res *Device) Decode(input []byte) error

func (*Device) Encode

func (res *Device) Encode() ([]byte, error)

type DeviceAuthDict

type DeviceAuthDict struct {
	Type    string `json:"type"`
	Session string `json:"session"`

	Password string `json:"password"` //deprecated
	User     string `json:"user"`     //deprecated
}

type DeviceAuthDictCapn

type DeviceAuthDictCapn struct{ capnp.Struct }

func NewDeviceAuthDictCapn

func NewDeviceAuthDictCapn(s *capnp.Segment) (DeviceAuthDictCapn, error)

func NewRootDeviceAuthDictCapn

func NewRootDeviceAuthDictCapn(s *capnp.Segment) (DeviceAuthDictCapn, error)

func ReadRootDeviceAuthDictCapn

func ReadRootDeviceAuthDictCapn(msg *capnp.Message) (DeviceAuthDictCapn, error)

func (DeviceAuthDictCapn) HasPassword

func (s DeviceAuthDictCapn) HasPassword() bool

func (DeviceAuthDictCapn) HasSession

func (s DeviceAuthDictCapn) HasSession() bool

func (DeviceAuthDictCapn) HasType

func (s DeviceAuthDictCapn) HasType() bool

func (DeviceAuthDictCapn) HasUser

func (s DeviceAuthDictCapn) HasUser() bool

func (DeviceAuthDictCapn) Password

func (s DeviceAuthDictCapn) Password() (string, error)

func (DeviceAuthDictCapn) PasswordBytes

func (s DeviceAuthDictCapn) PasswordBytes() ([]byte, error)

func (DeviceAuthDictCapn) Session

func (s DeviceAuthDictCapn) Session() (string, error)

func (DeviceAuthDictCapn) SessionBytes

func (s DeviceAuthDictCapn) SessionBytes() ([]byte, error)

func (DeviceAuthDictCapn) SetPassword

func (s DeviceAuthDictCapn) SetPassword(v string) error

func (DeviceAuthDictCapn) SetSession

func (s DeviceAuthDictCapn) SetSession(v string) error

func (DeviceAuthDictCapn) SetType

func (s DeviceAuthDictCapn) SetType(v string) error

func (DeviceAuthDictCapn) SetUser

func (s DeviceAuthDictCapn) SetUser(v string) error

func (DeviceAuthDictCapn) String

func (s DeviceAuthDictCapn) String() string

func (DeviceAuthDictCapn) Type

func (s DeviceAuthDictCapn) Type() (string, error)

func (DeviceAuthDictCapn) TypeBytes

func (s DeviceAuthDictCapn) TypeBytes() ([]byte, error)

func (DeviceAuthDictCapn) User

func (s DeviceAuthDictCapn) User() (string, error)

func (DeviceAuthDictCapn) UserBytes

func (s DeviceAuthDictCapn) UserBytes() ([]byte, error)

type DeviceAuthDictCapn_List

type DeviceAuthDictCapn_List struct{ capnp.List }

DeviceAuthDictCapn_List is a list of DeviceAuthDictCapn.

func NewDeviceAuthDictCapn_List

func NewDeviceAuthDictCapn_List(s *capnp.Segment, sz int32) (DeviceAuthDictCapn_List, error)

NewDeviceAuthDictCapn creates a new list of DeviceAuthDictCapn.

func (DeviceAuthDictCapn_List) At

func (DeviceAuthDictCapn_List) Set

func (DeviceAuthDictCapn_List) String

func (s DeviceAuthDictCapn_List) String() string

type DeviceAuthDictCapn_Promise

type DeviceAuthDictCapn_Promise struct{ *capnp.Pipeline }

DeviceAuthDictCapn_Promise is a wrapper for a DeviceAuthDictCapn promised by a client call.

func (DeviceAuthDictCapn_Promise) Struct

type DeviceCapn

type DeviceCapn struct{ capnp.Struct }

func NewDeviceCapn

func NewDeviceCapn(s *capnp.Segment) (DeviceCapn, error)

func NewRootDeviceCapn

func NewRootDeviceCapn(s *capnp.Segment) (DeviceCapn, error)

func ReadRootDeviceCapn

func ReadRootDeviceCapn(msg *capnp.Message) (DeviceCapn, error)

func (DeviceCapn) DeviceID

func (s DeviceCapn) DeviceID() (string, error)

func (DeviceCapn) DeviceIDBytes

func (s DeviceCapn) DeviceIDBytes() ([]byte, error)

func (DeviceCapn) DisplayName

func (s DeviceCapn) DisplayName() (string, error)

func (DeviceCapn) DisplayNameBytes

func (s DeviceCapn) DisplayNameBytes() ([]byte, error)

func (DeviceCapn) HasDeviceID

func (s DeviceCapn) HasDeviceID() bool

func (DeviceCapn) HasDisplayName

func (s DeviceCapn) HasDisplayName() bool

func (DeviceCapn) HasLastSeenIP

func (s DeviceCapn) HasLastSeenIP() bool

func (DeviceCapn) HasUserID

func (s DeviceCapn) HasUserID() bool

func (DeviceCapn) LastSeenIP

func (s DeviceCapn) LastSeenIP() (string, error)

func (DeviceCapn) LastSeenIPBytes

func (s DeviceCapn) LastSeenIPBytes() ([]byte, error)

func (DeviceCapn) LastSeenTs

func (s DeviceCapn) LastSeenTs() int64

func (DeviceCapn) SetDeviceID

func (s DeviceCapn) SetDeviceID(v string) error

func (DeviceCapn) SetDisplayName

func (s DeviceCapn) SetDisplayName(v string) error

func (DeviceCapn) SetLastSeenIP

func (s DeviceCapn) SetLastSeenIP(v string) error

func (DeviceCapn) SetLastSeenTs

func (s DeviceCapn) SetLastSeenTs(v int64)

func (DeviceCapn) SetUserID

func (s DeviceCapn) SetUserID(v string) error

func (DeviceCapn) String

func (s DeviceCapn) String() string

func (DeviceCapn) UserID

func (s DeviceCapn) UserID() (string, error)

func (DeviceCapn) UserIDBytes

func (s DeviceCapn) UserIDBytes() ([]byte, error)

type DeviceCapn_List

type DeviceCapn_List struct{ capnp.List }

DeviceCapn_List is a list of DeviceCapn.

func NewDeviceCapn_List

func NewDeviceCapn_List(s *capnp.Segment, sz int32) (DeviceCapn_List, error)

NewDeviceCapn creates a new list of DeviceCapn.

func (DeviceCapn_List) At

func (s DeviceCapn_List) At(i int) DeviceCapn

func (DeviceCapn_List) Set

func (s DeviceCapn_List) Set(i int, v DeviceCapn) error

func (DeviceCapn_List) String

func (s DeviceCapn_List) String() string

type DeviceCapn_Promise

type DeviceCapn_Promise struct{ *capnp.Pipeline }

DeviceCapn_Promise is a wrapper for a DeviceCapn promised by a client call.

func (DeviceCapn_Promise) Struct

func (p DeviceCapn_Promise) Struct() (DeviceCapn, error)

type DeviceInfo

type DeviceInfo struct {
	Sessions []SessionInfo `json:"sessions"`
}

type DeviceKeys

type DeviceKeys struct {
	UserID     string                       `json:"user_id"`
	DeviceID   string                       `json:"device_id"`
	Algorithms []string                     `json:"algorithms"`
	Keys       map[string]string            `json:"keys"`
	Signatures map[string]map[string]string `json:"signatures"`
	Unsigned   UnsignedDeviceInfo           `json:"unsigned,omitempty"`
}

type DeviceList

type DeviceList struct {
	Devices []Device `json:"devices"`
}

GET /_matrix/client/r0/devices response

func (*DeviceList) Decode

func (res *DeviceList) Decode(input []byte) error

func (*DeviceList) Encode

func (res *DeviceList) Encode() ([]byte, error)

type DeviceListCapn

type DeviceListCapn struct{ capnp.Struct }

func NewDeviceListCapn

func NewDeviceListCapn(s *capnp.Segment) (DeviceListCapn, error)

func NewRootDeviceListCapn

func NewRootDeviceListCapn(s *capnp.Segment) (DeviceListCapn, error)

func ReadRootDeviceListCapn

func ReadRootDeviceListCapn(msg *capnp.Message) (DeviceListCapn, error)

func (DeviceListCapn) Devices

func (s DeviceListCapn) Devices() (DeviceCapn_List, error)

func (DeviceListCapn) HasDevices

func (s DeviceListCapn) HasDevices() bool

func (DeviceListCapn) NewDevices

func (s DeviceListCapn) NewDevices(n int32) (DeviceCapn_List, error)

NewDevices sets the devices field to a newly allocated DeviceCapn_List, preferring placement in s's segment.

func (DeviceListCapn) SetDevices

func (s DeviceListCapn) SetDevices(v DeviceCapn_List) error

func (DeviceListCapn) String

func (s DeviceListCapn) String() string

type DeviceListCapn_List

type DeviceListCapn_List struct{ capnp.List }

DeviceListCapn_List is a list of DeviceListCapn.

func NewDeviceListCapn_List

func NewDeviceListCapn_List(s *capnp.Segment, sz int32) (DeviceListCapn_List, error)

NewDeviceListCapn creates a new list of DeviceListCapn.

func (DeviceListCapn_List) At

func (DeviceListCapn_List) Set

func (DeviceListCapn_List) String

func (s DeviceListCapn_List) String() string

type DeviceListCapn_Promise

type DeviceListCapn_Promise struct{ *capnp.Pipeline }

DeviceListCapn_Promise is a wrapper for a DeviceListCapn promised by a client call.

func (DeviceListCapn_Promise) Struct

type DeviceLists

type DeviceLists struct {
	Changed []string `json:"changed,omitempty"`
	Left    []string `json:"left,omitempty"`
}

type DeviceListsCapn

type DeviceListsCapn struct{ capnp.Struct }

func NewDeviceListsCapn

func NewDeviceListsCapn(s *capnp.Segment) (DeviceListsCapn, error)

func NewRootDeviceListsCapn

func NewRootDeviceListsCapn(s *capnp.Segment) (DeviceListsCapn, error)

func ReadRootDeviceListsCapn

func ReadRootDeviceListsCapn(msg *capnp.Message) (DeviceListsCapn, error)

func (DeviceListsCapn) Changed

func (s DeviceListsCapn) Changed() (capnp.TextList, error)

func (DeviceListsCapn) HasChanged

func (s DeviceListsCapn) HasChanged() bool

func (DeviceListsCapn) HasLeft

func (s DeviceListsCapn) HasLeft() bool

func (DeviceListsCapn) Left

func (s DeviceListsCapn) Left() (capnp.TextList, error)

func (DeviceListsCapn) NewChanged

func (s DeviceListsCapn) NewChanged(n int32) (capnp.TextList, error)

NewChanged sets the changed field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (DeviceListsCapn) NewLeft

func (s DeviceListsCapn) NewLeft(n int32) (capnp.TextList, error)

NewLeft sets the left field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (DeviceListsCapn) SetChanged

func (s DeviceListsCapn) SetChanged(v capnp.TextList) error

func (DeviceListsCapn) SetLeft

func (s DeviceListsCapn) SetLeft(v capnp.TextList) error

func (DeviceListsCapn) String

func (s DeviceListsCapn) String() string

type DeviceListsCapn_List

type DeviceListsCapn_List struct{ capnp.List }

DeviceListsCapn_List is a list of DeviceListsCapn.

func NewDeviceListsCapn_List

func NewDeviceListsCapn_List(s *capnp.Segment, sz int32) (DeviceListsCapn_List, error)

NewDeviceListsCapn creates a new list of DeviceListsCapn.

func (DeviceListsCapn_List) At

func (DeviceListsCapn_List) Set

func (DeviceListsCapn_List) String

func (s DeviceListsCapn_List) String() string

type DeviceListsCapn_Promise

type DeviceListsCapn_Promise struct{ *capnp.Pipeline }

DeviceListsCapn_Promise is a wrapper for a DeviceListsCapn promised by a client call.

func (DeviceListsCapn_Promise) Struct

type DismissRoomRequest

type DismissRoomRequest struct {
	RoomID string `json:"roomID"`
	UserID string `json:"userID,omitempty"`
}

POST /_matrix/client/unstable/{roomID}/dismiss

func (*DismissRoomRequest) Decode

func (externalReq *DismissRoomRequest) Decode(data []byte) error

func (*DismissRoomRequest) Encode

func (externalReq *DismissRoomRequest) Encode() ([]byte, error)

type DismissRoomResponse

type DismissRoomResponse struct {
}

func (*DismissRoomResponse) Decode

func (res *DismissRoomResponse) Decode(input []byte) error

func (*DismissRoomResponse) Encode

func (res *DismissRoomResponse) Encode() ([]byte, error)

type Ephemeral

type Ephemeral struct {
	Events []Event `json:"events"`
}

type EphemeralCapn

type EphemeralCapn struct{ capnp.Struct }

func NewEphemeralCapn

func NewEphemeralCapn(s *capnp.Segment) (EphemeralCapn, error)

func NewRootEphemeralCapn

func NewRootEphemeralCapn(s *capnp.Segment) (EphemeralCapn, error)

func ReadRootEphemeralCapn

func ReadRootEphemeralCapn(msg *capnp.Message) (EphemeralCapn, error)

func (EphemeralCapn) Events

func (s EphemeralCapn) Events() (EventCapn_List, error)

func (EphemeralCapn) HasEvents

func (s EphemeralCapn) HasEvents() bool

func (EphemeralCapn) NewEvents

func (s EphemeralCapn) NewEvents(n int32) (EventCapn_List, error)

NewEvents sets the events field to a newly allocated EventCapn_List, preferring placement in s's segment.

func (EphemeralCapn) SetEvents

func (s EphemeralCapn) SetEvents(v EventCapn_List) error

func (EphemeralCapn) String

func (s EphemeralCapn) String() string

type EphemeralCapn_List

type EphemeralCapn_List struct{ capnp.List }

EphemeralCapn_List is a list of EphemeralCapn.

func NewEphemeralCapn_List

func NewEphemeralCapn_List(s *capnp.Segment, sz int32) (EphemeralCapn_List, error)

NewEphemeralCapn creates a new list of EphemeralCapn.

func (EphemeralCapn_List) At

func (EphemeralCapn_List) Set

func (EphemeralCapn_List) String

func (s EphemeralCapn_List) String() string

type EphemeralCapn_Promise

type EphemeralCapn_Promise struct{ *capnp.Pipeline }

EphemeralCapn_Promise is a wrapper for a EphemeralCapn promised by a client call.

func (EphemeralCapn_Promise) Struct

type Event

type Event struct {
	Content jsonRaw.RawMessage `json:"content,omitempty"`
	Type    string             `json:"type,omitempty"`
	EventID string             `json:"event_id,omitempty"`
	Sender  string             `json:"sender,omitempty"`
}

type EventCapn

type EventCapn struct{ capnp.Struct }

func NewEventCapn

func NewEventCapn(s *capnp.Segment) (EventCapn, error)

func NewRootEventCapn

func NewRootEventCapn(s *capnp.Segment) (EventCapn, error)

func ReadRootEventCapn

func ReadRootEventCapn(msg *capnp.Message) (EventCapn, error)

func (EventCapn) Content

func (s EventCapn) Content() ([]byte, error)

func (EventCapn) HasContent

func (s EventCapn) HasContent() bool

func (EventCapn) HasType

func (s EventCapn) HasType() bool

func (EventCapn) SetContent

func (s EventCapn) SetContent(v []byte) error

func (EventCapn) SetType

func (s EventCapn) SetType(v string) error

func (EventCapn) String

func (s EventCapn) String() string

func (EventCapn) Type

func (s EventCapn) Type() (string, error)

func (EventCapn) TypeBytes

func (s EventCapn) TypeBytes() ([]byte, error)

type EventCapn_List

type EventCapn_List struct{ capnp.List }

EventCapn_List is a list of EventCapn.

func NewEventCapn_List

func NewEventCapn_List(s *capnp.Segment, sz int32) (EventCapn_List, error)

NewEventCapn creates a new list of EventCapn.

func (EventCapn_List) At

func (s EventCapn_List) At(i int) EventCapn

func (EventCapn_List) Set

func (s EventCapn_List) Set(i int, v EventCapn) error

func (EventCapn_List) String

func (s EventCapn_List) String() string

type EventCapn_Promise

type EventCapn_Promise struct{ *capnp.Pipeline }

EventCapn_Promise is a wrapper for a EventCapn promised by a client call.

func (EventCapn_Promise) Struct

func (p EventCapn_Promise) Struct() (EventCapn, error)

type EventContent

type EventContent struct {
	AvatarURL        string       `json:"avatar_url,omitempty"`
	DisplayName      *string      `json:"displayname,omitempty"`
	MemberShip       string       `json:"membership,omitempty"`
	IsDirect         bool         `json:"is_direct,omitempty"`
	ThirdPartyInvite Invite       `json:"third_party_invite,omitempty"`
	Unsigned         UnsignedData `json:"unsigned,omitempty"`
}

type EventFilter

type EventFilter struct {
	Limit      int      `json:"limit,omitempty"`
	NotSenders []string `json:"not_senders,omitempty"`
	NotTypes   []string `json:"not_types,omitempty"`
	Senders    []string `json:"senders,omitempty"`
	Types      []string `json:"types,omitempty"`
}

type EventFilterCapn

type EventFilterCapn struct{ capnp.Struct }

func NewEventFilterCapn

func NewEventFilterCapn(s *capnp.Segment) (EventFilterCapn, error)

func NewRootEventFilterCapn

func NewRootEventFilterCapn(s *capnp.Segment) (EventFilterCapn, error)

func ReadRootEventFilterCapn

func ReadRootEventFilterCapn(msg *capnp.Message) (EventFilterCapn, error)

func (EventFilterCapn) HasNotSenders

func (s EventFilterCapn) HasNotSenders() bool

func (EventFilterCapn) HasNotTypes

func (s EventFilterCapn) HasNotTypes() bool

func (EventFilterCapn) HasSenders

func (s EventFilterCapn) HasSenders() bool

func (EventFilterCapn) HasTypes

func (s EventFilterCapn) HasTypes() bool

func (EventFilterCapn) Limit

func (s EventFilterCapn) Limit() int64

func (EventFilterCapn) NewNotSenders

func (s EventFilterCapn) NewNotSenders(n int32) (capnp.TextList, error)

NewNotSenders sets the notSenders field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (EventFilterCapn) NewNotTypes

func (s EventFilterCapn) NewNotTypes(n int32) (capnp.TextList, error)

NewNotTypes sets the notTypes field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (EventFilterCapn) NewSenders

func (s EventFilterCapn) NewSenders(n int32) (capnp.TextList, error)

NewSenders sets the senders field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (EventFilterCapn) NewTypes

func (s EventFilterCapn) NewTypes(n int32) (capnp.TextList, error)

NewTypes sets the types field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (EventFilterCapn) NotSenders

func (s EventFilterCapn) NotSenders() (capnp.TextList, error)

func (EventFilterCapn) NotTypes

func (s EventFilterCapn) NotTypes() (capnp.TextList, error)

func (EventFilterCapn) Senders

func (s EventFilterCapn) Senders() (capnp.TextList, error)

func (EventFilterCapn) SetLimit

func (s EventFilterCapn) SetLimit(v int64)

func (EventFilterCapn) SetNotSenders

func (s EventFilterCapn) SetNotSenders(v capnp.TextList) error

func (EventFilterCapn) SetNotTypes

func (s EventFilterCapn) SetNotTypes(v capnp.TextList) error

func (EventFilterCapn) SetSenders

func (s EventFilterCapn) SetSenders(v capnp.TextList) error

func (EventFilterCapn) SetTypes

func (s EventFilterCapn) SetTypes(v capnp.TextList) error

func (EventFilterCapn) String

func (s EventFilterCapn) String() string

func (EventFilterCapn) Types

func (s EventFilterCapn) Types() (capnp.TextList, error)

type EventFilterCapn_List

type EventFilterCapn_List struct{ capnp.List }

EventFilterCapn_List is a list of EventFilterCapn.

func NewEventFilterCapn_List

func NewEventFilterCapn_List(s *capnp.Segment, sz int32) (EventFilterCapn_List, error)

NewEventFilterCapn creates a new list of EventFilterCapn.

func (EventFilterCapn_List) At

func (EventFilterCapn_List) Set

func (EventFilterCapn_List) String

func (s EventFilterCapn_List) String() string

type EventFilterCapn_Promise

type EventFilterCapn_Promise struct{ *capnp.Pipeline }

EventFilterCapn_Promise is a wrapper for a EventFilterCapn promised by a client call.

func (EventFilterCapn_Promise) Struct

type FedJoinEvent

type FedJoinEvent struct {
	Sender         string `json:"sender"`
	Origin         string `json:"origin"`
	OriginServerTS int64  `json:"origin_server_ts"`
	Type           string `json:"type"`
	StateKey       string `json:"state_key"`
	Content        struct {
		Membership string `json:"membership"`
	} `json:"content"`
}

type FieldsType

type FieldsType struct {
	Regexp      string `json:"regexp"`
	PlaceHolder string `json:"placeholder`
}

type FilterCapn

type FilterCapn struct{ capnp.Struct }

func NewFilterCapn

func NewFilterCapn(s *capnp.Segment) (FilterCapn, error)

func NewRootFilterCapn

func NewRootFilterCapn(s *capnp.Segment) (FilterCapn, error)

func ReadRootFilterCapn

func ReadRootFilterCapn(msg *capnp.Message) (FilterCapn, error)

func (FilterCapn) HasSearchTerm

func (s FilterCapn) HasSearchTerm() bool

func (FilterCapn) SearchTerm

func (s FilterCapn) SearchTerm() (string, error)

func (FilterCapn) SearchTermBytes

func (s FilterCapn) SearchTermBytes() ([]byte, error)

func (FilterCapn) SetSearchTerm

func (s FilterCapn) SetSearchTerm(v string) error

func (FilterCapn) String

func (s FilterCapn) String() string

type FilterCapn_List

type FilterCapn_List struct{ capnp.List }

FilterCapn_List is a list of FilterCapn.

func NewFilterCapn_List

func NewFilterCapn_List(s *capnp.Segment, sz int32) (FilterCapn_List, error)

NewFilterCapn creates a new list of FilterCapn.

func (FilterCapn_List) At

func (s FilterCapn_List) At(i int) FilterCapn

func (FilterCapn_List) Set

func (s FilterCapn_List) Set(i int, v FilterCapn) error

func (FilterCapn_List) String

func (s FilterCapn_List) String() string

type FilterCapn_Promise

type FilterCapn_Promise struct{ *capnp.Pipeline }

FilterCapn_Promise is a wrapper for a FilterCapn promised by a client call.

func (FilterCapn_Promise) Struct

func (p FilterCapn_Promise) Struct() (FilterCapn, error)

type Flow

type Flow struct {
	Type   string   `json:"type"`
	Stages []string `json:"stages"`
}

type FlowCapn

type FlowCapn struct{ capnp.Struct }

func NewFlowCapn

func NewFlowCapn(s *capnp.Segment) (FlowCapn, error)

func NewRootFlowCapn

func NewRootFlowCapn(s *capnp.Segment) (FlowCapn, error)

func ReadRootFlowCapn

func ReadRootFlowCapn(msg *capnp.Message) (FlowCapn, error)

func (FlowCapn) HasStages

func (s FlowCapn) HasStages() bool

func (FlowCapn) HasType

func (s FlowCapn) HasType() bool

func (FlowCapn) NewStages

func (s FlowCapn) NewStages(n int32) (capnp.TextList, error)

NewStages sets the stages field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (FlowCapn) SetStages

func (s FlowCapn) SetStages(v capnp.TextList) error

func (FlowCapn) SetType

func (s FlowCapn) SetType(v string) error

func (FlowCapn) Stages

func (s FlowCapn) Stages() (capnp.TextList, error)

func (FlowCapn) String

func (s FlowCapn) String() string

func (FlowCapn) Type

func (s FlowCapn) Type() (string, error)

func (FlowCapn) TypeBytes

func (s FlowCapn) TypeBytes() ([]byte, error)

type FlowCapn_List

type FlowCapn_List struct{ capnp.List }

FlowCapn_List is a list of FlowCapn.

func NewFlowCapn_List

func NewFlowCapn_List(s *capnp.Segment, sz int32) (FlowCapn_List, error)

NewFlowCapn creates a new list of FlowCapn.

func (FlowCapn_List) At

func (s FlowCapn_List) At(i int) FlowCapn

func (FlowCapn_List) Set

func (s FlowCapn_List) Set(i int, v FlowCapn) error

func (FlowCapn_List) String

func (s FlowCapn_List) String() string

type FlowCapn_Promise

type FlowCapn_Promise struct{ *capnp.Pipeline }

FlowCapn_Promise is a wrapper for a FlowCapn promised by a client call.

func (FlowCapn_Promise) Struct

func (p FlowCapn_Promise) Struct() (FlowCapn, error)

type Friendship

type Friendship struct {
	FcID   string `json:"fcid"`
	ToFcID string `json:"toFcid"`
	RoomID string `json:"roomId"`
	IsBot  bool   `json:"isBot"`
	Remark string `json:"remark"`
}

type GetAccount3PIDResponse

type GetAccount3PIDResponse struct {
	ThreePIDs ThirdPartyIdentifier `json:"threepids"`
}

GET /_matrix/client/r0/account/3pid

func (*GetAccount3PIDResponse) Decode

func (res *GetAccount3PIDResponse) Decode(input []byte) error

func (*GetAccount3PIDResponse) Encode

func (res *GetAccount3PIDResponse) Encode() ([]byte, error)

type GetAccount3PIDResponseCapn

type GetAccount3PIDResponseCapn struct{ capnp.Struct }

func NewGetAccount3PIDResponseCapn

func NewGetAccount3PIDResponseCapn(s *capnp.Segment) (GetAccount3PIDResponseCapn, error)

func NewRootGetAccount3PIDResponseCapn

func NewRootGetAccount3PIDResponseCapn(s *capnp.Segment) (GetAccount3PIDResponseCapn, error)

func ReadRootGetAccount3PIDResponseCapn

func ReadRootGetAccount3PIDResponseCapn(msg *capnp.Message) (GetAccount3PIDResponseCapn, error)

func (GetAccount3PIDResponseCapn) HasThreePIDs

func (s GetAccount3PIDResponseCapn) HasThreePIDs() bool

func (GetAccount3PIDResponseCapn) NewThreePIDs

NewThreePIDs sets the threePIDs field to a newly allocated ThirdPartyIdentifierCapn struct, preferring placement in s's segment.

func (GetAccount3PIDResponseCapn) SetThreePIDs

func (GetAccount3PIDResponseCapn) String

func (GetAccount3PIDResponseCapn) ThreePIDs

type GetAccount3PIDResponseCapn_List

type GetAccount3PIDResponseCapn_List struct{ capnp.List }

GetAccount3PIDResponseCapn_List is a list of GetAccount3PIDResponseCapn.

func NewGetAccount3PIDResponseCapn_List

func NewGetAccount3PIDResponseCapn_List(s *capnp.Segment, sz int32) (GetAccount3PIDResponseCapn_List, error)

NewGetAccount3PIDResponseCapn creates a new list of GetAccount3PIDResponseCapn.

func (GetAccount3PIDResponseCapn_List) At

func (GetAccount3PIDResponseCapn_List) Set

func (GetAccount3PIDResponseCapn_List) String

type GetAccount3PIDResponseCapn_Promise

type GetAccount3PIDResponseCapn_Promise struct{ *capnp.Pipeline }

GetAccount3PIDResponseCapn_Promise is a wrapper for a GetAccount3PIDResponseCapn promised by a client call.

func (GetAccount3PIDResponseCapn_Promise) Struct

func (GetAccount3PIDResponseCapn_Promise) ThreePIDs

type GetAccountWhoAmI

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

GET /_matrix/client/r0/account/whoami

func (*GetAccountWhoAmI) Decode

func (res *GetAccountWhoAmI) Decode(input []byte) error

func (*GetAccountWhoAmI) Encode

func (res *GetAccountWhoAmI) Encode() ([]byte, error)

type GetAccountWhoAmIResponse

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

GET /_matrix/client/r0/account/whoami

func (*GetAccountWhoAmIResponse) Decode

func (res *GetAccountWhoAmIResponse) Decode(input []byte) error

func (*GetAccountWhoAmIResponse) Encode

func (res *GetAccountWhoAmIResponse) Encode() ([]byte, error)

type GetAccountWhoAmIResponseCapn

type GetAccountWhoAmIResponseCapn struct{ capnp.Struct }

func NewGetAccountWhoAmIResponseCapn

func NewGetAccountWhoAmIResponseCapn(s *capnp.Segment) (GetAccountWhoAmIResponseCapn, error)

func NewRootGetAccountWhoAmIResponseCapn

func NewRootGetAccountWhoAmIResponseCapn(s *capnp.Segment) (GetAccountWhoAmIResponseCapn, error)

func ReadRootGetAccountWhoAmIResponseCapn

func ReadRootGetAccountWhoAmIResponseCapn(msg *capnp.Message) (GetAccountWhoAmIResponseCapn, error)

func (GetAccountWhoAmIResponseCapn) HasUserID

func (s GetAccountWhoAmIResponseCapn) HasUserID() bool

func (GetAccountWhoAmIResponseCapn) SetUserID

func (s GetAccountWhoAmIResponseCapn) SetUserID(v string) error

func (GetAccountWhoAmIResponseCapn) String

func (GetAccountWhoAmIResponseCapn) UserID

func (GetAccountWhoAmIResponseCapn) UserIDBytes

func (s GetAccountWhoAmIResponseCapn) UserIDBytes() ([]byte, error)

type GetAccountWhoAmIResponseCapn_List

type GetAccountWhoAmIResponseCapn_List struct{ capnp.List }

GetAccountWhoAmIResponseCapn_List is a list of GetAccountWhoAmIResponseCapn.

func NewGetAccountWhoAmIResponseCapn_List

func NewGetAccountWhoAmIResponseCapn_List(s *capnp.Segment, sz int32) (GetAccountWhoAmIResponseCapn_List, error)

NewGetAccountWhoAmIResponseCapn creates a new list of GetAccountWhoAmIResponseCapn.

func (GetAccountWhoAmIResponseCapn_List) At

func (GetAccountWhoAmIResponseCapn_List) Set

func (GetAccountWhoAmIResponseCapn_List) String

type GetAccountWhoAmIResponseCapn_Promise

type GetAccountWhoAmIResponseCapn_Promise struct{ *capnp.Pipeline }

GetAccountWhoAmIResponseCapn_Promise is a wrapper for a GetAccountWhoAmIResponseCapn promised by a client call.

func (GetAccountWhoAmIResponseCapn_Promise) Struct

type GetAccountWhoAmIRquestCapn

type GetAccountWhoAmIRquestCapn struct{ capnp.Struct }

func NewGetAccountWhoAmIRquestCapn

func NewGetAccountWhoAmIRquestCapn(s *capnp.Segment) (GetAccountWhoAmIRquestCapn, error)

func NewRootGetAccountWhoAmIRquestCapn

func NewRootGetAccountWhoAmIRquestCapn(s *capnp.Segment) (GetAccountWhoAmIRquestCapn, error)

func ReadRootGetAccountWhoAmIRquestCapn

func ReadRootGetAccountWhoAmIRquestCapn(msg *capnp.Message) (GetAccountWhoAmIRquestCapn, error)

func (GetAccountWhoAmIRquestCapn) HasUserID

func (s GetAccountWhoAmIRquestCapn) HasUserID() bool

func (GetAccountWhoAmIRquestCapn) SetUserID

func (s GetAccountWhoAmIRquestCapn) SetUserID(v string) error

func (GetAccountWhoAmIRquestCapn) String

func (GetAccountWhoAmIRquestCapn) UserID

func (s GetAccountWhoAmIRquestCapn) UserID() (string, error)

func (GetAccountWhoAmIRquestCapn) UserIDBytes

func (s GetAccountWhoAmIRquestCapn) UserIDBytes() ([]byte, error)

type GetAccountWhoAmIRquestCapn_List

type GetAccountWhoAmIRquestCapn_List struct{ capnp.List }

GetAccountWhoAmIRquestCapn_List is a list of GetAccountWhoAmIRquestCapn.

func NewGetAccountWhoAmIRquestCapn_List

func NewGetAccountWhoAmIRquestCapn_List(s *capnp.Segment, sz int32) (GetAccountWhoAmIRquestCapn_List, error)

NewGetAccountWhoAmIRquestCapn creates a new list of GetAccountWhoAmIRquestCapn.

func (GetAccountWhoAmIRquestCapn_List) At

func (GetAccountWhoAmIRquestCapn_List) Set

func (GetAccountWhoAmIRquestCapn_List) String

type GetAccountWhoAmIRquestCapn_Promise

type GetAccountWhoAmIRquestCapn_Promise struct{ *capnp.Pipeline }

GetAccountWhoAmIRquestCapn_Promise is a wrapper for a GetAccountWhoAmIRquestCapn promised by a client call.

func (GetAccountWhoAmIRquestCapn_Promise) Struct

type GetAvatarURLRequest

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

GET /_matrix/client/r0/profile/{userID}/avatar_url

func (*GetAvatarURLRequest) Decode

func (externalReq *GetAvatarURLRequest) Decode(input []byte) error

func (*GetAvatarURLRequest) Encode

func (externalReq *GetAvatarURLRequest) Encode() ([]byte, error)

type GetAvatarURLRequestCapn

type GetAvatarURLRequestCapn struct{ capnp.Struct }

func NewGetAvatarURLRequestCapn

func NewGetAvatarURLRequestCapn(s *capnp.Segment) (GetAvatarURLRequestCapn, error)

func NewRootGetAvatarURLRequestCapn

func NewRootGetAvatarURLRequestCapn(s *capnp.Segment) (GetAvatarURLRequestCapn, error)

func ReadRootGetAvatarURLRequestCapn

func ReadRootGetAvatarURLRequestCapn(msg *capnp.Message) (GetAvatarURLRequestCapn, error)

func (GetAvatarURLRequestCapn) HasUserID

func (s GetAvatarURLRequestCapn) HasUserID() bool

func (GetAvatarURLRequestCapn) SetUserID

func (s GetAvatarURLRequestCapn) SetUserID(v string) error

func (GetAvatarURLRequestCapn) String

func (s GetAvatarURLRequestCapn) String() string

func (GetAvatarURLRequestCapn) UserID

func (s GetAvatarURLRequestCapn) UserID() (string, error)

func (GetAvatarURLRequestCapn) UserIDBytes

func (s GetAvatarURLRequestCapn) UserIDBytes() ([]byte, error)

type GetAvatarURLRequestCapn_List

type GetAvatarURLRequestCapn_List struct{ capnp.List }

GetAvatarURLRequestCapn_List is a list of GetAvatarURLRequestCapn.

func NewGetAvatarURLRequestCapn_List

func NewGetAvatarURLRequestCapn_List(s *capnp.Segment, sz int32) (GetAvatarURLRequestCapn_List, error)

NewGetAvatarURLRequestCapn creates a new list of GetAvatarURLRequestCapn.

func (GetAvatarURLRequestCapn_List) At

func (GetAvatarURLRequestCapn_List) Set

func (GetAvatarURLRequestCapn_List) String

type GetAvatarURLRequestCapn_Promise

type GetAvatarURLRequestCapn_Promise struct{ *capnp.Pipeline }

GetAvatarURLRequestCapn_Promise is a wrapper for a GetAvatarURLRequestCapn promised by a client call.

func (GetAvatarURLRequestCapn_Promise) Struct

type GetAvatarURLResponse

type GetAvatarURLResponse struct {
	AvatarURL string `json:"avatar_url"`
}

func (*GetAvatarURLResponse) Decode

func (res *GetAvatarURLResponse) Decode(input []byte) error

func (*GetAvatarURLResponse) Encode

func (res *GetAvatarURLResponse) Encode() ([]byte, error)

type GetAvatarURLResponseCapn

type GetAvatarURLResponseCapn struct{ capnp.Struct }

func NewGetAvatarURLResponseCapn

func NewGetAvatarURLResponseCapn(s *capnp.Segment) (GetAvatarURLResponseCapn, error)

func NewRootGetAvatarURLResponseCapn

func NewRootGetAvatarURLResponseCapn(s *capnp.Segment) (GetAvatarURLResponseCapn, error)

func ReadRootGetAvatarURLResponseCapn

func ReadRootGetAvatarURLResponseCapn(msg *capnp.Message) (GetAvatarURLResponseCapn, error)

func (GetAvatarURLResponseCapn) AvatarURL

func (s GetAvatarURLResponseCapn) AvatarURL() (string, error)

func (GetAvatarURLResponseCapn) AvatarURLBytes

func (s GetAvatarURLResponseCapn) AvatarURLBytes() ([]byte, error)

func (GetAvatarURLResponseCapn) HasAvatarURL

func (s GetAvatarURLResponseCapn) HasAvatarURL() bool

func (GetAvatarURLResponseCapn) SetAvatarURL

func (s GetAvatarURLResponseCapn) SetAvatarURL(v string) error

func (GetAvatarURLResponseCapn) String

func (s GetAvatarURLResponseCapn) String() string

type GetAvatarURLResponseCapn_List

type GetAvatarURLResponseCapn_List struct{ capnp.List }

GetAvatarURLResponseCapn_List is a list of GetAvatarURLResponseCapn.

func NewGetAvatarURLResponseCapn_List

func NewGetAvatarURLResponseCapn_List(s *capnp.Segment, sz int32) (GetAvatarURLResponseCapn_List, error)

NewGetAvatarURLResponseCapn creates a new list of GetAvatarURLResponseCapn.

func (GetAvatarURLResponseCapn_List) At

func (GetAvatarURLResponseCapn_List) Set

func (GetAvatarURLResponseCapn_List) String

type GetAvatarURLResponseCapn_Promise

type GetAvatarURLResponseCapn_Promise struct{ *capnp.Pipeline }

GetAvatarURLResponseCapn_Promise is a wrapper for a GetAvatarURLResponseCapn promised by a client call.

func (GetAvatarURLResponseCapn_Promise) Struct

type GetCasLoginRedirectRequest

type GetCasLoginRedirectRequest struct {
	RedirectURL string `json:"redirectUrl"`
}

GET /_matrix/client/r0/login/cas/redirect

func (*GetCasLoginRedirectRequest) Decode

func (externalReq *GetCasLoginRedirectRequest) Decode(input []byte) error

func (*GetCasLoginRedirectRequest) Encode

func (externalReq *GetCasLoginRedirectRequest) Encode() ([]byte, error)

type GetCasLoginTickerRequest

type GetCasLoginTickerRequest struct {
	RedirectURL string `json:"redirectUrl"`
	Ticket      string `json:"ticket"`
}

GET /_matrix/client/r0/login/cas/ticket

func (*GetCasLoginTickerRequest) Decode

func (externalReq *GetCasLoginTickerRequest) Decode(input []byte) error

func (*GetCasLoginTickerRequest) Encode

func (externalReq *GetCasLoginTickerRequest) Encode() ([]byte, error)

type GetDeviceRequest

type GetDeviceRequest struct {
	DeviceID string `json:"device_id"`
}

GET /_matrix/client/r0/devices/{deviceId}

func (*GetDeviceRequest) Decode

func (externalReq *GetDeviceRequest) Decode(input []byte) error

func (*GetDeviceRequest) Encode

func (externalReq *GetDeviceRequest) Encode() ([]byte, error)

type GetDeviceRequestCapn

type GetDeviceRequestCapn struct{ capnp.Struct }

func NewGetDeviceRequestCapn

func NewGetDeviceRequestCapn(s *capnp.Segment) (GetDeviceRequestCapn, error)

func NewRootGetDeviceRequestCapn

func NewRootGetDeviceRequestCapn(s *capnp.Segment) (GetDeviceRequestCapn, error)

func ReadRootGetDeviceRequestCapn

func ReadRootGetDeviceRequestCapn(msg *capnp.Message) (GetDeviceRequestCapn, error)

func (GetDeviceRequestCapn) DeviceID

func (s GetDeviceRequestCapn) DeviceID() (string, error)

func (GetDeviceRequestCapn) DeviceIDBytes

func (s GetDeviceRequestCapn) DeviceIDBytes() ([]byte, error)

func (GetDeviceRequestCapn) HasDeviceID

func (s GetDeviceRequestCapn) HasDeviceID() bool

func (GetDeviceRequestCapn) SetDeviceID

func (s GetDeviceRequestCapn) SetDeviceID(v string) error

func (GetDeviceRequestCapn) String

func (s GetDeviceRequestCapn) String() string

type GetDeviceRequestCapn_List

type GetDeviceRequestCapn_List struct{ capnp.List }

GetDeviceRequestCapn_List is a list of GetDeviceRequestCapn.

func NewGetDeviceRequestCapn_List

func NewGetDeviceRequestCapn_List(s *capnp.Segment, sz int32) (GetDeviceRequestCapn_List, error)

NewGetDeviceRequestCapn creates a new list of GetDeviceRequestCapn.

func (GetDeviceRequestCapn_List) At

func (GetDeviceRequestCapn_List) Set

func (GetDeviceRequestCapn_List) String

func (s GetDeviceRequestCapn_List) String() string

type GetDeviceRequestCapn_Promise

type GetDeviceRequestCapn_Promise struct{ *capnp.Pipeline }

GetDeviceRequestCapn_Promise is a wrapper for a GetDeviceRequestCapn promised by a client call.

func (GetDeviceRequestCapn_Promise) Struct

type GetDevicesByIDRequest

type GetDevicesByIDRequest struct {
	DeviceId string `json:"deviceId"`
}

GET /_matrix/client/r0/devices/{deviceId}

type GetDevicesByIDRequestCapn

type GetDevicesByIDRequestCapn struct{ capnp.Struct }

func NewGetDevicesByIDRequestCapn

func NewGetDevicesByIDRequestCapn(s *capnp.Segment) (GetDevicesByIDRequestCapn, error)

func NewRootGetDevicesByIDRequestCapn

func NewRootGetDevicesByIDRequestCapn(s *capnp.Segment) (GetDevicesByIDRequestCapn, error)

func ReadRootGetDevicesByIDRequestCapn

func ReadRootGetDevicesByIDRequestCapn(msg *capnp.Message) (GetDevicesByIDRequestCapn, error)

func (GetDevicesByIDRequestCapn) DeviceId

func (s GetDevicesByIDRequestCapn) DeviceId() (string, error)

func (GetDevicesByIDRequestCapn) DeviceIdBytes

func (s GetDevicesByIDRequestCapn) DeviceIdBytes() ([]byte, error)

func (GetDevicesByIDRequestCapn) HasDeviceId

func (s GetDevicesByIDRequestCapn) HasDeviceId() bool

func (GetDevicesByIDRequestCapn) SetDeviceId

func (s GetDevicesByIDRequestCapn) SetDeviceId(v string) error

func (GetDevicesByIDRequestCapn) String

func (s GetDevicesByIDRequestCapn) String() string

type GetDevicesByIDRequestCapn_List

type GetDevicesByIDRequestCapn_List struct{ capnp.List }

GetDevicesByIDRequestCapn_List is a list of GetDevicesByIDRequestCapn.

func NewGetDevicesByIDRequestCapn_List

func NewGetDevicesByIDRequestCapn_List(s *capnp.Segment, sz int32) (GetDevicesByIDRequestCapn_List, error)

NewGetDevicesByIDRequestCapn creates a new list of GetDevicesByIDRequestCapn.

func (GetDevicesByIDRequestCapn_List) At

func (GetDevicesByIDRequestCapn_List) Set

func (GetDevicesByIDRequestCapn_List) String

type GetDevicesByIDRequestCapn_Promise

type GetDevicesByIDRequestCapn_Promise struct{ *capnp.Pipeline }

GetDevicesByIDRequestCapn_Promise is a wrapper for a GetDevicesByIDRequestCapn promised by a client call.

func (GetDevicesByIDRequestCapn_Promise) Struct

type GetDevicesByIDResponse

type GetDevicesByIDResponse struct {
	DeviceID    string `json:"device_id"`
	DisplayName string `json:"display_name"`
	LastSeenIP  string `json:"last_seen_ip"`
	LastSeenTS  int    `json:"last_seen_ts`
}

func (*GetDevicesByIDResponse) Decode

func (res *GetDevicesByIDResponse) Decode(input []byte) error

func (*GetDevicesByIDResponse) Encode

func (res *GetDevicesByIDResponse) Encode() ([]byte, error)

type GetDevicesByIDResponseCapn

type GetDevicesByIDResponseCapn struct{ capnp.Struct }

func NewGetDevicesByIDResponseCapn

func NewGetDevicesByIDResponseCapn(s *capnp.Segment) (GetDevicesByIDResponseCapn, error)

func NewRootGetDevicesByIDResponseCapn

func NewRootGetDevicesByIDResponseCapn(s *capnp.Segment) (GetDevicesByIDResponseCapn, error)

func ReadRootGetDevicesByIDResponseCapn

func ReadRootGetDevicesByIDResponseCapn(msg *capnp.Message) (GetDevicesByIDResponseCapn, error)

func (GetDevicesByIDResponseCapn) DeviceID

func (s GetDevicesByIDResponseCapn) DeviceID() (string, error)

func (GetDevicesByIDResponseCapn) DeviceIDBytes

func (s GetDevicesByIDResponseCapn) DeviceIDBytes() ([]byte, error)

func (GetDevicesByIDResponseCapn) DisplayName

func (s GetDevicesByIDResponseCapn) DisplayName() (string, error)

func (GetDevicesByIDResponseCapn) DisplayNameBytes

func (s GetDevicesByIDResponseCapn) DisplayNameBytes() ([]byte, error)

func (GetDevicesByIDResponseCapn) HasDeviceID

func (s GetDevicesByIDResponseCapn) HasDeviceID() bool

func (GetDevicesByIDResponseCapn) HasDisplayName

func (s GetDevicesByIDResponseCapn) HasDisplayName() bool

func (GetDevicesByIDResponseCapn) HasLastSeenIP

func (s GetDevicesByIDResponseCapn) HasLastSeenIP() bool

func (GetDevicesByIDResponseCapn) LastSeenIP

func (s GetDevicesByIDResponseCapn) LastSeenIP() (string, error)

func (GetDevicesByIDResponseCapn) LastSeenIPBytes

func (s GetDevicesByIDResponseCapn) LastSeenIPBytes() ([]byte, error)

func (GetDevicesByIDResponseCapn) LastSeenTS

func (s GetDevicesByIDResponseCapn) LastSeenTS() int64

func (GetDevicesByIDResponseCapn) SetDeviceID

func (s GetDevicesByIDResponseCapn) SetDeviceID(v string) error

func (GetDevicesByIDResponseCapn) SetDisplayName

func (s GetDevicesByIDResponseCapn) SetDisplayName(v string) error

func (GetDevicesByIDResponseCapn) SetLastSeenIP

func (s GetDevicesByIDResponseCapn) SetLastSeenIP(v string) error

func (GetDevicesByIDResponseCapn) SetLastSeenTS

func (s GetDevicesByIDResponseCapn) SetLastSeenTS(v int64)

func (GetDevicesByIDResponseCapn) String

type GetDevicesByIDResponseCapn_List

type GetDevicesByIDResponseCapn_List struct{ capnp.List }

GetDevicesByIDResponseCapn_List is a list of GetDevicesByIDResponseCapn.

func NewGetDevicesByIDResponseCapn_List

func NewGetDevicesByIDResponseCapn_List(s *capnp.Segment, sz int32) (GetDevicesByIDResponseCapn_List, error)

NewGetDevicesByIDResponseCapn creates a new list of GetDevicesByIDResponseCapn.

func (GetDevicesByIDResponseCapn_List) At

func (GetDevicesByIDResponseCapn_List) Set

func (GetDevicesByIDResponseCapn_List) String

type GetDevicesByIDResponseCapn_Promise

type GetDevicesByIDResponseCapn_Promise struct{ *capnp.Pipeline }

GetDevicesByIDResponseCapn_Promise is a wrapper for a GetDevicesByIDResponseCapn promised by a client call.

func (GetDevicesByIDResponseCapn_Promise) Struct

type GetDevicesResponse

type GetDevicesResponse struct {
	Devices []Device `json:"devices"`
}

GET /_matrix/client/r0/devices

func (*GetDevicesResponse) Decode

func (res *GetDevicesResponse) Decode(input []byte) error

func (*GetDevicesResponse) Encode

func (res *GetDevicesResponse) Encode() ([]byte, error)

type GetDevicesResponseCapn

type GetDevicesResponseCapn struct{ capnp.Struct }

func NewGetDevicesResponseCapn

func NewGetDevicesResponseCapn(s *capnp.Segment) (GetDevicesResponseCapn, error)

func NewRootGetDevicesResponseCapn

func NewRootGetDevicesResponseCapn(s *capnp.Segment) (GetDevicesResponseCapn, error)

func ReadRootGetDevicesResponseCapn

func ReadRootGetDevicesResponseCapn(msg *capnp.Message) (GetDevicesResponseCapn, error)

func (GetDevicesResponseCapn) Devices

func (GetDevicesResponseCapn) HasDevices

func (s GetDevicesResponseCapn) HasDevices() bool

func (GetDevicesResponseCapn) NewDevices

NewDevices sets the devices field to a newly allocated DeviceCapn_List, preferring placement in s's segment.

func (GetDevicesResponseCapn) SetDevices

func (GetDevicesResponseCapn) String

func (s GetDevicesResponseCapn) String() string

type GetDevicesResponseCapn_List

type GetDevicesResponseCapn_List struct{ capnp.List }

GetDevicesResponseCapn_List is a list of GetDevicesResponseCapn.

func NewGetDevicesResponseCapn_List

func NewGetDevicesResponseCapn_List(s *capnp.Segment, sz int32) (GetDevicesResponseCapn_List, error)

NewGetDevicesResponseCapn creates a new list of GetDevicesResponseCapn.

func (GetDevicesResponseCapn_List) At

func (GetDevicesResponseCapn_List) Set

func (GetDevicesResponseCapn_List) String

type GetDevicesResponseCapn_Promise

type GetDevicesResponseCapn_Promise struct{ *capnp.Pipeline }

GetDevicesResponseCapn_Promise is a wrapper for a GetDevicesResponseCapn promised by a client call.

func (GetDevicesResponseCapn_Promise) Struct

type GetDirectoryRoomAliasRequest

type GetDirectoryRoomAliasRequest struct {
	RoomAlias string `json:"roomAlias"`
}

GET /_matrix/client/r0/directory/room/{roomAlias}

func (*GetDirectoryRoomAliasRequest) Decode

func (externalReq *GetDirectoryRoomAliasRequest) Decode(input []byte) error

func (*GetDirectoryRoomAliasRequest) Encode

func (externalReq *GetDirectoryRoomAliasRequest) Encode() ([]byte, error)

type GetDirectoryRoomAliasRequestCapn

type GetDirectoryRoomAliasRequestCapn struct{ capnp.Struct }

func NewGetDirectoryRoomAliasRequestCapn

func NewGetDirectoryRoomAliasRequestCapn(s *capnp.Segment) (GetDirectoryRoomAliasRequestCapn, error)

func NewRootGetDirectoryRoomAliasRequestCapn

func NewRootGetDirectoryRoomAliasRequestCapn(s *capnp.Segment) (GetDirectoryRoomAliasRequestCapn, error)

func ReadRootGetDirectoryRoomAliasRequestCapn

func ReadRootGetDirectoryRoomAliasRequestCapn(msg *capnp.Message) (GetDirectoryRoomAliasRequestCapn, error)

func (GetDirectoryRoomAliasRequestCapn) HasRoomAlias

func (s GetDirectoryRoomAliasRequestCapn) HasRoomAlias() bool

func (GetDirectoryRoomAliasRequestCapn) RoomAlias

func (GetDirectoryRoomAliasRequestCapn) RoomAliasBytes

func (s GetDirectoryRoomAliasRequestCapn) RoomAliasBytes() ([]byte, error)

func (GetDirectoryRoomAliasRequestCapn) SetRoomAlias

func (s GetDirectoryRoomAliasRequestCapn) SetRoomAlias(v string) error

func (GetDirectoryRoomAliasRequestCapn) String

type GetDirectoryRoomAliasRequestCapn_List

type GetDirectoryRoomAliasRequestCapn_List struct{ capnp.List }

GetDirectoryRoomAliasRequestCapn_List is a list of GetDirectoryRoomAliasRequestCapn.

func NewGetDirectoryRoomAliasRequestCapn_List

func NewGetDirectoryRoomAliasRequestCapn_List(s *capnp.Segment, sz int32) (GetDirectoryRoomAliasRequestCapn_List, error)

NewGetDirectoryRoomAliasRequestCapn creates a new list of GetDirectoryRoomAliasRequestCapn.

func (GetDirectoryRoomAliasRequestCapn_List) At

func (GetDirectoryRoomAliasRequestCapn_List) Set

func (GetDirectoryRoomAliasRequestCapn_List) String

type GetDirectoryRoomAliasRequestCapn_Promise

type GetDirectoryRoomAliasRequestCapn_Promise struct{ *capnp.Pipeline }

GetDirectoryRoomAliasRequestCapn_Promise is a wrapper for a GetDirectoryRoomAliasRequestCapn promised by a client call.

func (GetDirectoryRoomAliasRequestCapn_Promise) Struct

type GetDirectoryRoomAliasResponse

type GetDirectoryRoomAliasResponse struct {
	RoomID  string   `json:"room_id"`
	Servers []string `json:"servers"`
}

func (*GetDirectoryRoomAliasResponse) Decode

func (res *GetDirectoryRoomAliasResponse) Decode(input []byte) error

func (*GetDirectoryRoomAliasResponse) Encode

func (res *GetDirectoryRoomAliasResponse) Encode() ([]byte, error)

type GetDirectoryRoomAliasResponseCapn

type GetDirectoryRoomAliasResponseCapn struct{ capnp.Struct }

func NewGetDirectoryRoomAliasResponseCapn

func NewGetDirectoryRoomAliasResponseCapn(s *capnp.Segment) (GetDirectoryRoomAliasResponseCapn, error)

func NewRootGetDirectoryRoomAliasResponseCapn

func NewRootGetDirectoryRoomAliasResponseCapn(s *capnp.Segment) (GetDirectoryRoomAliasResponseCapn, error)

func ReadRootGetDirectoryRoomAliasResponseCapn

func ReadRootGetDirectoryRoomAliasResponseCapn(msg *capnp.Message) (GetDirectoryRoomAliasResponseCapn, error)

func (GetDirectoryRoomAliasResponseCapn) HasRoomID

func (GetDirectoryRoomAliasResponseCapn) HasServers

func (s GetDirectoryRoomAliasResponseCapn) HasServers() bool

func (GetDirectoryRoomAliasResponseCapn) NewServers

NewServers sets the servers field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (GetDirectoryRoomAliasResponseCapn) RoomID

func (GetDirectoryRoomAliasResponseCapn) RoomIDBytes

func (s GetDirectoryRoomAliasResponseCapn) RoomIDBytes() ([]byte, error)

func (GetDirectoryRoomAliasResponseCapn) Servers

func (GetDirectoryRoomAliasResponseCapn) SetRoomID

func (GetDirectoryRoomAliasResponseCapn) SetServers

func (GetDirectoryRoomAliasResponseCapn) String

type GetDirectoryRoomAliasResponseCapn_List

type GetDirectoryRoomAliasResponseCapn_List struct{ capnp.List }

GetDirectoryRoomAliasResponseCapn_List is a list of GetDirectoryRoomAliasResponseCapn.

func NewGetDirectoryRoomAliasResponseCapn_List

func NewGetDirectoryRoomAliasResponseCapn_List(s *capnp.Segment, sz int32) (GetDirectoryRoomAliasResponseCapn_List, error)

NewGetDirectoryRoomAliasResponseCapn creates a new list of GetDirectoryRoomAliasResponseCapn.

func (GetDirectoryRoomAliasResponseCapn_List) At

func (GetDirectoryRoomAliasResponseCapn_List) Set

func (GetDirectoryRoomAliasResponseCapn_List) String

type GetDirectoryRoomAliasResponseCapn_Promise

type GetDirectoryRoomAliasResponseCapn_Promise struct{ *capnp.Pipeline }

GetDirectoryRoomAliasResponseCapn_Promise is a wrapper for a GetDirectoryRoomAliasResponseCapn promised by a client call.

func (GetDirectoryRoomAliasResponseCapn_Promise) Struct

type GetDirectoryRoomRequest

type GetDirectoryRoomRequest struct {
	RoomID string `json:"room_id"`
}

GET /_matrix/client/r0/directory/list/room/{roomId}

func (*GetDirectoryRoomRequest) Decode

func (externalReq *GetDirectoryRoomRequest) Decode(input []byte) error

func (*GetDirectoryRoomRequest) Encode

func (externalReq *GetDirectoryRoomRequest) Encode() ([]byte, error)

type GetDirectoryRoomRequestCapn

type GetDirectoryRoomRequestCapn struct{ capnp.Struct }

func NewGetDirectoryRoomRequestCapn

func NewGetDirectoryRoomRequestCapn(s *capnp.Segment) (GetDirectoryRoomRequestCapn, error)

func NewRootGetDirectoryRoomRequestCapn

func NewRootGetDirectoryRoomRequestCapn(s *capnp.Segment) (GetDirectoryRoomRequestCapn, error)

func ReadRootGetDirectoryRoomRequestCapn

func ReadRootGetDirectoryRoomRequestCapn(msg *capnp.Message) (GetDirectoryRoomRequestCapn, error)

func (GetDirectoryRoomRequestCapn) HasRoomID

func (s GetDirectoryRoomRequestCapn) HasRoomID() bool

func (GetDirectoryRoomRequestCapn) RoomID

func (GetDirectoryRoomRequestCapn) RoomIDBytes

func (s GetDirectoryRoomRequestCapn) RoomIDBytes() ([]byte, error)

func (GetDirectoryRoomRequestCapn) SetRoomID

func (s GetDirectoryRoomRequestCapn) SetRoomID(v string) error

func (GetDirectoryRoomRequestCapn) String

type GetDirectoryRoomRequestCapn_List

type GetDirectoryRoomRequestCapn_List struct{ capnp.List }

GetDirectoryRoomRequestCapn_List is a list of GetDirectoryRoomRequestCapn.

func NewGetDirectoryRoomRequestCapn_List

func NewGetDirectoryRoomRequestCapn_List(s *capnp.Segment, sz int32) (GetDirectoryRoomRequestCapn_List, error)

NewGetDirectoryRoomRequestCapn creates a new list of GetDirectoryRoomRequestCapn.

func (GetDirectoryRoomRequestCapn_List) At

func (GetDirectoryRoomRequestCapn_List) Set

func (GetDirectoryRoomRequestCapn_List) String

type GetDirectoryRoomRequestCapn_Promise

type GetDirectoryRoomRequestCapn_Promise struct{ *capnp.Pipeline }

GetDirectoryRoomRequestCapn_Promise is a wrapper for a GetDirectoryRoomRequestCapn promised by a client call.

func (GetDirectoryRoomRequestCapn_Promise) Struct

type GetDirectoryRoomResponse

type GetDirectoryRoomResponse struct {
	Visibility string `json:"visibility"`
}

func (*GetDirectoryRoomResponse) Decode

func (res *GetDirectoryRoomResponse) Decode(input []byte) error

func (*GetDirectoryRoomResponse) Encode

func (res *GetDirectoryRoomResponse) Encode() ([]byte, error)

type GetDirectoryRoomResponseCapn

type GetDirectoryRoomResponseCapn struct{ capnp.Struct }

func NewGetDirectoryRoomResponseCapn

func NewGetDirectoryRoomResponseCapn(s *capnp.Segment) (GetDirectoryRoomResponseCapn, error)

func NewRootGetDirectoryRoomResponseCapn

func NewRootGetDirectoryRoomResponseCapn(s *capnp.Segment) (GetDirectoryRoomResponseCapn, error)

func ReadRootGetDirectoryRoomResponseCapn

func ReadRootGetDirectoryRoomResponseCapn(msg *capnp.Message) (GetDirectoryRoomResponseCapn, error)

func (GetDirectoryRoomResponseCapn) HasVisibility

func (s GetDirectoryRoomResponseCapn) HasVisibility() bool

func (GetDirectoryRoomResponseCapn) SetVisibility

func (s GetDirectoryRoomResponseCapn) SetVisibility(v string) error

func (GetDirectoryRoomResponseCapn) String

func (GetDirectoryRoomResponseCapn) Visibility

func (s GetDirectoryRoomResponseCapn) Visibility() (string, error)

func (GetDirectoryRoomResponseCapn) VisibilityBytes

func (s GetDirectoryRoomResponseCapn) VisibilityBytes() ([]byte, error)

type GetDirectoryRoomResponseCapn_List

type GetDirectoryRoomResponseCapn_List struct{ capnp.List }

GetDirectoryRoomResponseCapn_List is a list of GetDirectoryRoomResponseCapn.

func NewGetDirectoryRoomResponseCapn_List

func NewGetDirectoryRoomResponseCapn_List(s *capnp.Segment, sz int32) (GetDirectoryRoomResponseCapn_List, error)

NewGetDirectoryRoomResponseCapn creates a new list of GetDirectoryRoomResponseCapn.

func (GetDirectoryRoomResponseCapn_List) At

func (GetDirectoryRoomResponseCapn_List) Set

func (GetDirectoryRoomResponseCapn_List) String

type GetDirectoryRoomResponseCapn_Promise

type GetDirectoryRoomResponseCapn_Promise struct{ *capnp.Pipeline }

GetDirectoryRoomResponseCapn_Promise is a wrapper for a GetDirectoryRoomResponseCapn promised by a client call.

func (GetDirectoryRoomResponseCapn_Promise) Struct

type GetDisplayNameRequest

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

GET /_matrix/client/r0/profile/{userID}/displayname

func (*GetDisplayNameRequest) Decode

func (externalReq *GetDisplayNameRequest) Decode(input []byte) error

func (*GetDisplayNameRequest) Encode

func (externalReq *GetDisplayNameRequest) Encode() ([]byte, error)

type GetDisplayNameRequestCapn

type GetDisplayNameRequestCapn struct{ capnp.Struct }

func NewGetDisplayNameRequestCapn

func NewGetDisplayNameRequestCapn(s *capnp.Segment) (GetDisplayNameRequestCapn, error)

func NewRootGetDisplayNameRequestCapn

func NewRootGetDisplayNameRequestCapn(s *capnp.Segment) (GetDisplayNameRequestCapn, error)

func ReadRootGetDisplayNameRequestCapn

func ReadRootGetDisplayNameRequestCapn(msg *capnp.Message) (GetDisplayNameRequestCapn, error)

func (GetDisplayNameRequestCapn) HasUserID

func (s GetDisplayNameRequestCapn) HasUserID() bool

func (GetDisplayNameRequestCapn) SetUserID

func (s GetDisplayNameRequestCapn) SetUserID(v string) error

func (GetDisplayNameRequestCapn) String

func (s GetDisplayNameRequestCapn) String() string

func (GetDisplayNameRequestCapn) UserID

func (s GetDisplayNameRequestCapn) UserID() (string, error)

func (GetDisplayNameRequestCapn) UserIDBytes

func (s GetDisplayNameRequestCapn) UserIDBytes() ([]byte, error)

type GetDisplayNameRequestCapn_List

type GetDisplayNameRequestCapn_List struct{ capnp.List }

GetDisplayNameRequestCapn_List is a list of GetDisplayNameRequestCapn.

func NewGetDisplayNameRequestCapn_List

func NewGetDisplayNameRequestCapn_List(s *capnp.Segment, sz int32) (GetDisplayNameRequestCapn_List, error)

NewGetDisplayNameRequestCapn creates a new list of GetDisplayNameRequestCapn.

func (GetDisplayNameRequestCapn_List) At

func (GetDisplayNameRequestCapn_List) Set

func (GetDisplayNameRequestCapn_List) String

type GetDisplayNameRequestCapn_Promise

type GetDisplayNameRequestCapn_Promise struct{ *capnp.Pipeline }

GetDisplayNameRequestCapn_Promise is a wrapper for a GetDisplayNameRequestCapn promised by a client call.

func (GetDisplayNameRequestCapn_Promise) Struct

type GetDisplayNameResponse

type GetDisplayNameResponse struct {
	DisplayName string `json:"displayname"`
}

func (*GetDisplayNameResponse) Decode

func (res *GetDisplayNameResponse) Decode(input []byte) error

func (*GetDisplayNameResponse) Encode

func (res *GetDisplayNameResponse) Encode() ([]byte, error)

type GetDisplayNameResponseCapn

type GetDisplayNameResponseCapn struct{ capnp.Struct }

func NewGetDisplayNameResponseCapn

func NewGetDisplayNameResponseCapn(s *capnp.Segment) (GetDisplayNameResponseCapn, error)

func NewRootGetDisplayNameResponseCapn

func NewRootGetDisplayNameResponseCapn(s *capnp.Segment) (GetDisplayNameResponseCapn, error)

func ReadRootGetDisplayNameResponseCapn

func ReadRootGetDisplayNameResponseCapn(msg *capnp.Message) (GetDisplayNameResponseCapn, error)

func (GetDisplayNameResponseCapn) DisplayName

func (s GetDisplayNameResponseCapn) DisplayName() (string, error)

func (GetDisplayNameResponseCapn) DisplayNameBytes

func (s GetDisplayNameResponseCapn) DisplayNameBytes() ([]byte, error)

func (GetDisplayNameResponseCapn) HasDisplayName

func (s GetDisplayNameResponseCapn) HasDisplayName() bool

func (GetDisplayNameResponseCapn) SetDisplayName

func (s GetDisplayNameResponseCapn) SetDisplayName(v string) error

func (GetDisplayNameResponseCapn) String

type GetDisplayNameResponseCapn_List

type GetDisplayNameResponseCapn_List struct{ capnp.List }

GetDisplayNameResponseCapn_List is a list of GetDisplayNameResponseCapn.

func NewGetDisplayNameResponseCapn_List

func NewGetDisplayNameResponseCapn_List(s *capnp.Segment, sz int32) (GetDisplayNameResponseCapn_List, error)

NewGetDisplayNameResponseCapn creates a new list of GetDisplayNameResponseCapn.

func (GetDisplayNameResponseCapn_List) At

func (GetDisplayNameResponseCapn_List) Set

func (GetDisplayNameResponseCapn_List) String

type GetDisplayNameResponseCapn_Promise

type GetDisplayNameResponseCapn_Promise struct{ *capnp.Pipeline }

GetDisplayNameResponseCapn_Promise is a wrapper for a GetDisplayNameResponseCapn promised by a client call.

func (GetDisplayNameResponseCapn_Promise) Struct

type GetEventAuthRequest

type GetEventAuthRequest struct {
	RoomID  string `json:"roomId"`
	EventID string `json:"eventId"`
}

func (*GetEventAuthRequest) Decode

func (externalReq *GetEventAuthRequest) Decode(data []byte) error

func (*GetEventAuthRequest) Encode

func (externalReq *GetEventAuthRequest) Encode() ([]byte, error)

type GetEventAuthResponse

type GetEventAuthResponse struct {
	AuthChain []gomatrixserverlib.Event `json:"auth_chain"`
}

func (*GetEventAuthResponse) Decode

func (res *GetEventAuthResponse) Decode(input []byte) error

func (*GetEventAuthResponse) Encode

func (r *GetEventAuthResponse) Encode() ([]byte, error)

type GetEventByIDRequest

type GetEventByIDRequest struct {
	EventID string `json:"eventId,omitempty"`
}

GET /_matrix/client/r0/events/{eventId}

func (*GetEventByIDRequest) Decode

func (externalReq *GetEventByIDRequest) Decode(input []byte) error

func (*GetEventByIDRequest) Encode

func (externalReq *GetEventByIDRequest) Encode() ([]byte, error)

type GetEventByIDRequestCapn

type GetEventByIDRequestCapn struct{ capnp.Struct }

func NewGetEventByIDRequestCapn

func NewGetEventByIDRequestCapn(s *capnp.Segment) (GetEventByIDRequestCapn, error)

func NewRootGetEventByIDRequestCapn

func NewRootGetEventByIDRequestCapn(s *capnp.Segment) (GetEventByIDRequestCapn, error)

func ReadRootGetEventByIDRequestCapn

func ReadRootGetEventByIDRequestCapn(msg *capnp.Message) (GetEventByIDRequestCapn, error)

func (GetEventByIDRequestCapn) EventID

func (s GetEventByIDRequestCapn) EventID() (string, error)

func (GetEventByIDRequestCapn) EventIDBytes

func (s GetEventByIDRequestCapn) EventIDBytes() ([]byte, error)

func (GetEventByIDRequestCapn) HasEventID

func (s GetEventByIDRequestCapn) HasEventID() bool

func (GetEventByIDRequestCapn) SetEventID

func (s GetEventByIDRequestCapn) SetEventID(v string) error

func (GetEventByIDRequestCapn) String

func (s GetEventByIDRequestCapn) String() string

type GetEventByIDRequestCapn_List

type GetEventByIDRequestCapn_List struct{ capnp.List }

GetEventByIDRequestCapn_List is a list of GetEventByIDRequestCapn.

func NewGetEventByIDRequestCapn_List

func NewGetEventByIDRequestCapn_List(s *capnp.Segment, sz int32) (GetEventByIDRequestCapn_List, error)

NewGetEventByIDRequestCapn creates a new list of GetEventByIDRequestCapn.

func (GetEventByIDRequestCapn_List) At

func (GetEventByIDRequestCapn_List) Set

func (GetEventByIDRequestCapn_List) String

type GetEventByIDRequestCapn_Promise

type GetEventByIDRequestCapn_Promise struct{ *capnp.Pipeline }

GetEventByIDRequestCapn_Promise is a wrapper for a GetEventByIDRequestCapn promised by a client call.

func (GetEventByIDRequestCapn_Promise) Struct

type GetEventByIDResponse

type GetEventByIDResponse struct {
	Content interface{} `json:"content"`
	Type    string      `json:"type"`
}

type GetEventRequest

type GetEventRequest struct {
	EventID string `json:"eventId"`
}

func (*GetEventRequest) Decode

func (externalReq *GetEventRequest) Decode(data []byte) error

func (*GetEventRequest) Encode

func (externalReq *GetEventRequest) Encode() ([]byte, error)

type GetEventResponse

type GetEventResponse struct {
	Origin         string                    `json:"origin"`
	OriginServerTS int64                     `json:"origin_server_ts"`
	PDUs           []gomatrixserverlib.Event `json:"pdus"`
}

func (*GetEventResponse) Decode

func (res *GetEventResponse) Decode(input []byte) error

func (*GetEventResponse) Encode

func (r *GetEventResponse) Encode() ([]byte, error)

type GetEventsRequest

type GetEventsRequest struct {
	From        string `json:"from"`
	TimeOut     string `json:"timeout"`
	FullState   string `json:"full_state"`
	SetPresence string `json:"set_presence"`
	Since       string `json:"since"`
	Filter      string `json:"filter"`
}

GET /_matrix/client/r0/events

func (*GetEventsRequest) Decode

func (externalReq *GetEventsRequest) Decode(input []byte) error

func (*GetEventsRequest) Encode

func (externalReq *GetEventsRequest) Encode() ([]byte, error)

type GetEventsResponse

type GetEventsResponse struct {
	Start string  `json:"start"`
	End   string  `json:"end"`
	Chunk []Event `json:"chunk"`
}

func (*GetEventsResponse) Decode

func (res *GetEventsResponse) Decode(input []byte) error

func (*GetEventsResponse) Encode

func (res *GetEventsResponse) Encode() ([]byte, error)

type GetFedBackFillRequest

type GetFedBackFillRequest struct {
	RoomID      string `json:"roomId"`
	BackFillIds string `json:"v,omitempty"`
	Limit       int    `json:"limit,omitempty"`
	Dir         string `json:"dir"`
	Domain      string `json:"domain"`
	Origin      string `json:"origin"`
}

GET /_matrix/federation/v1/backfill/{roomId}

func (*GetFedBackFillRequest) Decode

func (externalReq *GetFedBackFillRequest) Decode(input []byte) error

func (*GetFedBackFillRequest) Encode

func (externalReq *GetFedBackFillRequest) Encode() ([]byte, error)

type GetFedDirectoryRequest

type GetFedDirectoryRequest struct {
	RoomAlias string `json:"room_alias"`
}

func (*GetFedDirectoryRequest) Decode

func (externalReq *GetFedDirectoryRequest) Decode(data []byte) error

func (*GetFedDirectoryRequest) Encode

func (externalReq *GetFedDirectoryRequest) Encode() ([]byte, error)

type GetFedDirectoryResponse

type GetFedDirectoryResponse struct {
	RoomID  string   `json:"room_id"`
	Servers []string `json:"servers"`
}

func (*GetFedDirectoryResponse) Decode

func (res *GetFedDirectoryResponse) Decode(input []byte) error

func (*GetFedDirectoryResponse) Encode

func (r *GetFedDirectoryResponse) Encode() ([]byte, error)

type GetFedDownloadRequest

type GetFedDownloadRequest struct {
	ID       string `json:"id"`
	FileType string `json:"fileType"`
	MediaID  string `json:"mediaID"`
	Width    string `json:"width,omitempty"`
	Method   string `json:"method,omitempty"`
}

GET /_matrix/federation/v1/media/download/{serverName}/{mediaId}

type GetFedDownloadResponse

type GetFedDownloadResponse struct {
	ID         string              `json:"id"`
	StatusCode int                 `json:"statusCode"`
	Header     map[string][]string `json:"header"`
}

type GetFedPublicRoomsRequest

type GetFedPublicRoomsRequest struct {
	Limit                int64  `json:"limit"`
	Since                string `json:"since"`
	IncludeAllNetworks   bool   `json:"include_all_networks"`
	ThirdPartyInstanceID string `json:"third_party_instance_id"`
}

func (*GetFedPublicRoomsRequest) Decode

func (externalReq *GetFedPublicRoomsRequest) Decode(data []byte) error

func (*GetFedPublicRoomsRequest) Encode

func (externalReq *GetFedPublicRoomsRequest) Encode() ([]byte, error)

type GetFedPublicRoomsResponse

type GetFedPublicRoomsResponse struct {
	Chunk     []types.PublicRoom `json:"chunk"`
	NextBatch string             `json:"next_batch,omitempty"`
	PrevBatch string             `json:"prev_batch,omitempty"`
	Estimate  int64              `json:"total_room_count_estimate,omitempty"`
}

func (*GetFedPublicRoomsResponse) Decode

func (res *GetFedPublicRoomsResponse) Decode(input []byte) error

func (*GetFedPublicRoomsResponse) Encode

func (r *GetFedPublicRoomsResponse) Encode() ([]byte, error)

type GetFedRoomStateRequest

type GetFedRoomStateRequest struct {
	RoomID  string `json:"room_id"`
	EventID string `json:"event_id,omitempty"`
}

GET /_matrix/federation/v1/state/{roomId}

type GetFriendshipRequest

type GetFriendshipRequest struct {
	FcID   string `json:"fcid"`
	ToFcID string `json:"toFcid"`
}

func (*GetFriendshipRequest) Decode

func (externalReq *GetFriendshipRequest) Decode(data []byte) error

func (*GetFriendshipRequest) Encode

func (externalReq *GetFriendshipRequest) Encode() ([]byte, error)

type GetFriendshipResponse

type GetFriendshipResponse struct {
	FcID        string `json:"fcid"`
	ToFcID      string `json:"to_fcid"`
	RoomID      string `json:"room_id"`
	FcIDState   string `json:"fcid_state"`
	ToFcIDState string `json:"to_fcid_state"`
}

func (*GetFriendshipResponse) Decode

func (res *GetFriendshipResponse) Decode(input []byte) error

func (*GetFriendshipResponse) Encode

func (r *GetFriendshipResponse) Encode() ([]byte, error)

type GetFriendshipsRequest

type GetFriendshipsRequest struct {
	Type string `json:"type"`
}

func (*GetFriendshipsRequest) Decode

func (externalReq *GetFriendshipsRequest) Decode(data []byte) error

func (*GetFriendshipsRequest) Encode

func (externalReq *GetFriendshipsRequest) Encode() ([]byte, error)

type GetFriendshipsResponse

type GetFriendshipsResponse struct {
	Friendships []Friendship `json:"friendships"`
}

func (*GetFriendshipsResponse) Decode

func (res *GetFriendshipsResponse) Decode(input []byte) error

func (*GetFriendshipsResponse) Encode

func (r *GetFriendshipsResponse) Encode() ([]byte, error)

type GetInitialSyncRequest

type GetInitialSyncRequest struct {
	Limit       int    `json:"limit"`
	Archived    bool   `json:"archived"`
	Timeout     int    `json:"timeout"`
	FullState   string `json:"full_state"`
	SetPresence string `json:"set_presence"`
	From        string `json:"from"`
	Since       string `json:"since"`
}

GET /_matrix/client/r0/initialSync

func (*GetInitialSyncRequest) Decode

func (externalReq *GetInitialSyncRequest) Decode(input []byte) error

func (*GetInitialSyncRequest) Encode

func (externalReq *GetInitialSyncRequest) Encode() ([]byte, error)

type GetInitialSyncRequestCapn

type GetInitialSyncRequestCapn struct{ capnp.Struct }

func NewGetInitialSyncRequestCapn

func NewGetInitialSyncRequestCapn(s *capnp.Segment) (GetInitialSyncRequestCapn, error)

func NewRootGetInitialSyncRequestCapn

func NewRootGetInitialSyncRequestCapn(s *capnp.Segment) (GetInitialSyncRequestCapn, error)

func ReadRootGetInitialSyncRequestCapn

func ReadRootGetInitialSyncRequestCapn(msg *capnp.Message) (GetInitialSyncRequestCapn, error)

func (GetInitialSyncRequestCapn) Archived

func (s GetInitialSyncRequestCapn) Archived() bool

func (GetInitialSyncRequestCapn) From

func (GetInitialSyncRequestCapn) FromBytes

func (s GetInitialSyncRequestCapn) FromBytes() ([]byte, error)

func (GetInitialSyncRequestCapn) FullState

func (s GetInitialSyncRequestCapn) FullState() (string, error)

func (GetInitialSyncRequestCapn) FullStateBytes

func (s GetInitialSyncRequestCapn) FullStateBytes() ([]byte, error)

func (GetInitialSyncRequestCapn) HasFrom

func (s GetInitialSyncRequestCapn) HasFrom() bool

func (GetInitialSyncRequestCapn) HasFullState

func (s GetInitialSyncRequestCapn) HasFullState() bool

func (GetInitialSyncRequestCapn) HasSetPresence

func (s GetInitialSyncRequestCapn) HasSetPresence() bool

func (GetInitialSyncRequestCapn) HasSince

func (s GetInitialSyncRequestCapn) HasSince() bool

func (GetInitialSyncRequestCapn) Limit

func (s GetInitialSyncRequestCapn) Limit() int64

func (GetInitialSyncRequestCapn) SetArchived

func (s GetInitialSyncRequestCapn) SetArchived(v bool)

func (GetInitialSyncRequestCapn) SetFrom

func (s GetInitialSyncRequestCapn) SetFrom(v string) error

func (GetInitialSyncRequestCapn) SetFullState

func (s GetInitialSyncRequestCapn) SetFullState(v string) error

func (GetInitialSyncRequestCapn) SetLimit

func (s GetInitialSyncRequestCapn) SetLimit(v int64)

func (GetInitialSyncRequestCapn) SetPresence

func (s GetInitialSyncRequestCapn) SetPresence() (string, error)

func (GetInitialSyncRequestCapn) SetPresenceBytes

func (s GetInitialSyncRequestCapn) SetPresenceBytes() ([]byte, error)

func (GetInitialSyncRequestCapn) SetSetPresence

func (s GetInitialSyncRequestCapn) SetSetPresence(v string) error

func (GetInitialSyncRequestCapn) SetSince

func (s GetInitialSyncRequestCapn) SetSince(v string) error

func (GetInitialSyncRequestCapn) SetTimeout

func (s GetInitialSyncRequestCapn) SetTimeout(v int64)

func (GetInitialSyncRequestCapn) Since

func (s GetInitialSyncRequestCapn) Since() (string, error)

func (GetInitialSyncRequestCapn) SinceBytes

func (s GetInitialSyncRequestCapn) SinceBytes() ([]byte, error)

func (GetInitialSyncRequestCapn) String

func (s GetInitialSyncRequestCapn) String() string

func (GetInitialSyncRequestCapn) Timeout

func (s GetInitialSyncRequestCapn) Timeout() int64

type GetInitialSyncRequestCapn_List

type GetInitialSyncRequestCapn_List struct{ capnp.List }

GetInitialSyncRequestCapn_List is a list of GetInitialSyncRequestCapn.

func NewGetInitialSyncRequestCapn_List

func NewGetInitialSyncRequestCapn_List(s *capnp.Segment, sz int32) (GetInitialSyncRequestCapn_List, error)

NewGetInitialSyncRequestCapn creates a new list of GetInitialSyncRequestCapn.

func (GetInitialSyncRequestCapn_List) At

func (GetInitialSyncRequestCapn_List) Set

func (GetInitialSyncRequestCapn_List) String

type GetInitialSyncRequestCapn_Promise

type GetInitialSyncRequestCapn_Promise struct{ *capnp.Pipeline }

GetInitialSyncRequestCapn_Promise is a wrapper for a GetInitialSyncRequestCapn promised by a client call.

func (GetInitialSyncRequestCapn_Promise) Struct

type GetInitialSyncResponse

type GetInitialSyncResponse struct {
	End         string     `json:"end"`
	Presence    []Event    `json:"presence"`
	AccountData []Event    `json:"account_data"`
	Rooms       []RoomInfo `json:"rooms"`
}

func (*GetInitialSyncResponse) Decode

func (res *GetInitialSyncResponse) Decode(input []byte) error

func (*GetInitialSyncResponse) Encode

func (res *GetInitialSyncResponse) Encode() ([]byte, error)

type GetJoinedMemberRequest

type GetJoinedMemberRequest struct {
	RoomID string `json:"room_id"`
}

GET /_matrix/client/r0/rooms/{roomID}/joined_members

func (*GetJoinedMemberRequest) Decode

func (externalReq *GetJoinedMemberRequest) Decode(input []byte) error

func (*GetJoinedMemberRequest) Encode

func (externalReq *GetJoinedMemberRequest) Encode() ([]byte, error)

type GetJoinedMemberRequestCapn

type GetJoinedMemberRequestCapn struct{ capnp.Struct }

func NewGetJoinedMemberRequestCapn

func NewGetJoinedMemberRequestCapn(s *capnp.Segment) (GetJoinedMemberRequestCapn, error)

func NewRootGetJoinedMemberRequestCapn

func NewRootGetJoinedMemberRequestCapn(s *capnp.Segment) (GetJoinedMemberRequestCapn, error)

func ReadRootGetJoinedMemberRequestCapn

func ReadRootGetJoinedMemberRequestCapn(msg *capnp.Message) (GetJoinedMemberRequestCapn, error)

func (GetJoinedMemberRequestCapn) HasRoomID

func (s GetJoinedMemberRequestCapn) HasRoomID() bool

func (GetJoinedMemberRequestCapn) RoomID

func (s GetJoinedMemberRequestCapn) RoomID() (string, error)

func (GetJoinedMemberRequestCapn) RoomIDBytes

func (s GetJoinedMemberRequestCapn) RoomIDBytes() ([]byte, error)

func (GetJoinedMemberRequestCapn) SetRoomID

func (s GetJoinedMemberRequestCapn) SetRoomID(v string) error

func (GetJoinedMemberRequestCapn) String

type GetJoinedMemberRequestCapn_List

type GetJoinedMemberRequestCapn_List struct{ capnp.List }

GetJoinedMemberRequestCapn_List is a list of GetJoinedMemberRequestCapn.

func NewGetJoinedMemberRequestCapn_List

func NewGetJoinedMemberRequestCapn_List(s *capnp.Segment, sz int32) (GetJoinedMemberRequestCapn_List, error)

NewGetJoinedMemberRequestCapn creates a new list of GetJoinedMemberRequestCapn.

func (GetJoinedMemberRequestCapn_List) At

func (GetJoinedMemberRequestCapn_List) Set

func (GetJoinedMemberRequestCapn_List) String

type GetJoinedMemberRequestCapn_Promise

type GetJoinedMemberRequestCapn_Promise struct{ *capnp.Pipeline }

GetJoinedMemberRequestCapn_Promise is a wrapper for a GetJoinedMemberRequestCapn promised by a client call.

func (GetJoinedMemberRequestCapn_Promise) Struct

type GetJoinedMemberResponse

type GetJoinedMemberResponse struct {
	Joined map[string]MemberContent `json:"joined"`
}

func (*GetJoinedMemberResponse) Decode

func (res *GetJoinedMemberResponse) Decode(input []byte) error

func (*GetJoinedMemberResponse) Encode

func (res *GetJoinedMemberResponse) Encode() ([]byte, error)

type GetJoinedRoomsResponse

type GetJoinedRoomsResponse struct {
	JoinedRooms []string `json:"joined_rooms,omitempty"`
}

GET /_matrix/client/r0/joined_rooms

func (*GetJoinedRoomsResponse) Decode

func (res *GetJoinedRoomsResponse) Decode(input []byte) error

func (*GetJoinedRoomsResponse) Encode

func (res *GetJoinedRoomsResponse) Encode() ([]byte, error)

type GetJoinedRoomsResponseCapn

type GetJoinedRoomsResponseCapn struct{ capnp.Struct }

func NewGetJoinedRoomsResponseCapn

func NewGetJoinedRoomsResponseCapn(s *capnp.Segment) (GetJoinedRoomsResponseCapn, error)

func NewRootGetJoinedRoomsResponseCapn

func NewRootGetJoinedRoomsResponseCapn(s *capnp.Segment) (GetJoinedRoomsResponseCapn, error)

func ReadRootGetJoinedRoomsResponseCapn

func ReadRootGetJoinedRoomsResponseCapn(msg *capnp.Message) (GetJoinedRoomsResponseCapn, error)

func (GetJoinedRoomsResponseCapn) HasJoinedRooms

func (s GetJoinedRoomsResponseCapn) HasJoinedRooms() bool

func (GetJoinedRoomsResponseCapn) JoinedRooms

func (s GetJoinedRoomsResponseCapn) JoinedRooms() (capnp.TextList, error)

func (GetJoinedRoomsResponseCapn) NewJoinedRooms

func (s GetJoinedRoomsResponseCapn) NewJoinedRooms(n int32) (capnp.TextList, error)

NewJoinedRooms sets the joinedRooms field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (GetJoinedRoomsResponseCapn) SetJoinedRooms

func (s GetJoinedRoomsResponseCapn) SetJoinedRooms(v capnp.TextList) error

func (GetJoinedRoomsResponseCapn) String

type GetJoinedRoomsResponseCapn_List

type GetJoinedRoomsResponseCapn_List struct{ capnp.List }

GetJoinedRoomsResponseCapn_List is a list of GetJoinedRoomsResponseCapn.

func NewGetJoinedRoomsResponseCapn_List

func NewGetJoinedRoomsResponseCapn_List(s *capnp.Segment, sz int32) (GetJoinedRoomsResponseCapn_List, error)

NewGetJoinedRoomsResponseCapn creates a new list of GetJoinedRoomsResponseCapn.

func (GetJoinedRoomsResponseCapn_List) At

func (GetJoinedRoomsResponseCapn_List) Set

func (GetJoinedRoomsResponseCapn_List) String

type GetJoinedRoomsResponseCapn_Promise

type GetJoinedRoomsResponseCapn_Promise struct{ *capnp.Pipeline }

GetJoinedRoomsResponseCapn_Promise is a wrapper for a GetJoinedRoomsResponseCapn promised by a client call.

func (GetJoinedRoomsResponseCapn_Promise) Struct

type GetKeysChangesRequest

type GetKeysChangesRequest struct {
	From string `json:"from"`
	To   string `json:"to"`
}

GET /_matrix/client/r0/keys/changes

func (*GetKeysChangesRequest) Decode

func (externalReq *GetKeysChangesRequest) Decode(input []byte) error

func (*GetKeysChangesRequest) Encode

func (externalReq *GetKeysChangesRequest) Encode() ([]byte, error)

type GetKeysChangesRequestCapn

type GetKeysChangesRequestCapn struct{ capnp.Struct }

func NewGetKeysChangesRequestCapn

func NewGetKeysChangesRequestCapn(s *capnp.Segment) (GetKeysChangesRequestCapn, error)

func NewRootGetKeysChangesRequestCapn

func NewRootGetKeysChangesRequestCapn(s *capnp.Segment) (GetKeysChangesRequestCapn, error)

func ReadRootGetKeysChangesRequestCapn

func ReadRootGetKeysChangesRequestCapn(msg *capnp.Message) (GetKeysChangesRequestCapn, error)

func (GetKeysChangesRequestCapn) From

func (GetKeysChangesRequestCapn) FromBytes

func (s GetKeysChangesRequestCapn) FromBytes() ([]byte, error)

func (GetKeysChangesRequestCapn) HasFrom

func (s GetKeysChangesRequestCapn) HasFrom() bool

func (GetKeysChangesRequestCapn) HasTo

func (s GetKeysChangesRequestCapn) HasTo() bool

func (GetKeysChangesRequestCapn) SetFrom

func (s GetKeysChangesRequestCapn) SetFrom(v string) error

func (GetKeysChangesRequestCapn) SetTo

func (GetKeysChangesRequestCapn) String

func (s GetKeysChangesRequestCapn) String() string

func (GetKeysChangesRequestCapn) To

func (GetKeysChangesRequestCapn) ToBytes

func (s GetKeysChangesRequestCapn) ToBytes() ([]byte, error)

type GetKeysChangesRequestCapn_List

type GetKeysChangesRequestCapn_List struct{ capnp.List }

GetKeysChangesRequestCapn_List is a list of GetKeysChangesRequestCapn.

func NewGetKeysChangesRequestCapn_List

func NewGetKeysChangesRequestCapn_List(s *capnp.Segment, sz int32) (GetKeysChangesRequestCapn_List, error)

NewGetKeysChangesRequestCapn creates a new list of GetKeysChangesRequestCapn.

func (GetKeysChangesRequestCapn_List) At

func (GetKeysChangesRequestCapn_List) Set

func (GetKeysChangesRequestCapn_List) String

type GetKeysChangesRequestCapn_Promise

type GetKeysChangesRequestCapn_Promise struct{ *capnp.Pipeline }

GetKeysChangesRequestCapn_Promise is a wrapper for a GetKeysChangesRequestCapn promised by a client call.

func (GetKeysChangesRequestCapn_Promise) Struct

type GetKeysChangesResponse

type GetKeysChangesResponse struct {
	Changed []string `json:"changed"`
	Left    []string `json:"left"`
}

func (*GetKeysChangesResponse) Decode

func (res *GetKeysChangesResponse) Decode(input []byte) error

func (*GetKeysChangesResponse) Encode

func (res *GetKeysChangesResponse) Encode() ([]byte, error)

type GetKeysChangesResponseCapn

type GetKeysChangesResponseCapn struct{ capnp.Struct }

func NewGetKeysChangesResponseCapn

func NewGetKeysChangesResponseCapn(s *capnp.Segment) (GetKeysChangesResponseCapn, error)

func NewRootGetKeysChangesResponseCapn

func NewRootGetKeysChangesResponseCapn(s *capnp.Segment) (GetKeysChangesResponseCapn, error)

func ReadRootGetKeysChangesResponseCapn

func ReadRootGetKeysChangesResponseCapn(msg *capnp.Message) (GetKeysChangesResponseCapn, error)

func (GetKeysChangesResponseCapn) Changed

func (GetKeysChangesResponseCapn) HasChanged

func (s GetKeysChangesResponseCapn) HasChanged() bool

func (GetKeysChangesResponseCapn) HasLeft

func (s GetKeysChangesResponseCapn) HasLeft() bool

func (GetKeysChangesResponseCapn) Left

func (GetKeysChangesResponseCapn) NewChanged

NewChanged sets the changed field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (GetKeysChangesResponseCapn) NewLeft

NewLeft sets the left field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (GetKeysChangesResponseCapn) SetChanged

func (GetKeysChangesResponseCapn) SetLeft

func (GetKeysChangesResponseCapn) String

type GetKeysChangesResponseCapn_List

type GetKeysChangesResponseCapn_List struct{ capnp.List }

GetKeysChangesResponseCapn_List is a list of GetKeysChangesResponseCapn.

func NewGetKeysChangesResponseCapn_List

func NewGetKeysChangesResponseCapn_List(s *capnp.Segment, sz int32) (GetKeysChangesResponseCapn_List, error)

NewGetKeysChangesResponseCapn creates a new list of GetKeysChangesResponseCapn.

func (GetKeysChangesResponseCapn_List) At

func (GetKeysChangesResponseCapn_List) Set

func (GetKeysChangesResponseCapn_List) String

type GetKeysChangesResponseCapn_Promise

type GetKeysChangesResponseCapn_Promise struct{ *capnp.Pipeline }

GetKeysChangesResponseCapn_Promise is a wrapper for a GetKeysChangesResponseCapn promised by a client call.

func (GetKeysChangesResponseCapn_Promise) Struct

type GetLoginAdminRequest

type GetLoginAdminRequest GetLoginRequest

func (*GetLoginAdminRequest) Decode

func (externalReq *GetLoginAdminRequest) Decode(input []byte) error

func (*GetLoginAdminRequest) Encode

func (externalReq *GetLoginAdminRequest) Encode() ([]byte, error)

type GetLoginRequest

type GetLoginRequest struct {
	IsAdmin bool `json:"is_admin"`
}

GET /_matrix/client/r0/login

func (*GetLoginRequest) Decode

func (externalReq *GetLoginRequest) Decode(input []byte) error

func (*GetLoginRequest) Encode

func (externalReq *GetLoginRequest) Encode() ([]byte, error)

type GetLoginRequestCapn

type GetLoginRequestCapn struct{ capnp.Struct }

func NewGetLoginRequestCapn

func NewGetLoginRequestCapn(s *capnp.Segment) (GetLoginRequestCapn, error)

func NewRootGetLoginRequestCapn

func NewRootGetLoginRequestCapn(s *capnp.Segment) (GetLoginRequestCapn, error)

func ReadRootGetLoginRequestCapn

func ReadRootGetLoginRequestCapn(msg *capnp.Message) (GetLoginRequestCapn, error)

func (GetLoginRequestCapn) IsAdmin

func (s GetLoginRequestCapn) IsAdmin() bool

func (GetLoginRequestCapn) SetIsAdmin

func (s GetLoginRequestCapn) SetIsAdmin(v bool)

func (GetLoginRequestCapn) String

func (s GetLoginRequestCapn) String() string

type GetLoginRequestCapn_List

type GetLoginRequestCapn_List struct{ capnp.List }

GetLoginRequestCapn_List is a list of GetLoginRequestCapn.

func NewGetLoginRequestCapn_List

func NewGetLoginRequestCapn_List(s *capnp.Segment, sz int32) (GetLoginRequestCapn_List, error)

NewGetLoginRequestCapn creates a new list of GetLoginRequestCapn.

func (GetLoginRequestCapn_List) At

func (GetLoginRequestCapn_List) Set

func (GetLoginRequestCapn_List) String

func (s GetLoginRequestCapn_List) String() string

type GetLoginRequestCapn_Promise

type GetLoginRequestCapn_Promise struct{ *capnp.Pipeline }

GetLoginRequestCapn_Promise is a wrapper for a GetLoginRequestCapn promised by a client call.

func (GetLoginRequestCapn_Promise) Struct

type GetLoginResponse

type GetLoginResponse struct {
	Flows []Flow `json:"flows"`
}

response

func (*GetLoginResponse) Decode

func (res *GetLoginResponse) Decode(input []byte) error

func (*GetLoginResponse) Encode

func (res *GetLoginResponse) Encode() ([]byte, error)

type GetLoginResponseCapn

type GetLoginResponseCapn struct{ capnp.Struct }

func NewGetLoginResponseCapn

func NewGetLoginResponseCapn(s *capnp.Segment) (GetLoginResponseCapn, error)

func NewRootGetLoginResponseCapn

func NewRootGetLoginResponseCapn(s *capnp.Segment) (GetLoginResponseCapn, error)

func ReadRootGetLoginResponseCapn

func ReadRootGetLoginResponseCapn(msg *capnp.Message) (GetLoginResponseCapn, error)

func (GetLoginResponseCapn) Flows

func (GetLoginResponseCapn) HasFlows

func (s GetLoginResponseCapn) HasFlows() bool

func (GetLoginResponseCapn) NewFlows

func (s GetLoginResponseCapn) NewFlows(n int32) (FlowCapn_List, error)

NewFlows sets the flows field to a newly allocated FlowCapn_List, preferring placement in s's segment.

func (GetLoginResponseCapn) SetFlows

func (GetLoginResponseCapn) String

func (s GetLoginResponseCapn) String() string

type GetLoginResponseCapn_List

type GetLoginResponseCapn_List struct{ capnp.List }

GetLoginResponseCapn_List is a list of GetLoginResponseCapn.

func NewGetLoginResponseCapn_List

func NewGetLoginResponseCapn_List(s *capnp.Segment, sz int32) (GetLoginResponseCapn_List, error)

NewGetLoginResponseCapn creates a new list of GetLoginResponseCapn.

func (GetLoginResponseCapn_List) At

func (GetLoginResponseCapn_List) Set

func (GetLoginResponseCapn_List) String

func (s GetLoginResponseCapn_List) String() string

type GetLoginResponseCapn_Promise

type GetLoginResponseCapn_Promise struct{ *capnp.Pipeline }

GetLoginResponseCapn_Promise is a wrapper for a GetLoginResponseCapn promised by a client call.

func (GetLoginResponseCapn_Promise) Struct

type GetMakeJoinRequest

type GetMakeJoinRequest struct {
	RoomID string   `json:"roomId"`
	UserID string   `json:"userId"`
	Ver    []string `json:"ver"`
}

func (*GetMakeJoinRequest) Decode

func (externalReq *GetMakeJoinRequest) Decode(data []byte) error

func (*GetMakeJoinRequest) Encode

func (externalReq *GetMakeJoinRequest) Encode() ([]byte, error)

type GetMakeLeaveRequest

type GetMakeLeaveRequest struct {
	RoomID string `json:"roomId"`
	UserID string `json:"userId"`
}

func (*GetMakeLeaveRequest) Decode

func (externalReq *GetMakeLeaveRequest) Decode(data []byte) error

func (*GetMakeLeaveRequest) Encode

func (externalReq *GetMakeLeaveRequest) Encode() ([]byte, error)

type GetMediaDownloadByFileNameRequest

type GetMediaDownloadByFileNameRequest struct {
	ServerName  string `json:"serverName"`
	MediaID     string `json:"mediaId"`
	FileName    string `json:"fileName"`
	AllowRemote string `json:"allow_remote"`
}

GET /_matrix/media/r0/download/{serverName}/{mediaId}/{fileName}

type GetMediaDownloadByFileNameRequestCapn

type GetMediaDownloadByFileNameRequestCapn struct{ capnp.Struct }

func NewGetMediaDownloadByFileNameRequestCapn

func NewGetMediaDownloadByFileNameRequestCapn(s *capnp.Segment) (GetMediaDownloadByFileNameRequestCapn, error)

func NewRootGetMediaDownloadByFileNameRequestCapn

func NewRootGetMediaDownloadByFileNameRequestCapn(s *capnp.Segment) (GetMediaDownloadByFileNameRequestCapn, error)

func ReadRootGetMediaDownloadByFileNameRequestCapn

func ReadRootGetMediaDownloadByFileNameRequestCapn(msg *capnp.Message) (GetMediaDownloadByFileNameRequestCapn, error)

func (GetMediaDownloadByFileNameRequestCapn) AllowRemote

func (GetMediaDownloadByFileNameRequestCapn) AllowRemoteBytes

func (s GetMediaDownloadByFileNameRequestCapn) AllowRemoteBytes() ([]byte, error)

func (GetMediaDownloadByFileNameRequestCapn) FileName

func (GetMediaDownloadByFileNameRequestCapn) FileNameBytes

func (s GetMediaDownloadByFileNameRequestCapn) FileNameBytes() ([]byte, error)

func (GetMediaDownloadByFileNameRequestCapn) HasAllowRemote

func (s GetMediaDownloadByFileNameRequestCapn) HasAllowRemote() bool

func (GetMediaDownloadByFileNameRequestCapn) HasFileName

func (GetMediaDownloadByFileNameRequestCapn) HasMediaID

func (GetMediaDownloadByFileNameRequestCapn) HasServerName

func (s GetMediaDownloadByFileNameRequestCapn) HasServerName() bool

func (GetMediaDownloadByFileNameRequestCapn) MediaID

func (GetMediaDownloadByFileNameRequestCapn) MediaIDBytes

func (s GetMediaDownloadByFileNameRequestCapn) MediaIDBytes() ([]byte, error)

func (GetMediaDownloadByFileNameRequestCapn) ServerName

func (GetMediaDownloadByFileNameRequestCapn) ServerNameBytes

func (s GetMediaDownloadByFileNameRequestCapn) ServerNameBytes() ([]byte, error)

func (GetMediaDownloadByFileNameRequestCapn) SetAllowRemote

func (GetMediaDownloadByFileNameRequestCapn) SetFileName

func (GetMediaDownloadByFileNameRequestCapn) SetMediaID

func (GetMediaDownloadByFileNameRequestCapn) SetServerName

func (GetMediaDownloadByFileNameRequestCapn) String

type GetMediaDownloadByFileNameRequestCapn_List

type GetMediaDownloadByFileNameRequestCapn_List struct{ capnp.List }

GetMediaDownloadByFileNameRequestCapn_List is a list of GetMediaDownloadByFileNameRequestCapn.

func NewGetMediaDownloadByFileNameRequestCapn_List

func NewGetMediaDownloadByFileNameRequestCapn_List(s *capnp.Segment, sz int32) (GetMediaDownloadByFileNameRequestCapn_List, error)

NewGetMediaDownloadByFileNameRequestCapn creates a new list of GetMediaDownloadByFileNameRequestCapn.

func (GetMediaDownloadByFileNameRequestCapn_List) At

func (GetMediaDownloadByFileNameRequestCapn_List) Set

func (GetMediaDownloadByFileNameRequestCapn_List) String

type GetMediaDownloadByFileNameRequestCapn_Promise

type GetMediaDownloadByFileNameRequestCapn_Promise struct{ *capnp.Pipeline }

GetMediaDownloadByFileNameRequestCapn_Promise is a wrapper for a GetMediaDownloadByFileNameRequestCapn promised by a client call.

func (GetMediaDownloadByFileNameRequestCapn_Promise) Struct

type GetMediaDownloadRequest

type GetMediaDownloadRequest struct {
	ServerName  string `json:"serverName"`
	MediaID     string `json:"mediaId"`
	AllowRemote string `json:"allow_remote"`
}

GET /_matrix/media/r0/download/{serverName}/{mediaId}

func (*GetMediaDownloadRequest) Decode

func (externalReq *GetMediaDownloadRequest) Decode(input []byte) error

func (*GetMediaDownloadRequest) Encode

func (externalReq *GetMediaDownloadRequest) Encode() ([]byte, error)

type GetMediaDownloadRequestCapn

type GetMediaDownloadRequestCapn struct{ capnp.Struct }

func NewGetMediaDownloadRequestCapn

func NewGetMediaDownloadRequestCapn(s *capnp.Segment) (GetMediaDownloadRequestCapn, error)

func NewRootGetMediaDownloadRequestCapn

func NewRootGetMediaDownloadRequestCapn(s *capnp.Segment) (GetMediaDownloadRequestCapn, error)

func ReadRootGetMediaDownloadRequestCapn

func ReadRootGetMediaDownloadRequestCapn(msg *capnp.Message) (GetMediaDownloadRequestCapn, error)

func (GetMediaDownloadRequestCapn) AllowRemote

func (s GetMediaDownloadRequestCapn) AllowRemote() (string, error)

func (GetMediaDownloadRequestCapn) AllowRemoteBytes

func (s GetMediaDownloadRequestCapn) AllowRemoteBytes() ([]byte, error)

func (GetMediaDownloadRequestCapn) HasAllowRemote

func (s GetMediaDownloadRequestCapn) HasAllowRemote() bool

func (GetMediaDownloadRequestCapn) HasMediaID

func (s GetMediaDownloadRequestCapn) HasMediaID() bool

func (GetMediaDownloadRequestCapn) HasServerName

func (s GetMediaDownloadRequestCapn) HasServerName() bool

func (GetMediaDownloadRequestCapn) MediaID

func (s GetMediaDownloadRequestCapn) MediaID() (string, error)

func (GetMediaDownloadRequestCapn) MediaIDBytes

func (s GetMediaDownloadRequestCapn) MediaIDBytes() ([]byte, error)

func (GetMediaDownloadRequestCapn) ServerName

func (s GetMediaDownloadRequestCapn) ServerName() (string, error)

func (GetMediaDownloadRequestCapn) ServerNameBytes

func (s GetMediaDownloadRequestCapn) ServerNameBytes() ([]byte, error)

func (GetMediaDownloadRequestCapn) SetAllowRemote

func (s GetMediaDownloadRequestCapn) SetAllowRemote(v string) error

func (GetMediaDownloadRequestCapn) SetMediaID

func (s GetMediaDownloadRequestCapn) SetMediaID(v string) error

func (GetMediaDownloadRequestCapn) SetServerName

func (s GetMediaDownloadRequestCapn) SetServerName(v string) error

func (GetMediaDownloadRequestCapn) String

type GetMediaDownloadRequestCapn_List

type GetMediaDownloadRequestCapn_List struct{ capnp.List }

GetMediaDownloadRequestCapn_List is a list of GetMediaDownloadRequestCapn.

func NewGetMediaDownloadRequestCapn_List

func NewGetMediaDownloadRequestCapn_List(s *capnp.Segment, sz int32) (GetMediaDownloadRequestCapn_List, error)

NewGetMediaDownloadRequestCapn creates a new list of GetMediaDownloadRequestCapn.

func (GetMediaDownloadRequestCapn_List) At

func (GetMediaDownloadRequestCapn_List) Set

func (GetMediaDownloadRequestCapn_List) String

type GetMediaDownloadRequestCapn_Promise

type GetMediaDownloadRequestCapn_Promise struct{ *capnp.Pipeline }

GetMediaDownloadRequestCapn_Promise is a wrapper for a GetMediaDownloadRequestCapn promised by a client call.

func (GetMediaDownloadRequestCapn_Promise) Struct

type GetMediaPreviewURLRequest

type GetMediaPreviewURLRequest struct {
	URL string `json:"url"`
	Ts  int    `json:"ts"`
}

GET /_matrix/media/r0/preview_url

type GetMediaPreviewURLRequestCapn

type GetMediaPreviewURLRequestCapn struct{ capnp.Struct }

func NewGetMediaPreviewURLRequestCapn

func NewGetMediaPreviewURLRequestCapn(s *capnp.Segment) (GetMediaPreviewURLRequestCapn, error)

func NewRootGetMediaPreviewURLRequestCapn

func NewRootGetMediaPreviewURLRequestCapn(s *capnp.Segment) (GetMediaPreviewURLRequestCapn, error)

func ReadRootGetMediaPreviewURLRequestCapn

func ReadRootGetMediaPreviewURLRequestCapn(msg *capnp.Message) (GetMediaPreviewURLRequestCapn, error)

func (GetMediaPreviewURLRequestCapn) HasURL

func (GetMediaPreviewURLRequestCapn) SetTs

func (GetMediaPreviewURLRequestCapn) SetURL

func (GetMediaPreviewURLRequestCapn) String

func (GetMediaPreviewURLRequestCapn) Ts

func (GetMediaPreviewURLRequestCapn) URL

func (GetMediaPreviewURLRequestCapn) URLBytes

func (s GetMediaPreviewURLRequestCapn) URLBytes() ([]byte, error)

type GetMediaPreviewURLRequestCapn_List

type GetMediaPreviewURLRequestCapn_List struct{ capnp.List }

GetMediaPreviewURLRequestCapn_List is a list of GetMediaPreviewURLRequestCapn.

func NewGetMediaPreviewURLRequestCapn_List

func NewGetMediaPreviewURLRequestCapn_List(s *capnp.Segment, sz int32) (GetMediaPreviewURLRequestCapn_List, error)

NewGetMediaPreviewURLRequestCapn creates a new list of GetMediaPreviewURLRequestCapn.

func (GetMediaPreviewURLRequestCapn_List) At

func (GetMediaPreviewURLRequestCapn_List) Set

func (GetMediaPreviewURLRequestCapn_List) String

type GetMediaPreviewURLRequestCapn_Promise

type GetMediaPreviewURLRequestCapn_Promise struct{ *capnp.Pipeline }

GetMediaPreviewURLRequestCapn_Promise is a wrapper for a GetMediaPreviewURLRequestCapn promised by a client call.

func (GetMediaPreviewURLRequestCapn_Promise) Struct

type GetMediaPreviewURLResponse

type GetMediaPreviewURLResponse struct {
	Size  int64  `json:"matrix:image:size"`
	Image string `json:"og:image"`
}

func (*GetMediaPreviewURLResponse) Decode

func (res *GetMediaPreviewURLResponse) Decode(input []byte) error

func (*GetMediaPreviewURLResponse) Encode

func (res *GetMediaPreviewURLResponse) Encode() ([]byte, error)

type GetMediaPreviewURLResponseCapn

type GetMediaPreviewURLResponseCapn struct{ capnp.Struct }

func NewGetMediaPreviewURLResponseCapn

func NewGetMediaPreviewURLResponseCapn(s *capnp.Segment) (GetMediaPreviewURLResponseCapn, error)

func NewRootGetMediaPreviewURLResponseCapn

func NewRootGetMediaPreviewURLResponseCapn(s *capnp.Segment) (GetMediaPreviewURLResponseCapn, error)

func ReadRootGetMediaPreviewURLResponseCapn

func ReadRootGetMediaPreviewURLResponseCapn(msg *capnp.Message) (GetMediaPreviewURLResponseCapn, error)

func (GetMediaPreviewURLResponseCapn) HasImage

func (s GetMediaPreviewURLResponseCapn) HasImage() bool

func (GetMediaPreviewURLResponseCapn) Image

func (GetMediaPreviewURLResponseCapn) ImageBytes

func (s GetMediaPreviewURLResponseCapn) ImageBytes() ([]byte, error)

func (GetMediaPreviewURLResponseCapn) SetImage

func (GetMediaPreviewURLResponseCapn) SetSize

func (GetMediaPreviewURLResponseCapn) Size

func (GetMediaPreviewURLResponseCapn) String

type GetMediaPreviewURLResponseCapn_List

type GetMediaPreviewURLResponseCapn_List struct{ capnp.List }

GetMediaPreviewURLResponseCapn_List is a list of GetMediaPreviewURLResponseCapn.

func NewGetMediaPreviewURLResponseCapn_List

func NewGetMediaPreviewURLResponseCapn_List(s *capnp.Segment, sz int32) (GetMediaPreviewURLResponseCapn_List, error)

NewGetMediaPreviewURLResponseCapn creates a new list of GetMediaPreviewURLResponseCapn.

func (GetMediaPreviewURLResponseCapn_List) At

func (GetMediaPreviewURLResponseCapn_List) Set

func (GetMediaPreviewURLResponseCapn_List) String

type GetMediaPreviewURLResponseCapn_Promise

type GetMediaPreviewURLResponseCapn_Promise struct{ *capnp.Pipeline }

GetMediaPreviewURLResponseCapn_Promise is a wrapper for a GetMediaPreviewURLResponseCapn promised by a client call.

func (GetMediaPreviewURLResponseCapn_Promise) Struct

type GetMediaThumbnailRequest

type GetMediaThumbnailRequest struct {
	ServerName  string `json:"serverName"`
	MediaID     string `json:"mediaId"`
	Width       int    `json:"width"`
	Height      int    `json:"height"`
	Method      int    `json:"method"`
	AllowRemote string `json:"allow_remote"`
}

GET /_matrix/media/r0/thumbnail/{serverName}/{mediaId}

func (*GetMediaThumbnailRequest) Decode

func (externalReq *GetMediaThumbnailRequest) Decode(input []byte) error

func (*GetMediaThumbnailRequest) Encode

func (externalReq *GetMediaThumbnailRequest) Encode() ([]byte, error)

type GetMediaThumbnailRequestCapn

type GetMediaThumbnailRequestCapn struct{ capnp.Struct }

func NewGetMediaThumbnailRequestCapn

func NewGetMediaThumbnailRequestCapn(s *capnp.Segment) (GetMediaThumbnailRequestCapn, error)

func NewRootGetMediaThumbnailRequestCapn

func NewRootGetMediaThumbnailRequestCapn(s *capnp.Segment) (GetMediaThumbnailRequestCapn, error)

func ReadRootGetMediaThumbnailRequestCapn

func ReadRootGetMediaThumbnailRequestCapn(msg *capnp.Message) (GetMediaThumbnailRequestCapn, error)

func (GetMediaThumbnailRequestCapn) AllowRemote

func (s GetMediaThumbnailRequestCapn) AllowRemote() (string, error)

func (GetMediaThumbnailRequestCapn) AllowRemoteBytes

func (s GetMediaThumbnailRequestCapn) AllowRemoteBytes() ([]byte, error)

func (GetMediaThumbnailRequestCapn) HasAllowRemote

func (s GetMediaThumbnailRequestCapn) HasAllowRemote() bool

func (GetMediaThumbnailRequestCapn) HasMediaID

func (s GetMediaThumbnailRequestCapn) HasMediaID() bool

func (GetMediaThumbnailRequestCapn) HasServerName

func (s GetMediaThumbnailRequestCapn) HasServerName() bool

func (GetMediaThumbnailRequestCapn) Height

func (GetMediaThumbnailRequestCapn) MediaID

func (s GetMediaThumbnailRequestCapn) MediaID() (string, error)

func (GetMediaThumbnailRequestCapn) MediaIDBytes

func (s GetMediaThumbnailRequestCapn) MediaIDBytes() ([]byte, error)

func (GetMediaThumbnailRequestCapn) Method

func (GetMediaThumbnailRequestCapn) ServerName

func (s GetMediaThumbnailRequestCapn) ServerName() (string, error)

func (GetMediaThumbnailRequestCapn) ServerNameBytes

func (s GetMediaThumbnailRequestCapn) ServerNameBytes() ([]byte, error)

func (GetMediaThumbnailRequestCapn) SetAllowRemote

func (s GetMediaThumbnailRequestCapn) SetAllowRemote(v string) error

func (GetMediaThumbnailRequestCapn) SetHeight

func (s GetMediaThumbnailRequestCapn) SetHeight(v int64)

func (GetMediaThumbnailRequestCapn) SetMediaID

func (s GetMediaThumbnailRequestCapn) SetMediaID(v string) error

func (GetMediaThumbnailRequestCapn) SetMethod

func (s GetMediaThumbnailRequestCapn) SetMethod(v int64)

func (GetMediaThumbnailRequestCapn) SetServerName

func (s GetMediaThumbnailRequestCapn) SetServerName(v string) error

func (GetMediaThumbnailRequestCapn) SetWidth

func (s GetMediaThumbnailRequestCapn) SetWidth(v int64)

func (GetMediaThumbnailRequestCapn) String

func (GetMediaThumbnailRequestCapn) Width

type GetMediaThumbnailRequestCapn_List

type GetMediaThumbnailRequestCapn_List struct{ capnp.List }

GetMediaThumbnailRequestCapn_List is a list of GetMediaThumbnailRequestCapn.

func NewGetMediaThumbnailRequestCapn_List

func NewGetMediaThumbnailRequestCapn_List(s *capnp.Segment, sz int32) (GetMediaThumbnailRequestCapn_List, error)

NewGetMediaThumbnailRequestCapn creates a new list of GetMediaThumbnailRequestCapn.

func (GetMediaThumbnailRequestCapn_List) At

func (GetMediaThumbnailRequestCapn_List) Set

func (GetMediaThumbnailRequestCapn_List) String

type GetMediaThumbnailRequestCapn_Promise

type GetMediaThumbnailRequestCapn_Promise struct{ *capnp.Pipeline }

GetMediaThumbnailRequestCapn_Promise is a wrapper for a GetMediaThumbnailRequestCapn promised by a client call.

func (GetMediaThumbnailRequestCapn_Promise) Struct

type GetMissingEventsRequest

type GetMissingEventsRequest struct {
	RoomID         string   `json:"roomId"`
	Limit          int      `json:"limit"`
	MinDepth       int64    `json:"min_depth"`
	EarliestEvents []string `json:"earliest_events"`
	LatestEvents   []string `json:"latest_events"`
}

func (*GetMissingEventsRequest) Decode

func (externalReq *GetMissingEventsRequest) Decode(data []byte) error

func (*GetMissingEventsRequest) Encode

func (externalReq *GetMissingEventsRequest) Encode() ([]byte, error)

type GetMissingEventsResponse

type GetMissingEventsResponse struct {
	Events []gomatrixserverlib.Event `json:"events"`
}

func (*GetMissingEventsResponse) Decode

func (res *GetMissingEventsResponse) Decode(input []byte) error

func (*GetMissingEventsResponse) Encode

func (r *GetMissingEventsResponse) Encode() ([]byte, error)

type GetNotificationsRequest

type GetNotificationsRequest struct {
	From  string `json:"from"`
	Limit int    `json:"limit"`
	Only  string `json:"only"`
}

GET /_matrix/client/r0/notifications

type GetNotificationsRequestCapn

type GetNotificationsRequestCapn struct{ capnp.Struct }

func NewGetNotificationsRequestCapn

func NewGetNotificationsRequestCapn(s *capnp.Segment) (GetNotificationsRequestCapn, error)

func NewRootGetNotificationsRequestCapn

func NewRootGetNotificationsRequestCapn(s *capnp.Segment) (GetNotificationsRequestCapn, error)

func ReadRootGetNotificationsRequestCapn

func ReadRootGetNotificationsRequestCapn(msg *capnp.Message) (GetNotificationsRequestCapn, error)

func (GetNotificationsRequestCapn) From

func (GetNotificationsRequestCapn) FromBytes

func (s GetNotificationsRequestCapn) FromBytes() ([]byte, error)

func (GetNotificationsRequestCapn) HasFrom

func (s GetNotificationsRequestCapn) HasFrom() bool

func (GetNotificationsRequestCapn) HasOnly

func (s GetNotificationsRequestCapn) HasOnly() bool

func (GetNotificationsRequestCapn) Limit

func (GetNotificationsRequestCapn) Only

func (GetNotificationsRequestCapn) OnlyBytes

func (s GetNotificationsRequestCapn) OnlyBytes() ([]byte, error)

func (GetNotificationsRequestCapn) SetFrom

func (GetNotificationsRequestCapn) SetLimit

func (s GetNotificationsRequestCapn) SetLimit(v int64)

func (GetNotificationsRequestCapn) SetOnly

func (GetNotificationsRequestCapn) String

type GetNotificationsRequestCapn_List

type GetNotificationsRequestCapn_List struct{ capnp.List }

GetNotificationsRequestCapn_List is a list of GetNotificationsRequestCapn.

func NewGetNotificationsRequestCapn_List

func NewGetNotificationsRequestCapn_List(s *capnp.Segment, sz int32) (GetNotificationsRequestCapn_List, error)

NewGetNotificationsRequestCapn creates a new list of GetNotificationsRequestCapn.

func (GetNotificationsRequestCapn_List) At

func (GetNotificationsRequestCapn_List) Set

func (GetNotificationsRequestCapn_List) String

type GetNotificationsRequestCapn_Promise

type GetNotificationsRequestCapn_Promise struct{ *capnp.Pipeline }

GetNotificationsRequestCapn_Promise is a wrapper for a GetNotificationsRequestCapn promised by a client call.

func (GetNotificationsRequestCapn_Promise) Struct

type GetNotificationsResponse

type GetNotificationsResponse struct {
	NextToken     string         `json:"next_token"`
	Notifications []Notification `json:"notifications"`
}

type GetPresenceListRequest

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

GET /_matrix/client/r0/presence/list/{userId}

func (*GetPresenceListRequest) Decode

func (externalReq *GetPresenceListRequest) Decode(input []byte) error

func (*GetPresenceListRequest) Encode

func (externalReq *GetPresenceListRequest) Encode() ([]byte, error)

type GetPresenceListRequestCapn

type GetPresenceListRequestCapn struct{ capnp.Struct }

func NewGetPresenceListRequestCapn

func NewGetPresenceListRequestCapn(s *capnp.Segment) (GetPresenceListRequestCapn, error)

func NewRootGetPresenceListRequestCapn

func NewRootGetPresenceListRequestCapn(s *capnp.Segment) (GetPresenceListRequestCapn, error)

func ReadRootGetPresenceListRequestCapn

func ReadRootGetPresenceListRequestCapn(msg *capnp.Message) (GetPresenceListRequestCapn, error)

func (GetPresenceListRequestCapn) HasUserID

func (s GetPresenceListRequestCapn) HasUserID() bool

func (GetPresenceListRequestCapn) SetUserID

func (s GetPresenceListRequestCapn) SetUserID(v string) error

func (GetPresenceListRequestCapn) String

func (GetPresenceListRequestCapn) UserID

func (s GetPresenceListRequestCapn) UserID() (string, error)

func (GetPresenceListRequestCapn) UserIDBytes

func (s GetPresenceListRequestCapn) UserIDBytes() ([]byte, error)

type GetPresenceListRequestCapn_List

type GetPresenceListRequestCapn_List struct{ capnp.List }

GetPresenceListRequestCapn_List is a list of GetPresenceListRequestCapn.

func NewGetPresenceListRequestCapn_List

func NewGetPresenceListRequestCapn_List(s *capnp.Segment, sz int32) (GetPresenceListRequestCapn_List, error)

NewGetPresenceListRequestCapn creates a new list of GetPresenceListRequestCapn.

func (GetPresenceListRequestCapn_List) At

func (GetPresenceListRequestCapn_List) Set

func (GetPresenceListRequestCapn_List) String

type GetPresenceListRequestCapn_Promise

type GetPresenceListRequestCapn_Promise struct{ *capnp.Pipeline }

GetPresenceListRequestCapn_Promise is a wrapper for a GetPresenceListRequestCapn promised by a client call.

func (GetPresenceListRequestCapn_Promise) Struct

type GetPresenceListResponse

type GetPresenceListResponse []PresenceJSON

func (*GetPresenceListResponse) Decode

func (res *GetPresenceListResponse) Decode(input []byte) error

func (*GetPresenceListResponse) Encode

func (res *GetPresenceListResponse) Encode() ([]byte, error)

type GetPresenceListResponseCapn

type GetPresenceListResponseCapn struct{ capnp.Struct }

func NewGetPresenceListResponseCapn

func NewGetPresenceListResponseCapn(s *capnp.Segment) (GetPresenceListResponseCapn, error)

func NewRootGetPresenceListResponseCapn

func NewRootGetPresenceListResponseCapn(s *capnp.Segment) (GetPresenceListResponseCapn, error)

func ReadRootGetPresenceListResponseCapn

func ReadRootGetPresenceListResponseCapn(msg *capnp.Message) (GetPresenceListResponseCapn, error)

func (GetPresenceListResponseCapn) HasPresenceList

func (s GetPresenceListResponseCapn) HasPresenceList() bool

func (GetPresenceListResponseCapn) NewPresenceList

NewPresenceList sets the presenceList field to a newly allocated PresenceJSONCapn_List, preferring placement in s's segment.

func (GetPresenceListResponseCapn) PresenceList

func (GetPresenceListResponseCapn) SetPresenceList

func (GetPresenceListResponseCapn) String

type GetPresenceListResponseCapn_List

type GetPresenceListResponseCapn_List struct{ capnp.List }

GetPresenceListResponseCapn_List is a list of GetPresenceListResponseCapn.

func NewGetPresenceListResponseCapn_List

func NewGetPresenceListResponseCapn_List(s *capnp.Segment, sz int32) (GetPresenceListResponseCapn_List, error)

NewGetPresenceListResponseCapn creates a new list of GetPresenceListResponseCapn.

func (GetPresenceListResponseCapn_List) At

func (GetPresenceListResponseCapn_List) Set

func (GetPresenceListResponseCapn_List) String

type GetPresenceListResponseCapn_Promise

type GetPresenceListResponseCapn_Promise struct{ *capnp.Pipeline }

GetPresenceListResponseCapn_Promise is a wrapper for a GetPresenceListResponseCapn promised by a client call.

func (GetPresenceListResponseCapn_Promise) Struct

type GetPresenceRequest

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

GET /_matrix/client/r0/presence/{userId}/status

func (*GetPresenceRequest) Decode

func (externalReq *GetPresenceRequest) Decode(input []byte) error

func (*GetPresenceRequest) Encode

func (externalReq *GetPresenceRequest) Encode() ([]byte, error)

type GetPresenceRequestCapn

type GetPresenceRequestCapn struct{ capnp.Struct }

func NewGetPresenceRequestCapn

func NewGetPresenceRequestCapn(s *capnp.Segment) (GetPresenceRequestCapn, error)

func NewRootGetPresenceRequestCapn

func NewRootGetPresenceRequestCapn(s *capnp.Segment) (GetPresenceRequestCapn, error)

func ReadRootGetPresenceRequestCapn

func ReadRootGetPresenceRequestCapn(msg *capnp.Message) (GetPresenceRequestCapn, error)

func (GetPresenceRequestCapn) HasUserID

func (s GetPresenceRequestCapn) HasUserID() bool

func (GetPresenceRequestCapn) SetUserID

func (s GetPresenceRequestCapn) SetUserID(v string) error

func (GetPresenceRequestCapn) String

func (s GetPresenceRequestCapn) String() string

func (GetPresenceRequestCapn) UserID

func (s GetPresenceRequestCapn) UserID() (string, error)

func (GetPresenceRequestCapn) UserIDBytes

func (s GetPresenceRequestCapn) UserIDBytes() ([]byte, error)

type GetPresenceRequestCapn_List

type GetPresenceRequestCapn_List struct{ capnp.List }

GetPresenceRequestCapn_List is a list of GetPresenceRequestCapn.

func NewGetPresenceRequestCapn_List

func NewGetPresenceRequestCapn_List(s *capnp.Segment, sz int32) (GetPresenceRequestCapn_List, error)

NewGetPresenceRequestCapn creates a new list of GetPresenceRequestCapn.

func (GetPresenceRequestCapn_List) At

func (GetPresenceRequestCapn_List) Set

func (GetPresenceRequestCapn_List) String

type GetPresenceRequestCapn_Promise

type GetPresenceRequestCapn_Promise struct{ *capnp.Pipeline }

GetPresenceRequestCapn_Promise is a wrapper for a GetPresenceRequestCapn promised by a client call.

func (GetPresenceRequestCapn_Promise) Struct

type GetPresenceResponse

type GetPresenceResponse struct {
	Presence        string `json:"presence"`
	LastActiveAgo   int64  `json:"last_active_ago"`
	StatusMsg       string `json:"status_msg"`
	ExtStatusMsg    string `json:"ext_status_msg"`
	CurrentlyActive bool   `json:"currently_active"`
}

func (*GetPresenceResponse) Decode

func (res *GetPresenceResponse) Decode(input []byte) error

func (*GetPresenceResponse) Encode

func (res *GetPresenceResponse) Encode() ([]byte, error)

type GetPresenceResponseCapn

type GetPresenceResponseCapn struct{ capnp.Struct }

func NewGetPresenceResponseCapn

func NewGetPresenceResponseCapn(s *capnp.Segment) (GetPresenceResponseCapn, error)

func NewRootGetPresenceResponseCapn

func NewRootGetPresenceResponseCapn(s *capnp.Segment) (GetPresenceResponseCapn, error)

func ReadRootGetPresenceResponseCapn

func ReadRootGetPresenceResponseCapn(msg *capnp.Message) (GetPresenceResponseCapn, error)

func (GetPresenceResponseCapn) CurrentlyActive

func (s GetPresenceResponseCapn) CurrentlyActive() bool

func (GetPresenceResponseCapn) ExtStatusMsg

func (s GetPresenceResponseCapn) ExtStatusMsg() (string, error)

func (GetPresenceResponseCapn) ExtStatusMsgBytes

func (s GetPresenceResponseCapn) ExtStatusMsgBytes() ([]byte, error)

func (GetPresenceResponseCapn) HasExtStatusMsg

func (s GetPresenceResponseCapn) HasExtStatusMsg() bool

func (GetPresenceResponseCapn) HasPresence

func (s GetPresenceResponseCapn) HasPresence() bool

func (GetPresenceResponseCapn) HasStatusMsg

func (s GetPresenceResponseCapn) HasStatusMsg() bool

func (GetPresenceResponseCapn) LastActiveAgo

func (s GetPresenceResponseCapn) LastActiveAgo() int64

func (GetPresenceResponseCapn) Presence

func (s GetPresenceResponseCapn) Presence() (string, error)

func (GetPresenceResponseCapn) PresenceBytes

func (s GetPresenceResponseCapn) PresenceBytes() ([]byte, error)

func (GetPresenceResponseCapn) SetCurrentlyActive

func (s GetPresenceResponseCapn) SetCurrentlyActive(v bool)

func (GetPresenceResponseCapn) SetExtStatusMsg

func (s GetPresenceResponseCapn) SetExtStatusMsg(v string) error

func (GetPresenceResponseCapn) SetLastActiveAgo

func (s GetPresenceResponseCapn) SetLastActiveAgo(v int64)

func (GetPresenceResponseCapn) SetPresence

func (s GetPresenceResponseCapn) SetPresence(v string) error

func (GetPresenceResponseCapn) SetStatusMsg

func (s GetPresenceResponseCapn) SetStatusMsg(v string) error

func (GetPresenceResponseCapn) StatusMsg

func (s GetPresenceResponseCapn) StatusMsg() (string, error)

func (GetPresenceResponseCapn) StatusMsgBytes

func (s GetPresenceResponseCapn) StatusMsgBytes() ([]byte, error)

func (GetPresenceResponseCapn) String

func (s GetPresenceResponseCapn) String() string

type GetPresenceResponseCapn_List

type GetPresenceResponseCapn_List struct{ capnp.List }

GetPresenceResponseCapn_List is a list of GetPresenceResponseCapn.

func NewGetPresenceResponseCapn_List

func NewGetPresenceResponseCapn_List(s *capnp.Segment, sz int32) (GetPresenceResponseCapn_List, error)

NewGetPresenceResponseCapn creates a new list of GetPresenceResponseCapn.

func (GetPresenceResponseCapn_List) At

func (GetPresenceResponseCapn_List) Set

func (GetPresenceResponseCapn_List) String

type GetPresenceResponseCapn_Promise

type GetPresenceResponseCapn_Promise struct{ *capnp.Pipeline }

GetPresenceResponseCapn_Promise is a wrapper for a GetPresenceResponseCapn promised by a client call.

func (GetPresenceResponseCapn_Promise) Struct

type GetProfileRequest

type GetProfileRequest struct {
	UserID string `json:"userID"`
}

GET /_matrix/client/r0/profile/{userID}

func (*GetProfileRequest) Decode

func (externalReq *GetProfileRequest) Decode(input []byte) error

func (*GetProfileRequest) Encode

func (externalReq *GetProfileRequest) Encode() ([]byte, error)

type GetProfileRequestCapn

type GetProfileRequestCapn struct{ capnp.Struct }

func NewGetProfileRequestCapn

func NewGetProfileRequestCapn(s *capnp.Segment) (GetProfileRequestCapn, error)

func NewRootGetProfileRequestCapn

func NewRootGetProfileRequestCapn(s *capnp.Segment) (GetProfileRequestCapn, error)

func ReadRootGetProfileRequestCapn

func ReadRootGetProfileRequestCapn(msg *capnp.Message) (GetProfileRequestCapn, error)

func (GetProfileRequestCapn) HasUserID

func (s GetProfileRequestCapn) HasUserID() bool

func (GetProfileRequestCapn) SetUserID

func (s GetProfileRequestCapn) SetUserID(v string) error

func (GetProfileRequestCapn) String

func (s GetProfileRequestCapn) String() string

func (GetProfileRequestCapn) UserID

func (s GetProfileRequestCapn) UserID() (string, error)

func (GetProfileRequestCapn) UserIDBytes

func (s GetProfileRequestCapn) UserIDBytes() ([]byte, error)

type GetProfileRequestCapn_List

type GetProfileRequestCapn_List struct{ capnp.List }

GetProfileRequestCapn_List is a list of GetProfileRequestCapn.

func NewGetProfileRequestCapn_List

func NewGetProfileRequestCapn_List(s *capnp.Segment, sz int32) (GetProfileRequestCapn_List, error)

NewGetProfileRequestCapn creates a new list of GetProfileRequestCapn.

func (GetProfileRequestCapn_List) At

func (GetProfileRequestCapn_List) Set

func (GetProfileRequestCapn_List) String

type GetProfileRequestCapn_Promise

type GetProfileRequestCapn_Promise struct{ *capnp.Pipeline }

GetProfileRequestCapn_Promise is a wrapper for a GetProfileRequestCapn promised by a client call.

func (GetProfileRequestCapn_Promise) Struct

type GetProfileResponse

type GetProfileResponse struct {
	AvatarURL    string `json:"avatar_url"`
	DisplayName  string `json:"displayname"`
	Status       string `json:"status,omitempty"`
	StatusMsg    string `json:"status_msg,omitempty"`
	ExtStatusMsg string `json:"ext_status_msg,omitempty"`
}

func (*GetProfileResponse) Decode

func (res *GetProfileResponse) Decode(input []byte) error

func (*GetProfileResponse) Encode

func (res *GetProfileResponse) Encode() ([]byte, error)

type GetProfileResponseCapn

type GetProfileResponseCapn struct{ capnp.Struct }

func NewGetProfileResponseCapn

func NewGetProfileResponseCapn(s *capnp.Segment) (GetProfileResponseCapn, error)

func NewRootGetProfileResponseCapn

func NewRootGetProfileResponseCapn(s *capnp.Segment) (GetProfileResponseCapn, error)

func ReadRootGetProfileResponseCapn

func ReadRootGetProfileResponseCapn(msg *capnp.Message) (GetProfileResponseCapn, error)

func (GetProfileResponseCapn) AvatarURL

func (s GetProfileResponseCapn) AvatarURL() (string, error)

func (GetProfileResponseCapn) AvatarURLBytes

func (s GetProfileResponseCapn) AvatarURLBytes() ([]byte, error)

func (GetProfileResponseCapn) DisplayName

func (s GetProfileResponseCapn) DisplayName() (string, error)

func (GetProfileResponseCapn) DisplayNameBytes

func (s GetProfileResponseCapn) DisplayNameBytes() ([]byte, error)

func (GetProfileResponseCapn) HasAvatarURL

func (s GetProfileResponseCapn) HasAvatarURL() bool

func (GetProfileResponseCapn) HasDisplayName

func (s GetProfileResponseCapn) HasDisplayName() bool

func (GetProfileResponseCapn) SetAvatarURL

func (s GetProfileResponseCapn) SetAvatarURL(v string) error

func (GetProfileResponseCapn) SetDisplayName

func (s GetProfileResponseCapn) SetDisplayName(v string) error

func (GetProfileResponseCapn) String

func (s GetProfileResponseCapn) String() string

type GetProfileResponseCapn_List

type GetProfileResponseCapn_List struct{ capnp.List }

GetProfileResponseCapn_List is a list of GetProfileResponseCapn.

func NewGetProfileResponseCapn_List

func NewGetProfileResponseCapn_List(s *capnp.Segment, sz int32) (GetProfileResponseCapn_List, error)

NewGetProfileResponseCapn creates a new list of GetProfileResponseCapn.

func (GetProfileResponseCapn_List) At

func (GetProfileResponseCapn_List) Set

func (GetProfileResponseCapn_List) String

type GetProfileResponseCapn_Promise

type GetProfileResponseCapn_Promise struct{ *capnp.Pipeline }

GetProfileResponseCapn_Promise is a wrapper for a GetProfileResponseCapn promised by a client call.

func (GetProfileResponseCapn_Promise) Struct

type GetProfilesRequest

type GetProfilesRequest struct {
	UserIDs []string `json:"user_ids"`
}

GET /_matrix/client/r0/profiles

func (*GetProfilesRequest) Decode

func (externalReq *GetProfilesRequest) Decode(data []byte) error

func (*GetProfilesRequest) Encode

func (externalReq *GetProfilesRequest) Encode() ([]byte, error)

type GetProfilesResponse

type GetProfilesResponse struct {
	Profiles []ProfileItem `json:"profiles"`
}

func (*GetProfilesResponse) Decode

func (res *GetProfilesResponse) Decode(input []byte) error

func (*GetProfilesResponse) Encode

func (res *GetProfilesResponse) Encode() ([]byte, error)

type GetPublicRoomsRequest

type GetPublicRoomsRequest struct {
	Limit  int64  `json:"limit"`
	Since  string `json:"since"`
	Filter filter `json:"filter,omitempty"`
}

GET /_matrix/client/r0/publicRooms

func (*GetPublicRoomsRequest) Decode

func (externalReq *GetPublicRoomsRequest) Decode(input []byte) error

func (*GetPublicRoomsRequest) Encode

func (externalReq *GetPublicRoomsRequest) Encode() ([]byte, error)

type GetPublicRoomsRequestCapn

type GetPublicRoomsRequestCapn struct{ capnp.Struct }

func NewGetPublicRoomsRequestCapn

func NewGetPublicRoomsRequestCapn(s *capnp.Segment) (GetPublicRoomsRequestCapn, error)

func NewRootGetPublicRoomsRequestCapn

func NewRootGetPublicRoomsRequestCapn(s *capnp.Segment) (GetPublicRoomsRequestCapn, error)

func ReadRootGetPublicRoomsRequestCapn

func ReadRootGetPublicRoomsRequestCapn(msg *capnp.Message) (GetPublicRoomsRequestCapn, error)

func (GetPublicRoomsRequestCapn) Filter

func (GetPublicRoomsRequestCapn) HasFilter

func (s GetPublicRoomsRequestCapn) HasFilter() bool

func (GetPublicRoomsRequestCapn) HasSince

func (s GetPublicRoomsRequestCapn) HasSince() bool

func (GetPublicRoomsRequestCapn) Limit

func (s GetPublicRoomsRequestCapn) Limit() int64

func (GetPublicRoomsRequestCapn) NewFilter

func (s GetPublicRoomsRequestCapn) NewFilter() (FilterCapn, error)

NewFilter sets the filter field to a newly allocated FilterCapn struct, preferring placement in s's segment.

func (GetPublicRoomsRequestCapn) SetFilter

func (GetPublicRoomsRequestCapn) SetLimit

func (s GetPublicRoomsRequestCapn) SetLimit(v int64)

func (GetPublicRoomsRequestCapn) SetSince

func (s GetPublicRoomsRequestCapn) SetSince(v string) error

func (GetPublicRoomsRequestCapn) Since

func (s GetPublicRoomsRequestCapn) Since() (string, error)

func (GetPublicRoomsRequestCapn) SinceBytes

func (s GetPublicRoomsRequestCapn) SinceBytes() ([]byte, error)

func (GetPublicRoomsRequestCapn) String

func (s GetPublicRoomsRequestCapn) String() string

type GetPublicRoomsRequestCapn_List

type GetPublicRoomsRequestCapn_List struct{ capnp.List }

GetPublicRoomsRequestCapn_List is a list of GetPublicRoomsRequestCapn.

func NewGetPublicRoomsRequestCapn_List

func NewGetPublicRoomsRequestCapn_List(s *capnp.Segment, sz int32) (GetPublicRoomsRequestCapn_List, error)

NewGetPublicRoomsRequestCapn creates a new list of GetPublicRoomsRequestCapn.

func (GetPublicRoomsRequestCapn_List) At

func (GetPublicRoomsRequestCapn_List) Set

func (GetPublicRoomsRequestCapn_List) String

type GetPublicRoomsRequestCapn_Promise

type GetPublicRoomsRequestCapn_Promise struct{ *capnp.Pipeline }

GetPublicRoomsRequestCapn_Promise is a wrapper for a GetPublicRoomsRequestCapn promised by a client call.

func (GetPublicRoomsRequestCapn_Promise) Filter

func (GetPublicRoomsRequestCapn_Promise) Struct

type GetPublicRoomsResponse

type GetPublicRoomsResponse struct {
	Chunk     []PublicRoomsChunk `json:"chunk"`
	NextBatch string             `json:"next_batch,omitempty"`
	PrevBatch string             `json:"prev_batch,omitempty"`
	Estimate  int64              `json:"total_room_count_estimate,omitempty"`
}

func (*GetPublicRoomsResponse) Decode

func (res *GetPublicRoomsResponse) Decode(input []byte) error

func (*GetPublicRoomsResponse) Encode

func (res *GetPublicRoomsResponse) Encode() ([]byte, error)

type GetPublicRoomsResponseCapn

type GetPublicRoomsResponseCapn struct{ capnp.Struct }

func NewGetPublicRoomsResponseCapn

func NewGetPublicRoomsResponseCapn(s *capnp.Segment) (GetPublicRoomsResponseCapn, error)

func NewRootGetPublicRoomsResponseCapn

func NewRootGetPublicRoomsResponseCapn(s *capnp.Segment) (GetPublicRoomsResponseCapn, error)

func ReadRootGetPublicRoomsResponseCapn

func ReadRootGetPublicRoomsResponseCapn(msg *capnp.Message) (GetPublicRoomsResponseCapn, error)

func (GetPublicRoomsResponseCapn) Chunk

func (GetPublicRoomsResponseCapn) HasChunk

func (s GetPublicRoomsResponseCapn) HasChunk() bool

func (GetPublicRoomsResponseCapn) HasNextBatch

func (s GetPublicRoomsResponseCapn) HasNextBatch() bool

func (GetPublicRoomsResponseCapn) HasPrevBatch

func (s GetPublicRoomsResponseCapn) HasPrevBatch() bool

func (GetPublicRoomsResponseCapn) NewChunk

NewChunk sets the chunk field to a newly allocated PublicRoomsChunkCapn_List, preferring placement in s's segment.

func (GetPublicRoomsResponseCapn) NextBatch

func (s GetPublicRoomsResponseCapn) NextBatch() (string, error)

func (GetPublicRoomsResponseCapn) NextBatchBytes

func (s GetPublicRoomsResponseCapn) NextBatchBytes() ([]byte, error)

func (GetPublicRoomsResponseCapn) PrevBatch

func (s GetPublicRoomsResponseCapn) PrevBatch() (string, error)

func (GetPublicRoomsResponseCapn) PrevBatchBytes

func (s GetPublicRoomsResponseCapn) PrevBatchBytes() ([]byte, error)

func (GetPublicRoomsResponseCapn) SetChunk

func (GetPublicRoomsResponseCapn) SetNextBatch

func (s GetPublicRoomsResponseCapn) SetNextBatch(v string) error

func (GetPublicRoomsResponseCapn) SetPrevBatch

func (s GetPublicRoomsResponseCapn) SetPrevBatch(v string) error

func (GetPublicRoomsResponseCapn) SetTotal

func (s GetPublicRoomsResponseCapn) SetTotal(v int64)

func (GetPublicRoomsResponseCapn) String

func (GetPublicRoomsResponseCapn) Total

type GetPublicRoomsResponseCapn_List

type GetPublicRoomsResponseCapn_List struct{ capnp.List }

GetPublicRoomsResponseCapn_List is a list of GetPublicRoomsResponseCapn.

func NewGetPublicRoomsResponseCapn_List

func NewGetPublicRoomsResponseCapn_List(s *capnp.Segment, sz int32) (GetPublicRoomsResponseCapn_List, error)

NewGetPublicRoomsResponseCapn creates a new list of GetPublicRoomsResponseCapn.

func (GetPublicRoomsResponseCapn_List) At

func (GetPublicRoomsResponseCapn_List) Set

func (GetPublicRoomsResponseCapn_List) String

type GetPublicRoomsResponseCapn_Promise

type GetPublicRoomsResponseCapn_Promise struct{ *capnp.Pipeline }

GetPublicRoomsResponseCapn_Promise is a wrapper for a GetPublicRoomsResponseCapn promised by a client call.

func (GetPublicRoomsResponseCapn_Promise) Struct

type GetPushersResponse

type GetPushersResponse struct {
	Pusher []Pusher `json:"pushers"`
}

GET /_matrix/client/r0/pushers

func (*GetPushersResponse) Decode

func (res *GetPushersResponse) Decode(input []byte) error

func (*GetPushersResponse) Encode

func (res *GetPushersResponse) Encode() ([]byte, error)

type GetPushersResponseCapn

type GetPushersResponseCapn struct{ capnp.Struct }

func NewGetPushersResponseCapn

func NewGetPushersResponseCapn(s *capnp.Segment) (GetPushersResponseCapn, error)

func NewRootGetPushersResponseCapn

func NewRootGetPushersResponseCapn(s *capnp.Segment) (GetPushersResponseCapn, error)

func ReadRootGetPushersResponseCapn

func ReadRootGetPushersResponseCapn(msg *capnp.Message) (GetPushersResponseCapn, error)

func (GetPushersResponseCapn) HasPusher

func (s GetPushersResponseCapn) HasPusher() bool

func (GetPushersResponseCapn) NewPusher

NewPusher sets the pusher field to a newly allocated PusherCapn_List, preferring placement in s's segment.

func (GetPushersResponseCapn) Pusher

func (GetPushersResponseCapn) SetPusher

func (GetPushersResponseCapn) String

func (s GetPushersResponseCapn) String() string

type GetPushersResponseCapn_List

type GetPushersResponseCapn_List struct{ capnp.List }

GetPushersResponseCapn_List is a list of GetPushersResponseCapn.

func NewGetPushersResponseCapn_List

func NewGetPushersResponseCapn_List(s *capnp.Segment, sz int32) (GetPushersResponseCapn_List, error)

NewGetPushersResponseCapn creates a new list of GetPushersResponseCapn.

func (GetPushersResponseCapn_List) At

func (GetPushersResponseCapn_List) Set

func (GetPushersResponseCapn_List) String

type GetPushersResponseCapn_Promise

type GetPushersResponseCapn_Promise struct{ *capnp.Pipeline }

GetPushersResponseCapn_Promise is a wrapper for a GetPushersResponseCapn promised by a client call.

func (GetPushersResponseCapn_Promise) Struct

type GetPushrulesActionsByIDRequest

type GetPushrulesActionsByIDRequest struct {
	Scope  string `json:"scope"`
	Kind   string `json:"kind"`
	RuleID string `json:"ruleId"`
}

GET /_matrix/client/r0/pushrules/{scope}/{kind}/{ruleId}/actions

func (*GetPushrulesActionsByIDRequest) Decode

func (externalReq *GetPushrulesActionsByIDRequest) Decode(input []byte) error

func (*GetPushrulesActionsByIDRequest) Encode

func (externalReq *GetPushrulesActionsByIDRequest) Encode() ([]byte, error)

type GetPushrulesActionsByIDRequestCapn

type GetPushrulesActionsByIDRequestCapn struct{ capnp.Struct }

func NewGetPushrulesActionsByIDRequestCapn

func NewGetPushrulesActionsByIDRequestCapn(s *capnp.Segment) (GetPushrulesActionsByIDRequestCapn, error)

func NewRootGetPushrulesActionsByIDRequestCapn

func NewRootGetPushrulesActionsByIDRequestCapn(s *capnp.Segment) (GetPushrulesActionsByIDRequestCapn, error)

func ReadRootGetPushrulesActionsByIDRequestCapn

func ReadRootGetPushrulesActionsByIDRequestCapn(msg *capnp.Message) (GetPushrulesActionsByIDRequestCapn, error)

func (GetPushrulesActionsByIDRequestCapn) HasKind

func (GetPushrulesActionsByIDRequestCapn) HasRuleID

func (GetPushrulesActionsByIDRequestCapn) HasScope

func (GetPushrulesActionsByIDRequestCapn) Kind

func (GetPushrulesActionsByIDRequestCapn) KindBytes

func (s GetPushrulesActionsByIDRequestCapn) KindBytes() ([]byte, error)

func (GetPushrulesActionsByIDRequestCapn) RuleID

func (GetPushrulesActionsByIDRequestCapn) RuleIDBytes

func (s GetPushrulesActionsByIDRequestCapn) RuleIDBytes() ([]byte, error)

func (GetPushrulesActionsByIDRequestCapn) Scope

func (GetPushrulesActionsByIDRequestCapn) ScopeBytes

func (s GetPushrulesActionsByIDRequestCapn) ScopeBytes() ([]byte, error)

func (GetPushrulesActionsByIDRequestCapn) SetKind

func (GetPushrulesActionsByIDRequestCapn) SetRuleID

func (GetPushrulesActionsByIDRequestCapn) SetScope

func (GetPushrulesActionsByIDRequestCapn) String

type GetPushrulesActionsByIDRequestCapn_List

type GetPushrulesActionsByIDRequestCapn_List struct{ capnp.List }

GetPushrulesActionsByIDRequestCapn_List is a list of GetPushrulesActionsByIDRequestCapn.

func NewGetPushrulesActionsByIDRequestCapn_List

func NewGetPushrulesActionsByIDRequestCapn_List(s *capnp.Segment, sz int32) (GetPushrulesActionsByIDRequestCapn_List, error)

NewGetPushrulesActionsByIDRequestCapn creates a new list of GetPushrulesActionsByIDRequestCapn.

func (GetPushrulesActionsByIDRequestCapn_List) At

func (GetPushrulesActionsByIDRequestCapn_List) Set

func (GetPushrulesActionsByIDRequestCapn_List) String

type GetPushrulesActionsByIDRequestCapn_Promise

type GetPushrulesActionsByIDRequestCapn_Promise struct{ *capnp.Pipeline }

GetPushrulesActionsByIDRequestCapn_Promise is a wrapper for a GetPushrulesActionsByIDRequestCapn promised by a client call.

func (GetPushrulesActionsByIDRequestCapn_Promise) Struct

type GetPushrulesActionsByIDResponse

type GetPushrulesActionsByIDResponse struct {
	Actions []interface{} `json:"actions"`
}

func (*GetPushrulesActionsByIDResponse) Decode

func (res *GetPushrulesActionsByIDResponse) Decode(input []byte) error

func (*GetPushrulesActionsByIDResponse) Encode

func (res *GetPushrulesActionsByIDResponse) Encode() ([]byte, error)

type GetPushrulesActionsByIDResponseCapn

type GetPushrulesActionsByIDResponseCapn struct{ capnp.Struct }

func NewGetPushrulesActionsByIDResponseCapn

func NewGetPushrulesActionsByIDResponseCapn(s *capnp.Segment) (GetPushrulesActionsByIDResponseCapn, error)

func NewRootGetPushrulesActionsByIDResponseCapn

func NewRootGetPushrulesActionsByIDResponseCapn(s *capnp.Segment) (GetPushrulesActionsByIDResponseCapn, error)

func ReadRootGetPushrulesActionsByIDResponseCapn

func ReadRootGetPushrulesActionsByIDResponseCapn(msg *capnp.Message) (GetPushrulesActionsByIDResponseCapn, error)

func (GetPushrulesActionsByIDResponseCapn) Actions

func (GetPushrulesActionsByIDResponseCapn) HasActions

func (GetPushrulesActionsByIDResponseCapn) NewActions

NewActions sets the actions field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (GetPushrulesActionsByIDResponseCapn) SetActions

func (GetPushrulesActionsByIDResponseCapn) String

type GetPushrulesActionsByIDResponseCapn_List

type GetPushrulesActionsByIDResponseCapn_List struct{ capnp.List }

GetPushrulesActionsByIDResponseCapn_List is a list of GetPushrulesActionsByIDResponseCapn.

func NewGetPushrulesActionsByIDResponseCapn_List

func NewGetPushrulesActionsByIDResponseCapn_List(s *capnp.Segment, sz int32) (GetPushrulesActionsByIDResponseCapn_List, error)

NewGetPushrulesActionsByIDResponseCapn creates a new list of GetPushrulesActionsByIDResponseCapn.

func (GetPushrulesActionsByIDResponseCapn_List) At

func (GetPushrulesActionsByIDResponseCapn_List) Set

func (GetPushrulesActionsByIDResponseCapn_List) String

type GetPushrulesActionsByIDResponseCapn_Promise

type GetPushrulesActionsByIDResponseCapn_Promise struct{ *capnp.Pipeline }

GetPushrulesActionsByIDResponseCapn_Promise is a wrapper for a GetPushrulesActionsByIDResponseCapn promised by a client call.

func (GetPushrulesActionsByIDResponseCapn_Promise) Struct

type GetPushrulesByIDRequest

type GetPushrulesByIDRequest struct {
	Scope  string `json:"scope"`
	Kind   string `json:"kind"`
	RuleID string `json:"ruleId"`
}

GET /_matrix/client/r0/pushrules/{scope}/{kind}/{ruleId}

func (*GetPushrulesByIDRequest) Decode

func (externalReq *GetPushrulesByIDRequest) Decode(input []byte) error

func (*GetPushrulesByIDRequest) Encode

func (externalReq *GetPushrulesByIDRequest) Encode() ([]byte, error)

type GetPushrulesByIDRequestCapn

type GetPushrulesByIDRequestCapn struct{ capnp.Struct }

func NewGetPushrulesByIDRequestCapn

func NewGetPushrulesByIDRequestCapn(s *capnp.Segment) (GetPushrulesByIDRequestCapn, error)

func NewRootGetPushrulesByIDRequestCapn

func NewRootGetPushrulesByIDRequestCapn(s *capnp.Segment) (GetPushrulesByIDRequestCapn, error)

func ReadRootGetPushrulesByIDRequestCapn

func ReadRootGetPushrulesByIDRequestCapn(msg *capnp.Message) (GetPushrulesByIDRequestCapn, error)

func (GetPushrulesByIDRequestCapn) HasKind

func (s GetPushrulesByIDRequestCapn) HasKind() bool

func (GetPushrulesByIDRequestCapn) HasRuleID

func (s GetPushrulesByIDRequestCapn) HasRuleID() bool

func (GetPushrulesByIDRequestCapn) HasScope

func (s GetPushrulesByIDRequestCapn) HasScope() bool

func (GetPushrulesByIDRequestCapn) Kind

func (GetPushrulesByIDRequestCapn) KindBytes

func (s GetPushrulesByIDRequestCapn) KindBytes() ([]byte, error)

func (GetPushrulesByIDRequestCapn) RuleID

func (GetPushrulesByIDRequestCapn) RuleIDBytes

func (s GetPushrulesByIDRequestCapn) RuleIDBytes() ([]byte, error)

func (GetPushrulesByIDRequestCapn) Scope

func (GetPushrulesByIDRequestCapn) ScopeBytes

func (s GetPushrulesByIDRequestCapn) ScopeBytes() ([]byte, error)

func (GetPushrulesByIDRequestCapn) SetKind

func (GetPushrulesByIDRequestCapn) SetRuleID

func (s GetPushrulesByIDRequestCapn) SetRuleID(v string) error

func (GetPushrulesByIDRequestCapn) SetScope

func (GetPushrulesByIDRequestCapn) String

type GetPushrulesByIDRequestCapn_List

type GetPushrulesByIDRequestCapn_List struct{ capnp.List }

GetPushrulesByIDRequestCapn_List is a list of GetPushrulesByIDRequestCapn.

func NewGetPushrulesByIDRequestCapn_List

func NewGetPushrulesByIDRequestCapn_List(s *capnp.Segment, sz int32) (GetPushrulesByIDRequestCapn_List, error)

NewGetPushrulesByIDRequestCapn creates a new list of GetPushrulesByIDRequestCapn.

func (GetPushrulesByIDRequestCapn_List) At

func (GetPushrulesByIDRequestCapn_List) Set

func (GetPushrulesByIDRequestCapn_List) String

type GetPushrulesByIDRequestCapn_Promise

type GetPushrulesByIDRequestCapn_Promise struct{ *capnp.Pipeline }

GetPushrulesByIDRequestCapn_Promise is a wrapper for a GetPushrulesByIDRequestCapn promised by a client call.

func (GetPushrulesByIDRequestCapn_Promise) Struct

type GetPushrulesByIDResponse

type GetPushrulesByIDResponse struct {
	Actions    []interface{}   `json:"actions,omitempty"`
	Default    bool            `json:"default"`
	Enabled    bool            `json:"enabled"`
	RuleID     string          `json:"rule_id,omitempty"`
	Conditions []PushCondition `json:"conditions,omitempty"` // TODO: 有时需要,有时不能要
	Pattern    string          `json:"pattern,omitempty"`
}

func (*GetPushrulesByIDResponse) Decode

func (res *GetPushrulesByIDResponse) Decode(input []byte) error

func (*GetPushrulesByIDResponse) Encode

func (res *GetPushrulesByIDResponse) Encode() ([]byte, error)

type GetPushrulesEnabledByIDRequest

type GetPushrulesEnabledByIDRequest struct {
	Scope  string `json:"scope"`
	Kind   string `json:"kind"`
	RuleID string `json:"ruleId"`
}

GET /_matrix/client/r0/pushrules/{scope}/{kind}/{ruleId}/enabled

func (*GetPushrulesEnabledByIDRequest) Decode

func (externalReq *GetPushrulesEnabledByIDRequest) Decode(input []byte) error

func (*GetPushrulesEnabledByIDRequest) Encode

func (externalReq *GetPushrulesEnabledByIDRequest) Encode() ([]byte, error)

type GetPushrulesEnabledByIDRequestCapn

type GetPushrulesEnabledByIDRequestCapn struct{ capnp.Struct }

func NewGetPushrulesEnabledByIDRequestCapn

func NewGetPushrulesEnabledByIDRequestCapn(s *capnp.Segment) (GetPushrulesEnabledByIDRequestCapn, error)

func NewRootGetPushrulesEnabledByIDRequestCapn

func NewRootGetPushrulesEnabledByIDRequestCapn(s *capnp.Segment) (GetPushrulesEnabledByIDRequestCapn, error)

func ReadRootGetPushrulesEnabledByIDRequestCapn

func ReadRootGetPushrulesEnabledByIDRequestCapn(msg *capnp.Message) (GetPushrulesEnabledByIDRequestCapn, error)

func (GetPushrulesEnabledByIDRequestCapn) HasKind

func (GetPushrulesEnabledByIDRequestCapn) HasRuleID

func (GetPushrulesEnabledByIDRequestCapn) HasScope

func (GetPushrulesEnabledByIDRequestCapn) Kind

func (GetPushrulesEnabledByIDRequestCapn) KindBytes

func (s GetPushrulesEnabledByIDRequestCapn) KindBytes() ([]byte, error)

func (GetPushrulesEnabledByIDRequestCapn) RuleID

func (GetPushrulesEnabledByIDRequestCapn) RuleIDBytes

func (s GetPushrulesEnabledByIDRequestCapn) RuleIDBytes() ([]byte, error)

func (GetPushrulesEnabledByIDRequestCapn) Scope

func (GetPushrulesEnabledByIDRequestCapn) ScopeBytes

func (s GetPushrulesEnabledByIDRequestCapn) ScopeBytes() ([]byte, error)

func (GetPushrulesEnabledByIDRequestCapn) SetKind

func (GetPushrulesEnabledByIDRequestCapn) SetRuleID

func (GetPushrulesEnabledByIDRequestCapn) SetScope

func (GetPushrulesEnabledByIDRequestCapn) String

type GetPushrulesEnabledByIDRequestCapn_List

type GetPushrulesEnabledByIDRequestCapn_List struct{ capnp.List }

GetPushrulesEnabledByIDRequestCapn_List is a list of GetPushrulesEnabledByIDRequestCapn.

func NewGetPushrulesEnabledByIDRequestCapn_List

func NewGetPushrulesEnabledByIDRequestCapn_List(s *capnp.Segment, sz int32) (GetPushrulesEnabledByIDRequestCapn_List, error)

NewGetPushrulesEnabledByIDRequestCapn creates a new list of GetPushrulesEnabledByIDRequestCapn.

func (GetPushrulesEnabledByIDRequestCapn_List) At

func (GetPushrulesEnabledByIDRequestCapn_List) Set

func (GetPushrulesEnabledByIDRequestCapn_List) String

type GetPushrulesEnabledByIDRequestCapn_Promise

type GetPushrulesEnabledByIDRequestCapn_Promise struct{ *capnp.Pipeline }

GetPushrulesEnabledByIDRequestCapn_Promise is a wrapper for a GetPushrulesEnabledByIDRequestCapn promised by a client call.

func (GetPushrulesEnabledByIDRequestCapn_Promise) Struct

type GetPushrulesEnabledByIDResponse

type GetPushrulesEnabledByIDResponse struct {
	Enabled bool `json:"enabled"`
}

func (*GetPushrulesEnabledByIDResponse) Decode

func (res *GetPushrulesEnabledByIDResponse) Decode(input []byte) error

func (*GetPushrulesEnabledByIDResponse) Encode

func (res *GetPushrulesEnabledByIDResponse) Encode() ([]byte, error)

type GetPushrulesEnabledByIDResponseCapn

type GetPushrulesEnabledByIDResponseCapn struct{ capnp.Struct }

func NewGetPushrulesEnabledByIDResponseCapn

func NewGetPushrulesEnabledByIDResponseCapn(s *capnp.Segment) (GetPushrulesEnabledByIDResponseCapn, error)

func NewRootGetPushrulesEnabledByIDResponseCapn

func NewRootGetPushrulesEnabledByIDResponseCapn(s *capnp.Segment) (GetPushrulesEnabledByIDResponseCapn, error)

func ReadRootGetPushrulesEnabledByIDResponseCapn

func ReadRootGetPushrulesEnabledByIDResponseCapn(msg *capnp.Message) (GetPushrulesEnabledByIDResponseCapn, error)

func (GetPushrulesEnabledByIDResponseCapn) Enabled

func (GetPushrulesEnabledByIDResponseCapn) SetEnabled

func (s GetPushrulesEnabledByIDResponseCapn) SetEnabled(v bool)

func (GetPushrulesEnabledByIDResponseCapn) String

type GetPushrulesEnabledByIDResponseCapn_List

type GetPushrulesEnabledByIDResponseCapn_List struct{ capnp.List }

GetPushrulesEnabledByIDResponseCapn_List is a list of GetPushrulesEnabledByIDResponseCapn.

func NewGetPushrulesEnabledByIDResponseCapn_List

func NewGetPushrulesEnabledByIDResponseCapn_List(s *capnp.Segment, sz int32) (GetPushrulesEnabledByIDResponseCapn_List, error)

NewGetPushrulesEnabledByIDResponseCapn creates a new list of GetPushrulesEnabledByIDResponseCapn.

func (GetPushrulesEnabledByIDResponseCapn_List) At

func (GetPushrulesEnabledByIDResponseCapn_List) Set

func (GetPushrulesEnabledByIDResponseCapn_List) String

type GetPushrulesEnabledByIDResponseCapn_Promise

type GetPushrulesEnabledByIDResponseCapn_Promise struct{ *capnp.Pipeline }

GetPushrulesEnabledByIDResponseCapn_Promise is a wrapper for a GetPushrulesEnabledByIDResponseCapn promised by a client call.

func (GetPushrulesEnabledByIDResponseCapn_Promise) Struct

type GetPushrulesGlobalResponse

type GetPushrulesGlobalResponse Ruleset

GET /_matrix/client/r0/pushrules/

func (*GetPushrulesGlobalResponse) Decode

func (res *GetPushrulesGlobalResponse) Decode(input []byte) error

func (*GetPushrulesGlobalResponse) Encode

func (res *GetPushrulesGlobalResponse) Encode() ([]byte, error)

type GetPushrulesResponse

type GetPushrulesResponse struct {
	Global Ruleset `json:"global"`
}

GET /_matrix/client/r0/pushrules/

func (*GetPushrulesResponse) Decode

func (res *GetPushrulesResponse) Decode(input []byte) error

func (*GetPushrulesResponse) Encode

func (res *GetPushrulesResponse) Encode() ([]byte, error)

type GetRegisterAvail

type GetRegisterAvail struct {
	UserName string `json:"username"`
}

GET /_matrix/client/r0/register/available

type GetRegisterAvailCapn

type GetRegisterAvailCapn struct{ capnp.Struct }

func NewGetRegisterAvailCapn

func NewGetRegisterAvailCapn(s *capnp.Segment) (GetRegisterAvailCapn, error)

func NewRootGetRegisterAvailCapn

func NewRootGetRegisterAvailCapn(s *capnp.Segment) (GetRegisterAvailCapn, error)

func ReadRootGetRegisterAvailCapn

func ReadRootGetRegisterAvailCapn(msg *capnp.Message) (GetRegisterAvailCapn, error)

func (GetRegisterAvailCapn) HasUserName

func (s GetRegisterAvailCapn) HasUserName() bool

func (GetRegisterAvailCapn) SetUserName

func (s GetRegisterAvailCapn) SetUserName(v string) error

func (GetRegisterAvailCapn) String

func (s GetRegisterAvailCapn) String() string

func (GetRegisterAvailCapn) UserName

func (s GetRegisterAvailCapn) UserName() (string, error)

func (GetRegisterAvailCapn) UserNameBytes

func (s GetRegisterAvailCapn) UserNameBytes() ([]byte, error)

type GetRegisterAvailCapn_List

type GetRegisterAvailCapn_List struct{ capnp.List }

GetRegisterAvailCapn_List is a list of GetRegisterAvailCapn.

func NewGetRegisterAvailCapn_List

func NewGetRegisterAvailCapn_List(s *capnp.Segment, sz int32) (GetRegisterAvailCapn_List, error)

NewGetRegisterAvailCapn creates a new list of GetRegisterAvailCapn.

func (GetRegisterAvailCapn_List) At

func (GetRegisterAvailCapn_List) Set

func (GetRegisterAvailCapn_List) String

func (s GetRegisterAvailCapn_List) String() string

type GetRegisterAvailCapn_Promise

type GetRegisterAvailCapn_Promise struct{ *capnp.Pipeline }

GetRegisterAvailCapn_Promise is a wrapper for a GetRegisterAvailCapn promised by a client call.

func (GetRegisterAvailCapn_Promise) Struct

type GetRegisterAvailResponse

type GetRegisterAvailResponse struct {
	Available bool `json:"available"`
}

func (*GetRegisterAvailResponse) Decode

func (res *GetRegisterAvailResponse) Decode(input []byte) error

func (*GetRegisterAvailResponse) Encode

func (res *GetRegisterAvailResponse) Encode() ([]byte, error)

type GetRegisterAvailResponseCapn

type GetRegisterAvailResponseCapn struct{ capnp.Struct }

func NewGetRegisterAvailResponseCapn

func NewGetRegisterAvailResponseCapn(s *capnp.Segment) (GetRegisterAvailResponseCapn, error)

func NewRootGetRegisterAvailResponseCapn

func NewRootGetRegisterAvailResponseCapn(s *capnp.Segment) (GetRegisterAvailResponseCapn, error)

func ReadRootGetRegisterAvailResponseCapn

func ReadRootGetRegisterAvailResponseCapn(msg *capnp.Message) (GetRegisterAvailResponseCapn, error)

func (GetRegisterAvailResponseCapn) Available

func (s GetRegisterAvailResponseCapn) Available() bool

func (GetRegisterAvailResponseCapn) SetAvailable

func (s GetRegisterAvailResponseCapn) SetAvailable(v bool)

func (GetRegisterAvailResponseCapn) String

type GetRegisterAvailResponseCapn_List

type GetRegisterAvailResponseCapn_List struct{ capnp.List }

GetRegisterAvailResponseCapn_List is a list of GetRegisterAvailResponseCapn.

func NewGetRegisterAvailResponseCapn_List

func NewGetRegisterAvailResponseCapn_List(s *capnp.Segment, sz int32) (GetRegisterAvailResponseCapn_List, error)

NewGetRegisterAvailResponseCapn creates a new list of GetRegisterAvailResponseCapn.

func (GetRegisterAvailResponseCapn_List) At

func (GetRegisterAvailResponseCapn_List) Set

func (GetRegisterAvailResponseCapn_List) String

type GetRegisterAvailResponseCapn_Promise

type GetRegisterAvailResponseCapn_Promise struct{ *capnp.Pipeline }

GetRegisterAvailResponseCapn_Promise is a wrapper for a GetRegisterAvailResponseCapn promised by a client call.

func (GetRegisterAvailResponseCapn_Promise) Struct

type GetRoomEventByIDRequest

type GetRoomEventByIDRequest struct {
	RoomID  string `json:"roomId,omitempty"`
	EventID string `json:"eventId,omitempty"`
}

GET /_matrix/client/r0/rooms/{roomId}/event/{eventId}

type GetRoomEventByIDRequestCapn

type GetRoomEventByIDRequestCapn struct{ capnp.Struct }

func NewGetRoomEventByIDRequestCapn

func NewGetRoomEventByIDRequestCapn(s *capnp.Segment) (GetRoomEventByIDRequestCapn, error)

func NewRootGetRoomEventByIDRequestCapn

func NewRootGetRoomEventByIDRequestCapn(s *capnp.Segment) (GetRoomEventByIDRequestCapn, error)

func ReadRootGetRoomEventByIDRequestCapn

func ReadRootGetRoomEventByIDRequestCapn(msg *capnp.Message) (GetRoomEventByIDRequestCapn, error)

func (GetRoomEventByIDRequestCapn) EventID

func (s GetRoomEventByIDRequestCapn) EventID() (string, error)

func (GetRoomEventByIDRequestCapn) EventIDBytes

func (s GetRoomEventByIDRequestCapn) EventIDBytes() ([]byte, error)

func (GetRoomEventByIDRequestCapn) HasEventID

func (s GetRoomEventByIDRequestCapn) HasEventID() bool

func (GetRoomEventByIDRequestCapn) HasRoomID

func (s GetRoomEventByIDRequestCapn) HasRoomID() bool

func (GetRoomEventByIDRequestCapn) RoomID

func (GetRoomEventByIDRequestCapn) RoomIDBytes

func (s GetRoomEventByIDRequestCapn) RoomIDBytes() ([]byte, error)

func (GetRoomEventByIDRequestCapn) SetEventID

func (s GetRoomEventByIDRequestCapn) SetEventID(v string) error

func (GetRoomEventByIDRequestCapn) SetRoomID

func (s GetRoomEventByIDRequestCapn) SetRoomID(v string) error

func (GetRoomEventByIDRequestCapn) String

type GetRoomEventByIDRequestCapn_List

type GetRoomEventByIDRequestCapn_List struct{ capnp.List }

GetRoomEventByIDRequestCapn_List is a list of GetRoomEventByIDRequestCapn.

func NewGetRoomEventByIDRequestCapn_List

func NewGetRoomEventByIDRequestCapn_List(s *capnp.Segment, sz int32) (GetRoomEventByIDRequestCapn_List, error)

NewGetRoomEventByIDRequestCapn creates a new list of GetRoomEventByIDRequestCapn.

func (GetRoomEventByIDRequestCapn_List) At

func (GetRoomEventByIDRequestCapn_List) Set

func (GetRoomEventByIDRequestCapn_List) String

type GetRoomEventByIDRequestCapn_Promise

type GetRoomEventByIDRequestCapn_Promise struct{ *capnp.Pipeline }

GetRoomEventByIDRequestCapn_Promise is a wrapper for a GetRoomEventByIDRequestCapn promised by a client call.

func (GetRoomEventByIDRequestCapn_Promise) Struct

type GetRoomEventByIDResponse

type GetRoomEventByIDResponse struct {
	Content interface{} `json:"content"`
	Type    string      `json:"type"`
}

type GetRoomEventContextRequest

type GetRoomEventContextRequest struct {
	RoomID  string `json:"roomId"`
	EventID string `json:"eventId"`
	Limit   int64  `json:"limit"`
}

GET /_matrix/client/r0/rooms/{roomId}/context/{eventId}

func (*GetRoomEventContextRequest) Decode

func (externalReq *GetRoomEventContextRequest) Decode(input []byte) error

func (*GetRoomEventContextRequest) Encode

func (externalReq *GetRoomEventContextRequest) Encode() ([]byte, error)

type GetRoomEventContextRequestCapn

type GetRoomEventContextRequestCapn struct{ capnp.Struct }

func NewGetRoomEventContextRequestCapn

func NewGetRoomEventContextRequestCapn(s *capnp.Segment) (GetRoomEventContextRequestCapn, error)

func NewRootGetRoomEventContextRequestCapn

func NewRootGetRoomEventContextRequestCapn(s *capnp.Segment) (GetRoomEventContextRequestCapn, error)

func ReadRootGetRoomEventContextRequestCapn

func ReadRootGetRoomEventContextRequestCapn(msg *capnp.Message) (GetRoomEventContextRequestCapn, error)

func (GetRoomEventContextRequestCapn) EventID

func (GetRoomEventContextRequestCapn) EventIDBytes

func (s GetRoomEventContextRequestCapn) EventIDBytes() ([]byte, error)

func (GetRoomEventContextRequestCapn) HasEventID

func (s GetRoomEventContextRequestCapn) HasEventID() bool

func (GetRoomEventContextRequestCapn) HasRoomID

func (s GetRoomEventContextRequestCapn) HasRoomID() bool

func (GetRoomEventContextRequestCapn) Limit

func (GetRoomEventContextRequestCapn) RoomID

func (GetRoomEventContextRequestCapn) RoomIDBytes

func (s GetRoomEventContextRequestCapn) RoomIDBytes() ([]byte, error)

func (GetRoomEventContextRequestCapn) SetEventID

func (GetRoomEventContextRequestCapn) SetLimit

func (s GetRoomEventContextRequestCapn) SetLimit(v int64)

func (GetRoomEventContextRequestCapn) SetRoomID

func (GetRoomEventContextRequestCapn) String

type GetRoomEventContextRequestCapn_List

type GetRoomEventContextRequestCapn_List struct{ capnp.List }

GetRoomEventContextRequestCapn_List is a list of GetRoomEventContextRequestCapn.

func NewGetRoomEventContextRequestCapn_List

func NewGetRoomEventContextRequestCapn_List(s *capnp.Segment, sz int32) (GetRoomEventContextRequestCapn_List, error)

NewGetRoomEventContextRequestCapn creates a new list of GetRoomEventContextRequestCapn.

func (GetRoomEventContextRequestCapn_List) At

func (GetRoomEventContextRequestCapn_List) Set

func (GetRoomEventContextRequestCapn_List) String

type GetRoomEventContextRequestCapn_Promise

type GetRoomEventContextRequestCapn_Promise struct{ *capnp.Pipeline }

GetRoomEventContextRequestCapn_Promise is a wrapper for a GetRoomEventContextRequestCapn promised by a client call.

func (GetRoomEventContextRequestCapn_Promise) Struct

type GetRoomEventContextResponse

type GetRoomEventContextResponse struct {
	Start        string       `json:"start"`
	End          string       `json:"end"`
	EventsBefore []RoomEvent  `json:"events_before"`
	Event        RoomEvent    `json:"event"`
	EventsAfter  []RoomEvent  `json:"events_after"`
	State        []StateEvent `json:"state"`
}

type GetRoomInfo

type GetRoomInfo struct {
	Creator     string             `json:"creator"`
	RoomID      string             `json:"room_id"`
	RoomExists  bool               `json:"room_exists"`
	Name        string             `json:"name"`
	AvatarURL   string             `json:"avatar_url"`
	IsDirect    bool               `json:"is_direct"`
	IsChannel   bool               `json:"is_channel"`
	IsFederate  bool               `json:"is_federate"`
	Topic       string             `json:"topic"`
	JoinMembers []string           `json:"join_members"`
	PowerLevels jsonRaw.RawMessage `json:"power_levels"`
}

type GetRoomInfoRequest

type GetRoomInfoRequest struct {
	RoomIDs []string `json:"room_ids"`
}

GET /_matrix/client/r0/rooms

func (*GetRoomInfoRequest) Decode

func (externalReq *GetRoomInfoRequest) Decode(data []byte) error

func (*GetRoomInfoRequest) Encode

func (externalReq *GetRoomInfoRequest) Encode() ([]byte, error)

type GetRoomInfoResponse

type GetRoomInfoResponse struct {
	Rooms []GetRoomInfo `json:"rooms"`
}

func (*GetRoomInfoResponse) Decode

func (res *GetRoomInfoResponse) Decode(input []byte) error

func (*GetRoomInfoResponse) Encode

func (res *GetRoomInfoResponse) Encode() ([]byte, error)

type GetRoomInitialSyncRequest

type GetRoomInitialSyncRequest struct {
	RoomID string `json:"roomId,omitempty"`
}

GET /_matrix/client/r0/rooms/{roomId}/initialSync

func (*GetRoomInitialSyncRequest) Decode

func (externalReq *GetRoomInitialSyncRequest) Decode(input []byte) error

func (*GetRoomInitialSyncRequest) Encode

func (externalReq *GetRoomInitialSyncRequest) Encode() ([]byte, error)

type GetRoomInitialSyncRequestCapn

type GetRoomInitialSyncRequestCapn struct{ capnp.Struct }

func NewGetRoomInitialSyncRequestCapn

func NewGetRoomInitialSyncRequestCapn(s *capnp.Segment) (GetRoomInitialSyncRequestCapn, error)

func NewRootGetRoomInitialSyncRequestCapn

func NewRootGetRoomInitialSyncRequestCapn(s *capnp.Segment) (GetRoomInitialSyncRequestCapn, error)

func ReadRootGetRoomInitialSyncRequestCapn

func ReadRootGetRoomInitialSyncRequestCapn(msg *capnp.Message) (GetRoomInitialSyncRequestCapn, error)

func (GetRoomInitialSyncRequestCapn) HasRoomID

func (s GetRoomInitialSyncRequestCapn) HasRoomID() bool

func (GetRoomInitialSyncRequestCapn) RoomID

func (GetRoomInitialSyncRequestCapn) RoomIDBytes

func (s GetRoomInitialSyncRequestCapn) RoomIDBytes() ([]byte, error)

func (GetRoomInitialSyncRequestCapn) SetRoomID

func (GetRoomInitialSyncRequestCapn) String

type GetRoomInitialSyncRequestCapn_List

type GetRoomInitialSyncRequestCapn_List struct{ capnp.List }

GetRoomInitialSyncRequestCapn_List is a list of GetRoomInitialSyncRequestCapn.

func NewGetRoomInitialSyncRequestCapn_List

func NewGetRoomInitialSyncRequestCapn_List(s *capnp.Segment, sz int32) (GetRoomInitialSyncRequestCapn_List, error)

NewGetRoomInitialSyncRequestCapn creates a new list of GetRoomInitialSyncRequestCapn.

func (GetRoomInitialSyncRequestCapn_List) At

func (GetRoomInitialSyncRequestCapn_List) Set

func (GetRoomInitialSyncRequestCapn_List) String

type GetRoomInitialSyncRequestCapn_Promise

type GetRoomInitialSyncRequestCapn_Promise struct{ *capnp.Pipeline }

GetRoomInitialSyncRequestCapn_Promise is a wrapper for a GetRoomInitialSyncRequestCapn promised by a client call.

func (GetRoomInitialSyncRequestCapn_Promise) Struct

type GetRoomJoinedMembersRequest

type GetRoomJoinedMembersRequest struct {
	RoomID string `json:"roomId,omitempty"`
}

GET /_matrix/client/r0/rooms/{roomId}/joined_members

func (*GetRoomJoinedMembersRequest) Decode

func (externalReq *GetRoomJoinedMembersRequest) Decode(input []byte) error

func (*GetRoomJoinedMembersRequest) Encode

func (externalReq *GetRoomJoinedMembersRequest) Encode() ([]byte, error)

type GetRoomJoinedMembersRequestCapn

type GetRoomJoinedMembersRequestCapn struct{ capnp.Struct }

func NewGetRoomJoinedMembersRequestCapn

func NewGetRoomJoinedMembersRequestCapn(s *capnp.Segment) (GetRoomJoinedMembersRequestCapn, error)

func NewRootGetRoomJoinedMembersRequestCapn

func NewRootGetRoomJoinedMembersRequestCapn(s *capnp.Segment) (GetRoomJoinedMembersRequestCapn, error)

func ReadRootGetRoomJoinedMembersRequestCapn

func ReadRootGetRoomJoinedMembersRequestCapn(msg *capnp.Message) (GetRoomJoinedMembersRequestCapn, error)

func (GetRoomJoinedMembersRequestCapn) HasRoomID

func (s GetRoomJoinedMembersRequestCapn) HasRoomID() bool

func (GetRoomJoinedMembersRequestCapn) RoomID

func (GetRoomJoinedMembersRequestCapn) RoomIDBytes

func (s GetRoomJoinedMembersRequestCapn) RoomIDBytes() ([]byte, error)

func (GetRoomJoinedMembersRequestCapn) SetRoomID

func (GetRoomJoinedMembersRequestCapn) String

type GetRoomJoinedMembersRequestCapn_List

type GetRoomJoinedMembersRequestCapn_List struct{ capnp.List }

GetRoomJoinedMembersRequestCapn_List is a list of GetRoomJoinedMembersRequestCapn.

func NewGetRoomJoinedMembersRequestCapn_List

func NewGetRoomJoinedMembersRequestCapn_List(s *capnp.Segment, sz int32) (GetRoomJoinedMembersRequestCapn_List, error)

NewGetRoomJoinedMembersRequestCapn creates a new list of GetRoomJoinedMembersRequestCapn.

func (GetRoomJoinedMembersRequestCapn_List) At

func (GetRoomJoinedMembersRequestCapn_List) Set

func (GetRoomJoinedMembersRequestCapn_List) String

type GetRoomJoinedMembersRequestCapn_Promise

type GetRoomJoinedMembersRequestCapn_Promise struct{ *capnp.Pipeline }

GetRoomJoinedMembersRequestCapn_Promise is a wrapper for a GetRoomJoinedMembersRequestCapn promised by a client call.

func (GetRoomJoinedMembersRequestCapn_Promise) Struct

type GetRoomJoinedMembersResponse

type GetRoomJoinedMembersResponse struct {
	Joined map[string]RoomMember `json:"joined,omitempty"`
}

type GetRoomMembersRequest

type GetRoomMembersRequest struct {
	RoomID string `json:"roomId,omitempty"`
}

GET /_matrix/client/r0/rooms/{roomId}/members

func (*GetRoomMembersRequest) Decode

func (externalReq *GetRoomMembersRequest) Decode(input []byte) error

func (*GetRoomMembersRequest) Encode

func (externalReq *GetRoomMembersRequest) Encode() ([]byte, error)

type GetRoomMembersRequestCapn

type GetRoomMembersRequestCapn struct{ capnp.Struct }

func NewGetRoomMembersRequestCapn

func NewGetRoomMembersRequestCapn(s *capnp.Segment) (GetRoomMembersRequestCapn, error)

func NewRootGetRoomMembersRequestCapn

func NewRootGetRoomMembersRequestCapn(s *capnp.Segment) (GetRoomMembersRequestCapn, error)

func ReadRootGetRoomMembersRequestCapn

func ReadRootGetRoomMembersRequestCapn(msg *capnp.Message) (GetRoomMembersRequestCapn, error)

func (GetRoomMembersRequestCapn) HasRoomID

func (s GetRoomMembersRequestCapn) HasRoomID() bool

func (GetRoomMembersRequestCapn) RoomID

func (s GetRoomMembersRequestCapn) RoomID() (string, error)

func (GetRoomMembersRequestCapn) RoomIDBytes

func (s GetRoomMembersRequestCapn) RoomIDBytes() ([]byte, error)

func (GetRoomMembersRequestCapn) SetRoomID

func (s GetRoomMembersRequestCapn) SetRoomID(v string) error

func (GetRoomMembersRequestCapn) String

func (s GetRoomMembersRequestCapn) String() string

type GetRoomMembersRequestCapn_List

type GetRoomMembersRequestCapn_List struct{ capnp.List }

GetRoomMembersRequestCapn_List is a list of GetRoomMembersRequestCapn.

func NewGetRoomMembersRequestCapn_List

func NewGetRoomMembersRequestCapn_List(s *capnp.Segment, sz int32) (GetRoomMembersRequestCapn_List, error)

NewGetRoomMembersRequestCapn creates a new list of GetRoomMembersRequestCapn.

func (GetRoomMembersRequestCapn_List) At

func (GetRoomMembersRequestCapn_List) Set

func (GetRoomMembersRequestCapn_List) String

type GetRoomMembersRequestCapn_Promise

type GetRoomMembersRequestCapn_Promise struct{ *capnp.Pipeline }

GetRoomMembersRequestCapn_Promise is a wrapper for a GetRoomMembersRequestCapn promised by a client call.

func (GetRoomMembersRequestCapn_Promise) Struct

type GetRoomMembersResponse

type GetRoomMembersResponse struct {
	Chunk []MemberEvent `json:"chunk,omitempty"`
}

type GetRoomMessagesRequest

type GetRoomMessagesRequest struct {
	RoomID string `json:"roomId,omitempty"`
	From   string `json:"from,omitempty"`
	To     string `json:"to,omitempty"`
	Dir    string `json:"dir,omitempty"`
	Limit  string `json:"limit,omitempty"`
	Filter string `json:"filter,omitempty"`
}

GET /_matrix/client/r0/rooms/{roomId}/messages

func (*GetRoomMessagesRequest) Decode

func (externalReq *GetRoomMessagesRequest) Decode(input []byte) error

func (*GetRoomMessagesRequest) Encode

func (externalReq *GetRoomMessagesRequest) Encode() ([]byte, error)

type GetRoomMessagesRequestCapn

type GetRoomMessagesRequestCapn struct{ capnp.Struct }

func NewGetRoomMessagesRequestCapn

func NewGetRoomMessagesRequestCapn(s *capnp.Segment) (GetRoomMessagesRequestCapn, error)

func NewRootGetRoomMessagesRequestCapn

func NewRootGetRoomMessagesRequestCapn(s *capnp.Segment) (GetRoomMessagesRequestCapn, error)

func ReadRootGetRoomMessagesRequestCapn

func ReadRootGetRoomMessagesRequestCapn(msg *capnp.Message) (GetRoomMessagesRequestCapn, error)

func (GetRoomMessagesRequestCapn) Dir

func (GetRoomMessagesRequestCapn) DirBytes

func (s GetRoomMessagesRequestCapn) DirBytes() ([]byte, error)

func (GetRoomMessagesRequestCapn) Filter

func (s GetRoomMessagesRequestCapn) Filter() (string, error)

func (GetRoomMessagesRequestCapn) FilterBytes

func (s GetRoomMessagesRequestCapn) FilterBytes() ([]byte, error)

func (GetRoomMessagesRequestCapn) From

func (GetRoomMessagesRequestCapn) FromBytes

func (s GetRoomMessagesRequestCapn) FromBytes() ([]byte, error)

func (GetRoomMessagesRequestCapn) HasDir

func (s GetRoomMessagesRequestCapn) HasDir() bool

func (GetRoomMessagesRequestCapn) HasFilter

func (s GetRoomMessagesRequestCapn) HasFilter() bool

func (GetRoomMessagesRequestCapn) HasFrom

func (s GetRoomMessagesRequestCapn) HasFrom() bool

func (GetRoomMessagesRequestCapn) HasLimit

func (s GetRoomMessagesRequestCapn) HasLimit() bool

func (GetRoomMessagesRequestCapn) HasRoomID

func (s GetRoomMessagesRequestCapn) HasRoomID() bool

func (GetRoomMessagesRequestCapn) Limit

func (GetRoomMessagesRequestCapn) LimitBytes

func (s GetRoomMessagesRequestCapn) LimitBytes() ([]byte, error)

func (GetRoomMessagesRequestCapn) RoomID

func (s GetRoomMessagesRequestCapn) RoomID() (string, error)

func (GetRoomMessagesRequestCapn) RoomIDBytes

func (s GetRoomMessagesRequestCapn) RoomIDBytes() ([]byte, error)

func (GetRoomMessagesRequestCapn) SetDir

func (GetRoomMessagesRequestCapn) SetFilter

func (s GetRoomMessagesRequestCapn) SetFilter(v string) error

func (GetRoomMessagesRequestCapn) SetFrom

func (GetRoomMessagesRequestCapn) SetLimit

func (s GetRoomMessagesRequestCapn) SetLimit(v string) error

func (GetRoomMessagesRequestCapn) SetRoomID

func (s GetRoomMessagesRequestCapn) SetRoomID(v string) error

func (GetRoomMessagesRequestCapn) String

type GetRoomMessagesRequestCapn_List

type GetRoomMessagesRequestCapn_List struct{ capnp.List }

GetRoomMessagesRequestCapn_List is a list of GetRoomMessagesRequestCapn.

func NewGetRoomMessagesRequestCapn_List

func NewGetRoomMessagesRequestCapn_List(s *capnp.Segment, sz int32) (GetRoomMessagesRequestCapn_List, error)

NewGetRoomMessagesRequestCapn creates a new list of GetRoomMessagesRequestCapn.

func (GetRoomMessagesRequestCapn_List) At

func (GetRoomMessagesRequestCapn_List) Set

func (GetRoomMessagesRequestCapn_List) String

type GetRoomMessagesRequestCapn_Promise

type GetRoomMessagesRequestCapn_Promise struct{ *capnp.Pipeline }

GetRoomMessagesRequestCapn_Promise is a wrapper for a GetRoomMessagesRequestCapn promised by a client call.

func (GetRoomMessagesRequestCapn_Promise) Struct

type GetRoomMessagesResponse

type GetRoomMessagesResponse struct {
	Start string      `json:"start,omitempty"`
	End   string      `json:"end,omitempty"`
	Chunk []RoomEvent `json:"chunk,omitempty"`
}

type GetRoomMessagesResponseCapn

type GetRoomMessagesResponseCapn struct{ capnp.Struct }

func NewGetRoomMessagesResponseCapn

func NewGetRoomMessagesResponseCapn(s *capnp.Segment) (GetRoomMessagesResponseCapn, error)

func NewRootGetRoomMessagesResponseCapn

func NewRootGetRoomMessagesResponseCapn(s *capnp.Segment) (GetRoomMessagesResponseCapn, error)

func ReadRootGetRoomMessagesResponseCapn

func ReadRootGetRoomMessagesResponseCapn(msg *capnp.Message) (GetRoomMessagesResponseCapn, error)

func (GetRoomMessagesResponseCapn) Chunk

func (GetRoomMessagesResponseCapn) End

func (GetRoomMessagesResponseCapn) EndBytes

func (s GetRoomMessagesResponseCapn) EndBytes() ([]byte, error)

func (GetRoomMessagesResponseCapn) HasChunk

func (s GetRoomMessagesResponseCapn) HasChunk() bool

func (GetRoomMessagesResponseCapn) HasEnd

func (s GetRoomMessagesResponseCapn) HasEnd() bool

func (GetRoomMessagesResponseCapn) HasStart

func (s GetRoomMessagesResponseCapn) HasStart() bool

func (GetRoomMessagesResponseCapn) NewChunk

NewChunk sets the chunk field to a newly allocated RoomEventCapn_List, preferring placement in s's segment.

func (GetRoomMessagesResponseCapn) SetChunk

func (GetRoomMessagesResponseCapn) SetEnd

func (GetRoomMessagesResponseCapn) SetStart

func (GetRoomMessagesResponseCapn) Start

func (GetRoomMessagesResponseCapn) StartBytes

func (s GetRoomMessagesResponseCapn) StartBytes() ([]byte, error)

func (GetRoomMessagesResponseCapn) String

type GetRoomMessagesResponseCapn_List

type GetRoomMessagesResponseCapn_List struct{ capnp.List }

GetRoomMessagesResponseCapn_List is a list of GetRoomMessagesResponseCapn.

func NewGetRoomMessagesResponseCapn_List

func NewGetRoomMessagesResponseCapn_List(s *capnp.Segment, sz int32) (GetRoomMessagesResponseCapn_List, error)

NewGetRoomMessagesResponseCapn creates a new list of GetRoomMessagesResponseCapn.

func (GetRoomMessagesResponseCapn_List) At

func (GetRoomMessagesResponseCapn_List) Set

func (GetRoomMessagesResponseCapn_List) String

type GetRoomMessagesResponseCapn_Promise

type GetRoomMessagesResponseCapn_Promise struct{ *capnp.Pipeline }

GetRoomMessagesResponseCapn_Promise is a wrapper for a GetRoomMessagesResponseCapn promised by a client call.

func (GetRoomMessagesResponseCapn_Promise) Struct

type GetRoomStateByTypeAndStateKeyRequest

type GetRoomStateByTypeAndStateKeyRequest struct {
	RoomID    string `json:"roomId,omitempty"`
	EventType string `json:"eventType,omitempty"`
	StateKey  string `json:"stateKey,omitempty"`
}

GET /_matrix/client/r0/rooms/{roomId}/state/{eventType}/{stateKey}

func (*GetRoomStateByTypeAndStateKeyRequest) Decode

func (externalReq *GetRoomStateByTypeAndStateKeyRequest) Decode(input []byte) error

func (*GetRoomStateByTypeAndStateKeyRequest) Encode

func (externalReq *GetRoomStateByTypeAndStateKeyRequest) Encode() ([]byte, error)

type GetRoomStateByTypeAndStateKeyRequestCapn

type GetRoomStateByTypeAndStateKeyRequestCapn struct{ capnp.Struct }

func NewGetRoomStateByTypeAndStateKeyRequestCapn

func NewGetRoomStateByTypeAndStateKeyRequestCapn(s *capnp.Segment) (GetRoomStateByTypeAndStateKeyRequestCapn, error)

func NewRootGetRoomStateByTypeAndStateKeyRequestCapn

func NewRootGetRoomStateByTypeAndStateKeyRequestCapn(s *capnp.Segment) (GetRoomStateByTypeAndStateKeyRequestCapn, error)

func ReadRootGetRoomStateByTypeAndStateKeyRequestCapn

func ReadRootGetRoomStateByTypeAndStateKeyRequestCapn(msg *capnp.Message) (GetRoomStateByTypeAndStateKeyRequestCapn, error)

func (GetRoomStateByTypeAndStateKeyRequestCapn) EventType

func (GetRoomStateByTypeAndStateKeyRequestCapn) EventTypeBytes

func (s GetRoomStateByTypeAndStateKeyRequestCapn) EventTypeBytes() ([]byte, error)

func (GetRoomStateByTypeAndStateKeyRequestCapn) HasEventType

func (GetRoomStateByTypeAndStateKeyRequestCapn) HasRoomID

func (GetRoomStateByTypeAndStateKeyRequestCapn) HasStateKey

func (GetRoomStateByTypeAndStateKeyRequestCapn) RoomID

func (GetRoomStateByTypeAndStateKeyRequestCapn) RoomIDBytes

func (GetRoomStateByTypeAndStateKeyRequestCapn) SetEventType

func (GetRoomStateByTypeAndStateKeyRequestCapn) SetRoomID

func (GetRoomStateByTypeAndStateKeyRequestCapn) SetStateKey

func (GetRoomStateByTypeAndStateKeyRequestCapn) StateKey

func (GetRoomStateByTypeAndStateKeyRequestCapn) StateKeyBytes

func (s GetRoomStateByTypeAndStateKeyRequestCapn) StateKeyBytes() ([]byte, error)

func (GetRoomStateByTypeAndStateKeyRequestCapn) String

type GetRoomStateByTypeAndStateKeyRequestCapn_List

type GetRoomStateByTypeAndStateKeyRequestCapn_List struct{ capnp.List }

GetRoomStateByTypeAndStateKeyRequestCapn_List is a list of GetRoomStateByTypeAndStateKeyRequestCapn.

func NewGetRoomStateByTypeAndStateKeyRequestCapn_List

func NewGetRoomStateByTypeAndStateKeyRequestCapn_List(s *capnp.Segment, sz int32) (GetRoomStateByTypeAndStateKeyRequestCapn_List, error)

NewGetRoomStateByTypeAndStateKeyRequestCapn creates a new list of GetRoomStateByTypeAndStateKeyRequestCapn.

func (GetRoomStateByTypeAndStateKeyRequestCapn_List) At

func (GetRoomStateByTypeAndStateKeyRequestCapn_List) Set

func (GetRoomStateByTypeAndStateKeyRequestCapn_List) String

type GetRoomStateByTypeAndStateKeyRequestCapn_Promise

type GetRoomStateByTypeAndStateKeyRequestCapn_Promise struct{ *capnp.Pipeline }

GetRoomStateByTypeAndStateKeyRequestCapn_Promise is a wrapper for a GetRoomStateByTypeAndStateKeyRequestCapn promised by a client call.

func (GetRoomStateByTypeAndStateKeyRequestCapn_Promise) Struct

type GetRoomStateByTypeRequest

type GetRoomStateByTypeRequest struct {
	RoomID    string `json:"roomId,omitempty"`
	EventType string `json:"eventType,omitempty"`
}

GET /_matrix/client/r0/rooms/{roomId}/state/{eventType}

func (*GetRoomStateByTypeRequest) Decode

func (externalReq *GetRoomStateByTypeRequest) Decode(input []byte) error

func (*GetRoomStateByTypeRequest) Encode

func (externalReq *GetRoomStateByTypeRequest) Encode() ([]byte, error)

type GetRoomStateByTypeRequestCapn

type GetRoomStateByTypeRequestCapn struct{ capnp.Struct }

func NewGetRoomStateByTypeRequestCapn

func NewGetRoomStateByTypeRequestCapn(s *capnp.Segment) (GetRoomStateByTypeRequestCapn, error)

func NewRootGetRoomStateByTypeRequestCapn

func NewRootGetRoomStateByTypeRequestCapn(s *capnp.Segment) (GetRoomStateByTypeRequestCapn, error)

func ReadRootGetRoomStateByTypeRequestCapn

func ReadRootGetRoomStateByTypeRequestCapn(msg *capnp.Message) (GetRoomStateByTypeRequestCapn, error)

func (GetRoomStateByTypeRequestCapn) EventType

func (s GetRoomStateByTypeRequestCapn) EventType() (string, error)

func (GetRoomStateByTypeRequestCapn) EventTypeBytes

func (s GetRoomStateByTypeRequestCapn) EventTypeBytes() ([]byte, error)

func (GetRoomStateByTypeRequestCapn) HasEventType

func (s GetRoomStateByTypeRequestCapn) HasEventType() bool

func (GetRoomStateByTypeRequestCapn) HasRoomID

func (s GetRoomStateByTypeRequestCapn) HasRoomID() bool

func (GetRoomStateByTypeRequestCapn) RoomID

func (GetRoomStateByTypeRequestCapn) RoomIDBytes

func (s GetRoomStateByTypeRequestCapn) RoomIDBytes() ([]byte, error)

func (GetRoomStateByTypeRequestCapn) SetEventType

func (s GetRoomStateByTypeRequestCapn) SetEventType(v string) error

func (GetRoomStateByTypeRequestCapn) SetRoomID

func (GetRoomStateByTypeRequestCapn) String

type GetRoomStateByTypeRequestCapn_List

type GetRoomStateByTypeRequestCapn_List struct{ capnp.List }

GetRoomStateByTypeRequestCapn_List is a list of GetRoomStateByTypeRequestCapn.

func NewGetRoomStateByTypeRequestCapn_List

func NewGetRoomStateByTypeRequestCapn_List(s *capnp.Segment, sz int32) (GetRoomStateByTypeRequestCapn_List, error)

NewGetRoomStateByTypeRequestCapn creates a new list of GetRoomStateByTypeRequestCapn.

func (GetRoomStateByTypeRequestCapn_List) At

func (GetRoomStateByTypeRequestCapn_List) Set

func (GetRoomStateByTypeRequestCapn_List) String

type GetRoomStateByTypeRequestCapn_Promise

type GetRoomStateByTypeRequestCapn_Promise struct{ *capnp.Pipeline }

GetRoomStateByTypeRequestCapn_Promise is a wrapper for a GetRoomStateByTypeRequestCapn promised by a client call.

func (GetRoomStateByTypeRequestCapn_Promise) Struct

type GetRoomStateRequest

type GetRoomStateRequest struct {
	RoomID string `json:"roomId,omitempty"`
}

GET /_matrix/client/r0/rooms/{roomId}/state

func (*GetRoomStateRequest) Decode

func (externalReq *GetRoomStateRequest) Decode(input []byte) error

func (*GetRoomStateRequest) Encode

func (externalReq *GetRoomStateRequest) Encode() ([]byte, error)

type GetRoomStateRequestCapn

type GetRoomStateRequestCapn struct{ capnp.Struct }

func NewGetRoomStateRequestCapn

func NewGetRoomStateRequestCapn(s *capnp.Segment) (GetRoomStateRequestCapn, error)

func NewRootGetRoomStateRequestCapn

func NewRootGetRoomStateRequestCapn(s *capnp.Segment) (GetRoomStateRequestCapn, error)

func ReadRootGetRoomStateRequestCapn

func ReadRootGetRoomStateRequestCapn(msg *capnp.Message) (GetRoomStateRequestCapn, error)

func (GetRoomStateRequestCapn) HasRoomID

func (s GetRoomStateRequestCapn) HasRoomID() bool

func (GetRoomStateRequestCapn) RoomID

func (s GetRoomStateRequestCapn) RoomID() (string, error)

func (GetRoomStateRequestCapn) RoomIDBytes

func (s GetRoomStateRequestCapn) RoomIDBytes() ([]byte, error)

func (GetRoomStateRequestCapn) SetRoomID

func (s GetRoomStateRequestCapn) SetRoomID(v string) error

func (GetRoomStateRequestCapn) String

func (s GetRoomStateRequestCapn) String() string

type GetRoomStateRequestCapn_List

type GetRoomStateRequestCapn_List struct{ capnp.List }

GetRoomStateRequestCapn_List is a list of GetRoomStateRequestCapn.

func NewGetRoomStateRequestCapn_List

func NewGetRoomStateRequestCapn_List(s *capnp.Segment, sz int32) (GetRoomStateRequestCapn_List, error)

NewGetRoomStateRequestCapn creates a new list of GetRoomStateRequestCapn.

func (GetRoomStateRequestCapn_List) At

func (GetRoomStateRequestCapn_List) Set

func (GetRoomStateRequestCapn_List) String

type GetRoomStateRequestCapn_Promise

type GetRoomStateRequestCapn_Promise struct{ *capnp.Pipeline }

GetRoomStateRequestCapn_Promise is a wrapper for a GetRoomStateRequestCapn promised by a client call.

func (GetRoomStateRequestCapn_Promise) Struct

type GetRoomStateResponse

type GetRoomStateResponse struct {
	StateEvents []StateEvent
}

type GetRoomVisibilityRangeRequest

type GetRoomVisibilityRangeRequest struct {
	UserID string `json:"userID"`
	RoomID string `json:"roomID"`
}

GET /_matrix/client/r0/rooms/{roomID}/visibility_range

func (*GetRoomVisibilityRangeRequest) Decode

func (externalReq *GetRoomVisibilityRangeRequest) Decode(input []byte) error

func (*GetRoomVisibilityRangeRequest) Encode

func (externalReq *GetRoomVisibilityRangeRequest) Encode() ([]byte, error)

type GetRoomVisibilityRangeResponse

type GetRoomVisibilityRangeResponse struct {
	Joined map[string]MemberContent `json:"joined"`
}

func (*GetRoomVisibilityRangeResponse) Decode

func (res *GetRoomVisibilityRangeResponse) Decode(input []byte) error

func (*GetRoomVisibilityRangeResponse) Encode

func (res *GetRoomVisibilityRangeResponse) Encode() ([]byte, error)

type GetRoomsTagsByIDRequest

type GetRoomsTagsByIDRequest struct {
	UserId string `json:"userId"`
	RoomId string `json:"roomId"`
}

GET /_matrix/client/r0/user/{userId}/rooms/{roomId}/tags

func (*GetRoomsTagsByIDRequest) Decode

func (externalReq *GetRoomsTagsByIDRequest) Decode(input []byte) error

func (*GetRoomsTagsByIDRequest) Encode

func (externalReq *GetRoomsTagsByIDRequest) Encode() ([]byte, error)

type GetRoomsTagsByIDRequestCapn

type GetRoomsTagsByIDRequestCapn struct{ capnp.Struct }

func NewGetRoomsTagsByIDRequestCapn

func NewGetRoomsTagsByIDRequestCapn(s *capnp.Segment) (GetRoomsTagsByIDRequestCapn, error)

func NewRootGetRoomsTagsByIDRequestCapn

func NewRootGetRoomsTagsByIDRequestCapn(s *capnp.Segment) (GetRoomsTagsByIDRequestCapn, error)

func ReadRootGetRoomsTagsByIDRequestCapn

func ReadRootGetRoomsTagsByIDRequestCapn(msg *capnp.Message) (GetRoomsTagsByIDRequestCapn, error)

func (GetRoomsTagsByIDRequestCapn) HasRoomId

func (s GetRoomsTagsByIDRequestCapn) HasRoomId() bool

func (GetRoomsTagsByIDRequestCapn) HasUserId

func (s GetRoomsTagsByIDRequestCapn) HasUserId() bool

func (GetRoomsTagsByIDRequestCapn) RoomId

func (GetRoomsTagsByIDRequestCapn) RoomIdBytes

func (s GetRoomsTagsByIDRequestCapn) RoomIdBytes() ([]byte, error)

func (GetRoomsTagsByIDRequestCapn) SetRoomId

func (s GetRoomsTagsByIDRequestCapn) SetRoomId(v string) error

func (GetRoomsTagsByIDRequestCapn) SetUserId

func (s GetRoomsTagsByIDRequestCapn) SetUserId(v string) error

func (GetRoomsTagsByIDRequestCapn) String

func (GetRoomsTagsByIDRequestCapn) UserId

func (GetRoomsTagsByIDRequestCapn) UserIdBytes

func (s GetRoomsTagsByIDRequestCapn) UserIdBytes() ([]byte, error)

type GetRoomsTagsByIDRequestCapn_List

type GetRoomsTagsByIDRequestCapn_List struct{ capnp.List }

GetRoomsTagsByIDRequestCapn_List is a list of GetRoomsTagsByIDRequestCapn.

func NewGetRoomsTagsByIDRequestCapn_List

func NewGetRoomsTagsByIDRequestCapn_List(s *capnp.Segment, sz int32) (GetRoomsTagsByIDRequestCapn_List, error)

NewGetRoomsTagsByIDRequestCapn creates a new list of GetRoomsTagsByIDRequestCapn.

func (GetRoomsTagsByIDRequestCapn_List) At

func (GetRoomsTagsByIDRequestCapn_List) Set

func (GetRoomsTagsByIDRequestCapn_List) String

type GetRoomsTagsByIDRequestCapn_Promise

type GetRoomsTagsByIDRequestCapn_Promise struct{ *capnp.Pipeline }

GetRoomsTagsByIDRequestCapn_Promise is a wrapper for a GetRoomsTagsByIDRequestCapn promised by a client call.

func (GetRoomsTagsByIDRequestCapn_Promise) Struct

type GetRoomsTagsByIDResponse

type GetRoomsTagsByIDResponse struct {
	Tags map[string]interface{} `json:"tags"`
}

func (*GetRoomsTagsByIDResponse) Decode

func (res *GetRoomsTagsByIDResponse) Decode(input []byte) error

func (*GetRoomsTagsByIDResponse) Encode

func (res *GetRoomsTagsByIDResponse) Encode() ([]byte, error)

type GetServerNamesResponse

type GetServerNamesResponse struct {
	ServerNames []string `json:"server_names"`
}

func (*GetServerNamesResponse) Decode

func (externalReq *GetServerNamesResponse) Decode(input []byte) error

func (*GetServerNamesResponse) Encode

func (externalReq *GetServerNamesResponse) Encode() ([]byte, error)

type GetStateIDsRequest

type GetStateIDsRequest struct {
	RoomID  string `json:"roomId"`
	EventID string `json:"event_id"`
}

func (*GetStateIDsRequest) Decode

func (externalReq *GetStateIDsRequest) Decode(data []byte) error

func (*GetStateIDsRequest) Encode

func (externalReq *GetStateIDsRequest) Encode() ([]byte, error)

type GetStateIDsResponse

type GetStateIDsResponse struct {
	AuthChainIDs []string `json:"auth_chain_ids"`
	PduIds       []string `json:"pdu_ids"`
}

func (*GetStateIDsResponse) Decode

func (res *GetStateIDsResponse) Decode(input []byte) error

func (*GetStateIDsResponse) Encode

func (r *GetStateIDsResponse) Encode() ([]byte, error)

type GetSyncRequest

type GetSyncRequest struct {
	Filter      string `json:"filter"`
	Since       string `json:"since"`
	FullState   string `json:"full_state"`
	SetPresence string `json:"set_presence"`
	TimeOut     string `json:"timeout"`
	From        string `json:"from"`
}

GET /_matrix/client/r0/sync

func (*GetSyncRequest) Decode

func (externalReq *GetSyncRequest) Decode(input []byte) error

func (*GetSyncRequest) Encode

func (externalReq *GetSyncRequest) Encode() ([]byte, error)

type GetSyncRequestCapn

type GetSyncRequestCapn struct{ capnp.Struct }

func NewGetSyncRequestCapn

func NewGetSyncRequestCapn(s *capnp.Segment) (GetSyncRequestCapn, error)

func NewRootGetSyncRequestCapn

func NewRootGetSyncRequestCapn(s *capnp.Segment) (GetSyncRequestCapn, error)

func ReadRootGetSyncRequestCapn

func ReadRootGetSyncRequestCapn(msg *capnp.Message) (GetSyncRequestCapn, error)

func (GetSyncRequestCapn) Filter

func (s GetSyncRequestCapn) Filter() (string, error)

func (GetSyncRequestCapn) FilterBytes

func (s GetSyncRequestCapn) FilterBytes() ([]byte, error)

func (GetSyncRequestCapn) From

func (s GetSyncRequestCapn) From() (string, error)

func (GetSyncRequestCapn) FromBytes

func (s GetSyncRequestCapn) FromBytes() ([]byte, error)

func (GetSyncRequestCapn) FullState

func (s GetSyncRequestCapn) FullState() (string, error)

func (GetSyncRequestCapn) FullStateBytes

func (s GetSyncRequestCapn) FullStateBytes() ([]byte, error)

func (GetSyncRequestCapn) HasFilter

func (s GetSyncRequestCapn) HasFilter() bool

func (GetSyncRequestCapn) HasFrom

func (s GetSyncRequestCapn) HasFrom() bool

func (GetSyncRequestCapn) HasFullState

func (s GetSyncRequestCapn) HasFullState() bool

func (GetSyncRequestCapn) HasSetPresence

func (s GetSyncRequestCapn) HasSetPresence() bool

func (GetSyncRequestCapn) HasSince

func (s GetSyncRequestCapn) HasSince() bool

func (GetSyncRequestCapn) HasTimeOut

func (s GetSyncRequestCapn) HasTimeOut() bool

func (GetSyncRequestCapn) SetFilter

func (s GetSyncRequestCapn) SetFilter(v string) error

func (GetSyncRequestCapn) SetFrom

func (s GetSyncRequestCapn) SetFrom(v string) error

func (GetSyncRequestCapn) SetFullState

func (s GetSyncRequestCapn) SetFullState(v string) error

func (GetSyncRequestCapn) SetPresence

func (s GetSyncRequestCapn) SetPresence() (string, error)

func (GetSyncRequestCapn) SetPresenceBytes

func (s GetSyncRequestCapn) SetPresenceBytes() ([]byte, error)

func (GetSyncRequestCapn) SetSetPresence

func (s GetSyncRequestCapn) SetSetPresence(v string) error

func (GetSyncRequestCapn) SetSince

func (s GetSyncRequestCapn) SetSince(v string) error

func (GetSyncRequestCapn) SetTimeOut

func (s GetSyncRequestCapn) SetTimeOut(v string) error

func (GetSyncRequestCapn) Since

func (s GetSyncRequestCapn) Since() (string, error)

func (GetSyncRequestCapn) SinceBytes

func (s GetSyncRequestCapn) SinceBytes() ([]byte, error)

func (GetSyncRequestCapn) String

func (s GetSyncRequestCapn) String() string

func (GetSyncRequestCapn) TimeOut

func (s GetSyncRequestCapn) TimeOut() (string, error)

func (GetSyncRequestCapn) TimeOutBytes

func (s GetSyncRequestCapn) TimeOutBytes() ([]byte, error)

type GetSyncRequestCapn_List

type GetSyncRequestCapn_List struct{ capnp.List }

GetSyncRequestCapn_List is a list of GetSyncRequestCapn.

func NewGetSyncRequestCapn_List

func NewGetSyncRequestCapn_List(s *capnp.Segment, sz int32) (GetSyncRequestCapn_List, error)

NewGetSyncRequestCapn creates a new list of GetSyncRequestCapn.

func (GetSyncRequestCapn_List) At

func (GetSyncRequestCapn_List) Set

func (GetSyncRequestCapn_List) String

func (s GetSyncRequestCapn_List) String() string

type GetSyncRequestCapn_Promise

type GetSyncRequestCapn_Promise struct{ *capnp.Pipeline }

GetSyncRequestCapn_Promise is a wrapper for a GetSyncRequestCapn promised by a client call.

func (GetSyncRequestCapn_Promise) Struct

type GetSyncResponse

type GetSyncResponse struct {
	NextBatch string `json:"next_batch"`
	Rooms     struct {
		Join   map[string]JoinedRoom  `json:"join"`
		Invite map[string]InvitedRoom `json:"invite"`
		Leave  map[string]LeftRoom    `json:"leave"`
	} `json:"rooms"`
	Presence               Presence       `json:"presence"`
	AccountData            AccountData    `json:"account_data"`
	ToDevice               ToDevice       `json:"to_device"`
	DeviceList             DeviceLists    `json:"device_lists"`
	DeviceOneTimeKeysCount map[string]int `json:"device_one_time_keys_count"`
}

func (*GetSyncResponse) Decode

func (res *GetSyncResponse) Decode(input []byte) error

func (*GetSyncResponse) Encode

func (res *GetSyncResponse) Encode() ([]byte, error)

type GetThirdPartyLocationByProtocolRequest

type GetThirdPartyLocationByProtocolRequest struct {
	Protocol     string `json:"protocol"`
	SearchFields string `json:"searchFields"`
}

GET /_matrix/client/r0/thirdparty/location/{protocol}

func (*GetThirdPartyLocationByProtocolRequest) Decode

func (externalReq *GetThirdPartyLocationByProtocolRequest) Decode(input []byte) error

func (*GetThirdPartyLocationByProtocolRequest) Encode

func (externalReq *GetThirdPartyLocationByProtocolRequest) Encode() ([]byte, error)

type GetThirdPartyLocationByProtocolResponse

type GetThirdPartyLocationByProtocolResponse struct {
	Body []Location `json:"<body"`
}

type GetThirdPartyLocationRequest

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

GET /_matrix/client/r0/thirdparty/location

func (*GetThirdPartyLocationRequest) Decode

func (externalReq *GetThirdPartyLocationRequest) Decode(input []byte) error

func (*GetThirdPartyLocationRequest) Encode

func (externalReq *GetThirdPartyLocationRequest) Encode() ([]byte, error)

type GetThirdPartyLocationResponse

type GetThirdPartyLocationResponse struct {
	Body []Location `json:"<body>"`
}

type GetThirdPartyProtocalByNameRequest

type GetThirdPartyProtocalByNameRequest struct {
	Protocol string `json:"protocol"`
}

GET /_matrix/client/r0/thirdparty/protocol/{protocol}

func (*GetThirdPartyProtocalByNameRequest) Decode

func (externalReq *GetThirdPartyProtocalByNameRequest) Decode(input []byte) error

func (*GetThirdPartyProtocalByNameRequest) Encode

func (externalReq *GetThirdPartyProtocalByNameRequest) Encode() ([]byte, error)

type GetThirdPartyProtocalByNameResponse

type GetThirdPartyProtocalByNameResponse struct {
	UserFields     []string              `json:"user_fields"`
	LocationFields []string              `json:"location_fields"`
	Icon           string                `json:"icon"`
	FieldsTypes    map[string]FieldsType `json:"fields_types"`
	Instances      []ProtocolInstance    `json:"instances"`
}

type GetThirdPartyProtocalsResponse

type GetThirdPartyProtocalsResponse struct {
	UserFields     []string              `json:"user_fields"`
	LocationFields []string              `json:"location_fields"`
	Icon           string                `json:"icon"`
	FieldsTypes    map[string]FieldsType `json:"fields_types"`
	Instances      []ProtocolInstance    `json:"instances"`
}

GET /_matrix/client/r0/thirdparty/protocols

type GetThirdPartyUserByProtocolRequest

type GetThirdPartyUserByProtocolRequest struct {
	Protocol string `json:"protocol"`
	Fields   string `json:"fields..."`
}

GET /_matrix/client/r0/thirdparty/user/{protocol}

func (*GetThirdPartyUserByProtocolRequest) Decode

func (externalReq *GetThirdPartyUserByProtocolRequest) Decode(input []byte) error

func (*GetThirdPartyUserByProtocolRequest) Encode

func (externalReq *GetThirdPartyUserByProtocolRequest) Encode() ([]byte, error)

type GetThirdPartyUserByProtocolResponse

type GetThirdPartyUserByProtocolResponse struct {
	Body []ThirdPartyUser `json:"<body>"`
}

type GetThirdPartyUserRequest

type GetThirdPartyUserRequest struct {
	UserID string `json:"userid"`
}

GET /_matrix/client/r0/thirdparty/user

func (*GetThirdPartyUserRequest) Decode

func (externalReq *GetThirdPartyUserRequest) Decode(input []byte) error

func (*GetThirdPartyUserRequest) Encode

func (externalReq *GetThirdPartyUserRequest) Encode() ([]byte, error)

type GetThirdPartyUserResponse

type GetThirdPartyUserResponse struct {
	Body []ThirdPartyUser `json:"<body>"`
}

type GetThreePIDsResponse

type GetThreePIDsResponse struct {
	ThreePIDs []ThreePID `json:"threepids"`
}

func (*GetThreePIDsResponse) Decode

func (res *GetThreePIDsResponse) Decode(input []byte) error

func (*GetThreePIDsResponse) Encode

func (res *GetThreePIDsResponse) Encode() ([]byte, error)

type GetTurnServerResponse

type GetTurnServerResponse struct {
	UserName string   `json:"username"`
	Password string   `json:"password"`
	Uris     []string `json:"uris"`
	TTL      int      `json:"ttl"`
}

GET /_matrix/client/r0/voip/turnServer

func (*GetTurnServerResponse) Decode

func (res *GetTurnServerResponse) Decode(input []byte) error

func (*GetTurnServerResponse) Encode

func (res *GetTurnServerResponse) Encode() ([]byte, error)

type GetTurnServerResponseCapn

type GetTurnServerResponseCapn struct{ capnp.Struct }

func NewGetTurnServerResponseCapn

func NewGetTurnServerResponseCapn(s *capnp.Segment) (GetTurnServerResponseCapn, error)

func NewRootGetTurnServerResponseCapn

func NewRootGetTurnServerResponseCapn(s *capnp.Segment) (GetTurnServerResponseCapn, error)

func ReadRootGetTurnServerResponseCapn

func ReadRootGetTurnServerResponseCapn(msg *capnp.Message) (GetTurnServerResponseCapn, error)

func (GetTurnServerResponseCapn) HasPassword

func (s GetTurnServerResponseCapn) HasPassword() bool

func (GetTurnServerResponseCapn) HasUris

func (s GetTurnServerResponseCapn) HasUris() bool

func (GetTurnServerResponseCapn) HasUserName

func (s GetTurnServerResponseCapn) HasUserName() bool

func (GetTurnServerResponseCapn) NewUris

NewUris sets the uris field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (GetTurnServerResponseCapn) Password

func (s GetTurnServerResponseCapn) Password() (string, error)

func (GetTurnServerResponseCapn) PasswordBytes

func (s GetTurnServerResponseCapn) PasswordBytes() ([]byte, error)

func (GetTurnServerResponseCapn) SetPassword

func (s GetTurnServerResponseCapn) SetPassword(v string) error

func (GetTurnServerResponseCapn) SetTTL

func (s GetTurnServerResponseCapn) SetTTL(v int64)

func (GetTurnServerResponseCapn) SetUris

func (GetTurnServerResponseCapn) SetUserName

func (s GetTurnServerResponseCapn) SetUserName(v string) error

func (GetTurnServerResponseCapn) String

func (s GetTurnServerResponseCapn) String() string

func (GetTurnServerResponseCapn) TTL

func (GetTurnServerResponseCapn) Uris

func (GetTurnServerResponseCapn) UserName

func (s GetTurnServerResponseCapn) UserName() (string, error)

func (GetTurnServerResponseCapn) UserNameBytes

func (s GetTurnServerResponseCapn) UserNameBytes() ([]byte, error)

type GetTurnServerResponseCapn_List

type GetTurnServerResponseCapn_List struct{ capnp.List }

GetTurnServerResponseCapn_List is a list of GetTurnServerResponseCapn.

func NewGetTurnServerResponseCapn_List

func NewGetTurnServerResponseCapn_List(s *capnp.Segment, sz int32) (GetTurnServerResponseCapn_List, error)

NewGetTurnServerResponseCapn creates a new list of GetTurnServerResponseCapn.

func (GetTurnServerResponseCapn_List) At

func (GetTurnServerResponseCapn_List) Set

func (GetTurnServerResponseCapn_List) String

type GetTurnServerResponseCapn_Promise

type GetTurnServerResponseCapn_Promise struct{ *capnp.Pipeline }

GetTurnServerResponseCapn_Promise is a wrapper for a GetTurnServerResponseCapn promised by a client call.

func (GetTurnServerResponseCapn_Promise) Struct

type GetUserFilterRequest

type GetUserFilterRequest struct {
	UserID   string `json:"user_id"`
	FilterID string `json:"filter_id"`
}

GET /_matrix/client/r0/user/{userId}/filter/{filterId}

func (*GetUserFilterRequest) Decode

func (externalReq *GetUserFilterRequest) Decode(input []byte) error

func (*GetUserFilterRequest) Encode

func (externalReq *GetUserFilterRequest) Encode() ([]byte, error)

type GetUserFilterRequestCapn

type GetUserFilterRequestCapn struct{ capnp.Struct }

func NewGetUserFilterRequestCapn

func NewGetUserFilterRequestCapn(s *capnp.Segment) (GetUserFilterRequestCapn, error)

func NewRootGetUserFilterRequestCapn

func NewRootGetUserFilterRequestCapn(s *capnp.Segment) (GetUserFilterRequestCapn, error)

func ReadRootGetUserFilterRequestCapn

func ReadRootGetUserFilterRequestCapn(msg *capnp.Message) (GetUserFilterRequestCapn, error)

func (GetUserFilterRequestCapn) FilterID

func (s GetUserFilterRequestCapn) FilterID() (string, error)

func (GetUserFilterRequestCapn) FilterIDBytes

func (s GetUserFilterRequestCapn) FilterIDBytes() ([]byte, error)

func (GetUserFilterRequestCapn) HasFilterID

func (s GetUserFilterRequestCapn) HasFilterID() bool

func (GetUserFilterRequestCapn) HasUserID

func (s GetUserFilterRequestCapn) HasUserID() bool

func (GetUserFilterRequestCapn) SetFilterID

func (s GetUserFilterRequestCapn) SetFilterID(v string) error

func (GetUserFilterRequestCapn) SetUserID

func (s GetUserFilterRequestCapn) SetUserID(v string) error

func (GetUserFilterRequestCapn) String

func (s GetUserFilterRequestCapn) String() string

func (GetUserFilterRequestCapn) UserID

func (s GetUserFilterRequestCapn) UserID() (string, error)

func (GetUserFilterRequestCapn) UserIDBytes

func (s GetUserFilterRequestCapn) UserIDBytes() ([]byte, error)

type GetUserFilterRequestCapn_List

type GetUserFilterRequestCapn_List struct{ capnp.List }

GetUserFilterRequestCapn_List is a list of GetUserFilterRequestCapn.

func NewGetUserFilterRequestCapn_List

func NewGetUserFilterRequestCapn_List(s *capnp.Segment, sz int32) (GetUserFilterRequestCapn_List, error)

NewGetUserFilterRequestCapn creates a new list of GetUserFilterRequestCapn.

func (GetUserFilterRequestCapn_List) At

func (GetUserFilterRequestCapn_List) Set

func (GetUserFilterRequestCapn_List) String

type GetUserFilterRequestCapn_Promise

type GetUserFilterRequestCapn_Promise struct{ *capnp.Pipeline }

GetUserFilterRequestCapn_Promise is a wrapper for a GetUserFilterRequestCapn promised by a client call.

func (GetUserFilterRequestCapn_Promise) Struct

type GetUserFilterResponse

type GetUserFilterResponse struct {
	AccountData gomatrix.FilterPart `json:"account_data,omitempty"`
	EventFields []string            `json:"event_fields,omitempty"`
	EventFormat string              `json:"event_format,omitempty"`
	Presence    gomatrix.FilterPart `json:"presence,omitempty"`
	Room        struct {
		AccountData  gomatrix.FilterPart `json:"account_data,omitempty"`
		Ephemeral    gomatrix.FilterPart `json:"ephemeral,omitempty"`
		IncludeLeave bool                `json:"include_leave,omitempty"`
		NotRooms     []string            `json:"not_rooms,omitempty"`
		Rooms        []string            `json:"rooms,omitempty"`
		State        gomatrix.FilterPart `json:"state,omitempty"`
		Timeline     gomatrix.FilterPart `json:"timeline,omitempty"`
	} `json:"room,omitempty"`
}

func (*GetUserFilterResponse) Decode

func (res *GetUserFilterResponse) Decode(input []byte) error

func (*GetUserFilterResponse) Encode

func (res *GetUserFilterResponse) Encode() ([]byte, error)

type GetUserInfoListRequest

type GetUserInfoListRequest struct {
	UserIDs []string `json:"user_ids"`
}

GET /_matrix/client/r0/user_info_list

func (*GetUserInfoListRequest) Decode

func (externalReq *GetUserInfoListRequest) Decode(data []byte) error

func (*GetUserInfoListRequest) Encode

func (externalReq *GetUserInfoListRequest) Encode() ([]byte, error)

type GetUserInfoListResponse

type GetUserInfoListResponse struct {
	UserInfoList []UserInfoItem `json:"user_info_list"`
}

func (*GetUserInfoListResponse) Decode

func (res *GetUserInfoListResponse) Decode(input []byte) error

func (*GetUserInfoListResponse) Encode

func (r *GetUserInfoListResponse) Encode() ([]byte, error)

type GetUserInfoRequest

type GetUserInfoRequest struct {
	UserID string `json:"userID"`
}

GET /_matrix/client/r0/user_info/{userID}

func (*GetUserInfoRequest) Decode

func (externalReq *GetUserInfoRequest) Decode(data []byte) error

func (*GetUserInfoRequest) Encode

func (externalReq *GetUserInfoRequest) Encode() ([]byte, error)

type GetUserInfoResponse

type GetUserInfoResponse struct {
	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"`
}

func (*GetUserInfoResponse) Decode

func (res *GetUserInfoResponse) Decode(input []byte) error

func (*GetUserInfoResponse) Encode

func (r *GetUserInfoResponse) Encode() ([]byte, error)

type GetUserPresenceListRequest

type GetUserPresenceListRequest struct {
	UserID string `json:"userId"`
}

GET /_matrix/client/r0/presence/list/{userId}

type GetUserPresenceListRequestCapn

type GetUserPresenceListRequestCapn struct{ capnp.Struct }

func NewGetUserPresenceListRequestCapn

func NewGetUserPresenceListRequestCapn(s *capnp.Segment) (GetUserPresenceListRequestCapn, error)

func NewRootGetUserPresenceListRequestCapn

func NewRootGetUserPresenceListRequestCapn(s *capnp.Segment) (GetUserPresenceListRequestCapn, error)

func ReadRootGetUserPresenceListRequestCapn

func ReadRootGetUserPresenceListRequestCapn(msg *capnp.Message) (GetUserPresenceListRequestCapn, error)

func (GetUserPresenceListRequestCapn) HasUserID

func (s GetUserPresenceListRequestCapn) HasUserID() bool

func (GetUserPresenceListRequestCapn) SetUserID

func (GetUserPresenceListRequestCapn) String

func (GetUserPresenceListRequestCapn) UserID

func (GetUserPresenceListRequestCapn) UserIDBytes

func (s GetUserPresenceListRequestCapn) UserIDBytes() ([]byte, error)

type GetUserPresenceListRequestCapn_List

type GetUserPresenceListRequestCapn_List struct{ capnp.List }

GetUserPresenceListRequestCapn_List is a list of GetUserPresenceListRequestCapn.

func NewGetUserPresenceListRequestCapn_List

func NewGetUserPresenceListRequestCapn_List(s *capnp.Segment, sz int32) (GetUserPresenceListRequestCapn_List, error)

NewGetUserPresenceListRequestCapn creates a new list of GetUserPresenceListRequestCapn.

func (GetUserPresenceListRequestCapn_List) At

func (GetUserPresenceListRequestCapn_List) Set

func (GetUserPresenceListRequestCapn_List) String

type GetUserPresenceListRequestCapn_Promise

type GetUserPresenceListRequestCapn_Promise struct{ *capnp.Pipeline }

GetUserPresenceListRequestCapn_Promise is a wrapper for a GetUserPresenceListRequestCapn promised by a client call.

func (GetUserPresenceListRequestCapn_Promise) Struct

type GetUserPresenceListResponse

type GetUserPresenceListResponse []PresenceEvent

type GetUserPresenceRequest

type GetUserPresenceRequest struct {
	UserID string `json:"userId"`
}

GET /_matrix/client/r0/presence/{userId}/status

type GetUserPresenceRequestCapn

type GetUserPresenceRequestCapn struct{ capnp.Struct }

func NewGetUserPresenceRequestCapn

func NewGetUserPresenceRequestCapn(s *capnp.Segment) (GetUserPresenceRequestCapn, error)

func NewRootGetUserPresenceRequestCapn

func NewRootGetUserPresenceRequestCapn(s *capnp.Segment) (GetUserPresenceRequestCapn, error)

func ReadRootGetUserPresenceRequestCapn

func ReadRootGetUserPresenceRequestCapn(msg *capnp.Message) (GetUserPresenceRequestCapn, error)

func (GetUserPresenceRequestCapn) HasUserID

func (s GetUserPresenceRequestCapn) HasUserID() bool

func (GetUserPresenceRequestCapn) SetUserID

func (s GetUserPresenceRequestCapn) SetUserID(v string) error

func (GetUserPresenceRequestCapn) String

func (GetUserPresenceRequestCapn) UserID

func (s GetUserPresenceRequestCapn) UserID() (string, error)

func (GetUserPresenceRequestCapn) UserIDBytes

func (s GetUserPresenceRequestCapn) UserIDBytes() ([]byte, error)

type GetUserPresenceRequestCapn_List

type GetUserPresenceRequestCapn_List struct{ capnp.List }

GetUserPresenceRequestCapn_List is a list of GetUserPresenceRequestCapn.

func NewGetUserPresenceRequestCapn_List

func NewGetUserPresenceRequestCapn_List(s *capnp.Segment, sz int32) (GetUserPresenceRequestCapn_List, error)

NewGetUserPresenceRequestCapn creates a new list of GetUserPresenceRequestCapn.

func (GetUserPresenceRequestCapn_List) At

func (GetUserPresenceRequestCapn_List) Set

func (GetUserPresenceRequestCapn_List) String

type GetUserPresenceRequestCapn_Promise

type GetUserPresenceRequestCapn_Promise struct{ *capnp.Pipeline }

GetUserPresenceRequestCapn_Promise is a wrapper for a GetUserPresenceRequestCapn promised by a client call.

func (GetUserPresenceRequestCapn_Promise) Struct

type GetUserPresenceResponse

type GetUserPresenceResponse struct {
	Presence        string  `json:"presence"`
	LastActiveAgo   int     `json:"last_active_ago"`
	Status          *string `json:"status_msg"`
	CurrentlyActive bool    `json:"currently_active"`
}

type GetUserPresenceResponseCapn

type GetUserPresenceResponseCapn struct{ capnp.Struct }

func NewGetUserPresenceResponseCapn

func NewGetUserPresenceResponseCapn(s *capnp.Segment) (GetUserPresenceResponseCapn, error)

func NewRootGetUserPresenceResponseCapn

func NewRootGetUserPresenceResponseCapn(s *capnp.Segment) (GetUserPresenceResponseCapn, error)

func ReadRootGetUserPresenceResponseCapn

func ReadRootGetUserPresenceResponseCapn(msg *capnp.Message) (GetUserPresenceResponseCapn, error)

func (GetUserPresenceResponseCapn) CurrentlyActive

func (s GetUserPresenceResponseCapn) CurrentlyActive() bool

func (GetUserPresenceResponseCapn) HasPresence

func (s GetUserPresenceResponseCapn) HasPresence() bool

func (GetUserPresenceResponseCapn) HasStatus

func (s GetUserPresenceResponseCapn) HasStatus() bool

func (GetUserPresenceResponseCapn) LastActiveAgo

func (s GetUserPresenceResponseCapn) LastActiveAgo() int64

func (GetUserPresenceResponseCapn) Presence

func (s GetUserPresenceResponseCapn) Presence() (string, error)

func (GetUserPresenceResponseCapn) PresenceBytes

func (s GetUserPresenceResponseCapn) PresenceBytes() ([]byte, error)

func (GetUserPresenceResponseCapn) SetCurrentlyActive

func (s GetUserPresenceResponseCapn) SetCurrentlyActive(v bool)

func (GetUserPresenceResponseCapn) SetLastActiveAgo

func (s GetUserPresenceResponseCapn) SetLastActiveAgo(v int64)

func (GetUserPresenceResponseCapn) SetPresence

func (s GetUserPresenceResponseCapn) SetPresence(v string) error

func (GetUserPresenceResponseCapn) SetStatus

func (s GetUserPresenceResponseCapn) SetStatus(v string) error

func (GetUserPresenceResponseCapn) Status

func (GetUserPresenceResponseCapn) StatusBytes

func (s GetUserPresenceResponseCapn) StatusBytes() ([]byte, error)

func (GetUserPresenceResponseCapn) String

type GetUserPresenceResponseCapn_List

type GetUserPresenceResponseCapn_List struct{ capnp.List }

GetUserPresenceResponseCapn_List is a list of GetUserPresenceResponseCapn.

func NewGetUserPresenceResponseCapn_List

func NewGetUserPresenceResponseCapn_List(s *capnp.Segment, sz int32) (GetUserPresenceResponseCapn_List, error)

NewGetUserPresenceResponseCapn creates a new list of GetUserPresenceResponseCapn.

func (GetUserPresenceResponseCapn_List) At

func (GetUserPresenceResponseCapn_List) Set

func (GetUserPresenceResponseCapn_List) String

type GetUserPresenceResponseCapn_Promise

type GetUserPresenceResponseCapn_Promise struct{ *capnp.Pipeline }

GetUserPresenceResponseCapn_Promise is a wrapper for a GetUserPresenceResponseCapn promised by a client call.

func (GetUserPresenceResponseCapn_Promise) Struct

type GetUserProfileAvatarURLRequest

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

GET /_matrix/client/r0/profile/{userId}/avatar_url

type GetUserProfileAvatarURLRequestCapn

type GetUserProfileAvatarURLRequestCapn struct{ capnp.Struct }

func NewGetUserProfileAvatarURLRequestCapn

func NewGetUserProfileAvatarURLRequestCapn(s *capnp.Segment) (GetUserProfileAvatarURLRequestCapn, error)

func NewRootGetUserProfileAvatarURLRequestCapn

func NewRootGetUserProfileAvatarURLRequestCapn(s *capnp.Segment) (GetUserProfileAvatarURLRequestCapn, error)

func ReadRootGetUserProfileAvatarURLRequestCapn

func ReadRootGetUserProfileAvatarURLRequestCapn(msg *capnp.Message) (GetUserProfileAvatarURLRequestCapn, error)

func (GetUserProfileAvatarURLRequestCapn) HasUserID

func (GetUserProfileAvatarURLRequestCapn) SetUserID

func (GetUserProfileAvatarURLRequestCapn) String

func (GetUserProfileAvatarURLRequestCapn) UserID

func (GetUserProfileAvatarURLRequestCapn) UserIDBytes

func (s GetUserProfileAvatarURLRequestCapn) UserIDBytes() ([]byte, error)

type GetUserProfileAvatarURLRequestCapn_List

type GetUserProfileAvatarURLRequestCapn_List struct{ capnp.List }

GetUserProfileAvatarURLRequestCapn_List is a list of GetUserProfileAvatarURLRequestCapn.

func NewGetUserProfileAvatarURLRequestCapn_List

func NewGetUserProfileAvatarURLRequestCapn_List(s *capnp.Segment, sz int32) (GetUserProfileAvatarURLRequestCapn_List, error)

NewGetUserProfileAvatarURLRequestCapn creates a new list of GetUserProfileAvatarURLRequestCapn.

func (GetUserProfileAvatarURLRequestCapn_List) At

func (GetUserProfileAvatarURLRequestCapn_List) Set

func (GetUserProfileAvatarURLRequestCapn_List) String

type GetUserProfileAvatarURLRequestCapn_Promise

type GetUserProfileAvatarURLRequestCapn_Promise struct{ *capnp.Pipeline }

GetUserProfileAvatarURLRequestCapn_Promise is a wrapper for a GetUserProfileAvatarURLRequestCapn promised by a client call.

func (GetUserProfileAvatarURLRequestCapn_Promise) Struct

type GetUserProfileDisplayNameRequest

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

GET /_matrix/client/r0/profile/{userId}/displayname

type GetUserProfileDisplayNameRequestCapn

type GetUserProfileDisplayNameRequestCapn struct{ capnp.Struct }

func NewGetUserProfileDisplayNameRequestCapn

func NewGetUserProfileDisplayNameRequestCapn(s *capnp.Segment) (GetUserProfileDisplayNameRequestCapn, error)

func NewRootGetUserProfileDisplayNameRequestCapn

func NewRootGetUserProfileDisplayNameRequestCapn(s *capnp.Segment) (GetUserProfileDisplayNameRequestCapn, error)

func ReadRootGetUserProfileDisplayNameRequestCapn

func ReadRootGetUserProfileDisplayNameRequestCapn(msg *capnp.Message) (GetUserProfileDisplayNameRequestCapn, error)

func (GetUserProfileDisplayNameRequestCapn) HasUserID

func (GetUserProfileDisplayNameRequestCapn) SetUserID

func (GetUserProfileDisplayNameRequestCapn) String

func (GetUserProfileDisplayNameRequestCapn) UserID

func (GetUserProfileDisplayNameRequestCapn) UserIDBytes

func (s GetUserProfileDisplayNameRequestCapn) UserIDBytes() ([]byte, error)

type GetUserProfileDisplayNameRequestCapn_List

type GetUserProfileDisplayNameRequestCapn_List struct{ capnp.List }

GetUserProfileDisplayNameRequestCapn_List is a list of GetUserProfileDisplayNameRequestCapn.

func NewGetUserProfileDisplayNameRequestCapn_List

func NewGetUserProfileDisplayNameRequestCapn_List(s *capnp.Segment, sz int32) (GetUserProfileDisplayNameRequestCapn_List, error)

NewGetUserProfileDisplayNameRequestCapn creates a new list of GetUserProfileDisplayNameRequestCapn.

func (GetUserProfileDisplayNameRequestCapn_List) At

func (GetUserProfileDisplayNameRequestCapn_List) Set

func (GetUserProfileDisplayNameRequestCapn_List) String

type GetUserProfileDisplayNameRequestCapn_Promise

type GetUserProfileDisplayNameRequestCapn_Promise struct{ *capnp.Pipeline }

GetUserProfileDisplayNameRequestCapn_Promise is a wrapper for a GetUserProfileDisplayNameRequestCapn promised by a client call.

func (GetUserProfileDisplayNameRequestCapn_Promise) Struct

type GetUserProfileRequest

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

GET /_matrix/client/r0/profile/{userId}

type GetUserProfileRequestCapn

type GetUserProfileRequestCapn struct{ capnp.Struct }

func NewGetUserProfileRequestCapn

func NewGetUserProfileRequestCapn(s *capnp.Segment) (GetUserProfileRequestCapn, error)

func NewRootGetUserProfileRequestCapn

func NewRootGetUserProfileRequestCapn(s *capnp.Segment) (GetUserProfileRequestCapn, error)

func ReadRootGetUserProfileRequestCapn

func ReadRootGetUserProfileRequestCapn(msg *capnp.Message) (GetUserProfileRequestCapn, error)

func (GetUserProfileRequestCapn) HasUserID

func (s GetUserProfileRequestCapn) HasUserID() bool

func (GetUserProfileRequestCapn) SetUserID

func (s GetUserProfileRequestCapn) SetUserID(v string) error

func (GetUserProfileRequestCapn) String

func (s GetUserProfileRequestCapn) String() string

func (GetUserProfileRequestCapn) UserID

func (s GetUserProfileRequestCapn) UserID() (string, error)

func (GetUserProfileRequestCapn) UserIDBytes

func (s GetUserProfileRequestCapn) UserIDBytes() ([]byte, error)

type GetUserProfileRequestCapn_List

type GetUserProfileRequestCapn_List struct{ capnp.List }

GetUserProfileRequestCapn_List is a list of GetUserProfileRequestCapn.

func NewGetUserProfileRequestCapn_List

func NewGetUserProfileRequestCapn_List(s *capnp.Segment, sz int32) (GetUserProfileRequestCapn_List, error)

NewGetUserProfileRequestCapn creates a new list of GetUserProfileRequestCapn.

func (GetUserProfileRequestCapn_List) At

func (GetUserProfileRequestCapn_List) Set

func (GetUserProfileRequestCapn_List) String

type GetUserProfileRequestCapn_Promise

type GetUserProfileRequestCapn_Promise struct{ *capnp.Pipeline }

GetUserProfileRequestCapn_Promise is a wrapper for a GetUserProfileRequestCapn promised by a client call.

func (GetUserProfileRequestCapn_Promise) Struct

type GetUserUnread

type GetUserUnread struct {
	UserID string `json:"userID"`
}

GET /unread/{userID}

func (*GetUserUnread) Decode

func (externalReq *GetUserUnread) Decode(input []byte) error

func (*GetUserUnread) Encode

func (externalReq *GetUserUnread) Encode() ([]byte, error)

type GetWhoIsRequest

type GetWhoIsRequest struct {
	UserID string `json:"userId"`
}

GET /_matrix/client/r0/admin/whois/{userId}

func (*GetWhoIsRequest) Decode

func (externalReq *GetWhoIsRequest) Decode(input []byte) error

func (*GetWhoIsRequest) Encode

func (externalReq *GetWhoIsRequest) Encode() ([]byte, error)

type GetWhoIsResponse

type GetWhoIsResponse struct {
	UserID  string                `json:"user_id"`
	Devices map[string]DeviceInfo `json:"devices"`
}

type Invite

type Invite struct {
	DisplayName string `json:"displayname,omitempty"`
	Signed      Signed `json:"signed,omitempty"`
}

type Invite3pid

type Invite3pid struct {
	IDServer string   `json:"id_server"`
	Medium   string   `json:"medium"`
	Address  []string `json:"address"`
}

type Invite3pidCapn

type Invite3pidCapn struct{ capnp.Struct }

func NewInvite3pidCapn

func NewInvite3pidCapn(s *capnp.Segment) (Invite3pidCapn, error)

func NewRootInvite3pidCapn

func NewRootInvite3pidCapn(s *capnp.Segment) (Invite3pidCapn, error)

func ReadRootInvite3pidCapn

func ReadRootInvite3pidCapn(msg *capnp.Message) (Invite3pidCapn, error)

func (Invite3pidCapn) Address

func (s Invite3pidCapn) Address() (capnp.TextList, error)

func (Invite3pidCapn) HasAddress

func (s Invite3pidCapn) HasAddress() bool

func (Invite3pidCapn) HasIDServer

func (s Invite3pidCapn) HasIDServer() bool

func (Invite3pidCapn) HasMedium

func (s Invite3pidCapn) HasMedium() bool

func (Invite3pidCapn) IDServer

func (s Invite3pidCapn) IDServer() (string, error)

func (Invite3pidCapn) IDServerBytes

func (s Invite3pidCapn) IDServerBytes() ([]byte, error)

func (Invite3pidCapn) Medium

func (s Invite3pidCapn) Medium() (string, error)

func (Invite3pidCapn) MediumBytes

func (s Invite3pidCapn) MediumBytes() ([]byte, error)

func (Invite3pidCapn) NewAddress

func (s Invite3pidCapn) NewAddress(n int32) (capnp.TextList, error)

NewAddress sets the address field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (Invite3pidCapn) SetAddress

func (s Invite3pidCapn) SetAddress(v capnp.TextList) error

func (Invite3pidCapn) SetIDServer

func (s Invite3pidCapn) SetIDServer(v string) error

func (Invite3pidCapn) SetMedium

func (s Invite3pidCapn) SetMedium(v string) error

func (Invite3pidCapn) String

func (s Invite3pidCapn) String() string

type Invite3pidCapn_List

type Invite3pidCapn_List struct{ capnp.List }

Invite3pidCapn_List is a list of Invite3pidCapn.

func NewInvite3pidCapn_List

func NewInvite3pidCapn_List(s *capnp.Segment, sz int32) (Invite3pidCapn_List, error)

NewInvite3pidCapn creates a new list of Invite3pidCapn.

func (Invite3pidCapn_List) At

func (Invite3pidCapn_List) Set

func (Invite3pidCapn_List) String

func (s Invite3pidCapn_List) String() string

type Invite3pidCapn_Promise

type Invite3pidCapn_Promise struct{ *capnp.Pipeline }

Invite3pidCapn_Promise is a wrapper for a Invite3pidCapn promised by a client call.

func (Invite3pidCapn_Promise) Struct

type InviteCapn

type InviteCapn struct{ capnp.Struct }

func NewInviteCapn

func NewInviteCapn(s *capnp.Segment) (InviteCapn, error)

func NewRootInviteCapn

func NewRootInviteCapn(s *capnp.Segment) (InviteCapn, error)

func ReadRootInviteCapn

func ReadRootInviteCapn(msg *capnp.Message) (InviteCapn, error)

func (InviteCapn) DisplayName

func (s InviteCapn) DisplayName() (string, error)

func (InviteCapn) DisplayNameBytes

func (s InviteCapn) DisplayNameBytes() ([]byte, error)

func (InviteCapn) HasDisplayName

func (s InviteCapn) HasDisplayName() bool

func (InviteCapn) HasSigned

func (s InviteCapn) HasSigned() bool

func (InviteCapn) NewSigned

func (s InviteCapn) NewSigned() (SignedCapn, error)

NewSigned sets the signed field to a newly allocated SignedCapn struct, preferring placement in s's segment.

func (InviteCapn) SetDisplayName

func (s InviteCapn) SetDisplayName(v string) error

func (InviteCapn) SetSigned

func (s InviteCapn) SetSigned(v SignedCapn) error

func (InviteCapn) Signed

func (s InviteCapn) Signed() (SignedCapn, error)

func (InviteCapn) String

func (s InviteCapn) String() string

type InviteCapn_List

type InviteCapn_List struct{ capnp.List }

InviteCapn_List is a list of InviteCapn.

func NewInviteCapn_List

func NewInviteCapn_List(s *capnp.Segment, sz int32) (InviteCapn_List, error)

NewInviteCapn creates a new list of InviteCapn.

func (InviteCapn_List) At

func (s InviteCapn_List) At(i int) InviteCapn

func (InviteCapn_List) Set

func (s InviteCapn_List) Set(i int, v InviteCapn) error

func (InviteCapn_List) String

func (s InviteCapn_List) String() string

type InviteCapn_Promise

type InviteCapn_Promise struct{ *capnp.Pipeline }

InviteCapn_Promise is a wrapper for a InviteCapn promised by a client call.

func (InviteCapn_Promise) Signed

func (InviteCapn_Promise) Struct

func (p InviteCapn_Promise) Struct() (InviteCapn, error)

type InviteEvent

type InviteEvent struct {
	Content        []byte       `json:"content,omitempty"`
	Type           string       `json:"type,omitempty"`
	EventID        string       `json:"event_id,omitempty"`
	Sender         string       `json:"sender,omitempty"`
	OriginServerTS int          `json:"origin_server_ts,omitempty"`
	Unsigned       UnsignedData `json:"unsigned,omitempty"`
	RoomID         string       `json:"room_id"`
	PrevContent    EventContent `json:"prev_content,omitempty"`
	StateKey       string       `json:"state_key,omitempty"`
}

type InviteState

type InviteState struct {
	Events []StrippedState `json:"events"`
}

type InvitedRoom

type InvitedRoom struct {
	InviteState InviteState `json:"invite_state"`
}

type JoinedRoom

type JoinedRoom struct {
	State       State               `json:"state"`
	Timeline    Timeline            `json:"timeline"`
	Ephemeral   Ephemeral           `json:"ephemeral"`
	AccountData AccountData         `json:"account_data"`
	Unread      UnreadNotifications `json:"unread_notifications"`
}

type LeftRoom

type LeftRoom struct {
	State       State       `json:"state,omitempty"`
	Timeline    Timeline    `json:"timeline,omitempty"`
	AccountData AccountData `json:"account_data,omitempty"`
}

type LegacyRegisterRequest

type LegacyRegisterRequest struct {
	Password string `json:"password"`
	Username string `json:"user"`
	Admin    bool   `json:"admin"`
	Type     string `json:"type"`
	Mac      []byte `json:"mac"`
}

legacyRegisterRequest represents the submitted registration request for v1 API.

func (*LegacyRegisterRequest) Decode

func (externalReq *LegacyRegisterRequest) Decode(input []byte) error

func (*LegacyRegisterRequest) Encode

func (externalReq *LegacyRegisterRequest) Encode() ([]byte, error)

type LegacyRegisterRequestCapn

type LegacyRegisterRequestCapn struct{ capnp.Struct }

func NewLegacyRegisterRequestCapn

func NewLegacyRegisterRequestCapn(s *capnp.Segment) (LegacyRegisterRequestCapn, error)

func NewRootLegacyRegisterRequestCapn

func NewRootLegacyRegisterRequestCapn(s *capnp.Segment) (LegacyRegisterRequestCapn, error)

func ReadRootLegacyRegisterRequestCapn

func ReadRootLegacyRegisterRequestCapn(msg *capnp.Message) (LegacyRegisterRequestCapn, error)

func (LegacyRegisterRequestCapn) Admin

func (s LegacyRegisterRequestCapn) Admin() bool

func (LegacyRegisterRequestCapn) HasMac

func (s LegacyRegisterRequestCapn) HasMac() bool

func (LegacyRegisterRequestCapn) HasPassword

func (s LegacyRegisterRequestCapn) HasPassword() bool

func (LegacyRegisterRequestCapn) HasType

func (s LegacyRegisterRequestCapn) HasType() bool

func (LegacyRegisterRequestCapn) HasUsername

func (s LegacyRegisterRequestCapn) HasUsername() bool

func (LegacyRegisterRequestCapn) Mac

func (s LegacyRegisterRequestCapn) Mac() ([]byte, error)

func (LegacyRegisterRequestCapn) Password

func (s LegacyRegisterRequestCapn) Password() (string, error)

func (LegacyRegisterRequestCapn) PasswordBytes

func (s LegacyRegisterRequestCapn) PasswordBytes() ([]byte, error)

func (LegacyRegisterRequestCapn) SetAdmin

func (s LegacyRegisterRequestCapn) SetAdmin(v bool)

func (LegacyRegisterRequestCapn) SetMac

func (s LegacyRegisterRequestCapn) SetMac(v []byte) error

func (LegacyRegisterRequestCapn) SetPassword

func (s LegacyRegisterRequestCapn) SetPassword(v string) error

func (LegacyRegisterRequestCapn) SetType

func (s LegacyRegisterRequestCapn) SetType(v string) error

func (LegacyRegisterRequestCapn) SetUsername

func (s LegacyRegisterRequestCapn) SetUsername(v string) error

func (LegacyRegisterRequestCapn) String

func (s LegacyRegisterRequestCapn) String() string

func (LegacyRegisterRequestCapn) Type

func (LegacyRegisterRequestCapn) TypeBytes

func (s LegacyRegisterRequestCapn) TypeBytes() ([]byte, error)

func (LegacyRegisterRequestCapn) Username

func (s LegacyRegisterRequestCapn) Username() (string, error)

func (LegacyRegisterRequestCapn) UsernameBytes

func (s LegacyRegisterRequestCapn) UsernameBytes() ([]byte, error)

type LegacyRegisterRequestCapn_List

type LegacyRegisterRequestCapn_List struct{ capnp.List }

LegacyRegisterRequestCapn_List is a list of LegacyRegisterRequestCapn.

func NewLegacyRegisterRequestCapn_List

func NewLegacyRegisterRequestCapn_List(s *capnp.Segment, sz int32) (LegacyRegisterRequestCapn_List, error)

NewLegacyRegisterRequestCapn creates a new list of LegacyRegisterRequestCapn.

func (LegacyRegisterRequestCapn_List) At

func (LegacyRegisterRequestCapn_List) Set

func (LegacyRegisterRequestCapn_List) String

type LegacyRegisterRequestCapn_Promise

type LegacyRegisterRequestCapn_Promise struct{ *capnp.Pipeline }

LegacyRegisterRequestCapn_Promise is a wrapper for a LegacyRegisterRequestCapn promised by a client call.

func (LegacyRegisterRequestCapn_Promise) Struct

type Location

type Location struct {
	Alias    string      `json:"alias"`
	Protocol string      `json:"protocol"`
	Fields   interface{} `json:"fields"`
}

type MemberContent

type MemberContent struct {
	Membership       string    `json:"membership"`
	DisplayName      string    `json:"displayname"`
	AvatarURL        string    `json:"avatar_url"`
	Reason           string    `json:"reason,omitempty"`
	ThirdPartyInvite *TPInvite `json:"third_party_invite,omitempty"`
}

MemberContent is the event content for http://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-member

type MemberEvent

type MemberEvent struct {
	Content        []byte       `json:"content,omitempty"`
	Type           string       `json:"type,omitempty"`
	EventID        string       `json:"event_id,omitempty"`
	Sender         string       `json:"sender,omitempty"`
	OriginServerTS int          `json:"origin_server_ts,omitempty"`
	Unsigned       UnsignedData `json:"unsigned,omitempty"`
	RoomID         string       `json:"room_id"`
	PrevContent    EventContent `json:"prev_content,omitempty"`
	StateKey       string       `json:"state_key,omitempty"`
}

type Notification

type Notification struct {
	Actions    []interface{} `json:"actions"`
	Event      RoomEvent     `json:"event"`
	ProfileTag string        `json:"profile_tag"`
	Read       bool          `json:"read"`
	RoomID     string        `json:"room_id"`
	Ts         int           `json:"ts"`
}

type PaginationChunk

type PaginationChunk struct {
	Start string      `json:"start,omitempty"`
	End   string      `json:"end,omitempty"`
	Chunk []RoomEvent `json:"chunk,omitempty"`
}

type PaginationChunkCapn

type PaginationChunkCapn struct{ capnp.Struct }

func NewPaginationChunkCapn

func NewPaginationChunkCapn(s *capnp.Segment) (PaginationChunkCapn, error)

func NewRootPaginationChunkCapn

func NewRootPaginationChunkCapn(s *capnp.Segment) (PaginationChunkCapn, error)

func ReadRootPaginationChunkCapn

func ReadRootPaginationChunkCapn(msg *capnp.Message) (PaginationChunkCapn, error)

func (PaginationChunkCapn) Chunk

func (PaginationChunkCapn) End

func (s PaginationChunkCapn) End() (string, error)

func (PaginationChunkCapn) EndBytes

func (s PaginationChunkCapn) EndBytes() ([]byte, error)

func (PaginationChunkCapn) HasChunk

func (s PaginationChunkCapn) HasChunk() bool

func (PaginationChunkCapn) HasEnd

func (s PaginationChunkCapn) HasEnd() bool

func (PaginationChunkCapn) HasStart

func (s PaginationChunkCapn) HasStart() bool

func (PaginationChunkCapn) NewChunk

NewChunk sets the chunk field to a newly allocated RoomEventCapn_List, preferring placement in s's segment.

func (PaginationChunkCapn) SetChunk

func (PaginationChunkCapn) SetEnd

func (s PaginationChunkCapn) SetEnd(v string) error

func (PaginationChunkCapn) SetStart

func (s PaginationChunkCapn) SetStart(v string) error

func (PaginationChunkCapn) Start

func (s PaginationChunkCapn) Start() (string, error)

func (PaginationChunkCapn) StartBytes

func (s PaginationChunkCapn) StartBytes() ([]byte, error)

func (PaginationChunkCapn) String

func (s PaginationChunkCapn) String() string

type PaginationChunkCapn_List

type PaginationChunkCapn_List struct{ capnp.List }

PaginationChunkCapn_List is a list of PaginationChunkCapn.

func NewPaginationChunkCapn_List

func NewPaginationChunkCapn_List(s *capnp.Segment, sz int32) (PaginationChunkCapn_List, error)

NewPaginationChunkCapn creates a new list of PaginationChunkCapn.

func (PaginationChunkCapn_List) At

func (PaginationChunkCapn_List) Set

func (PaginationChunkCapn_List) String

func (s PaginationChunkCapn_List) String() string

type PaginationChunkCapn_Promise

type PaginationChunkCapn_Promise struct{ *capnp.Pipeline }

PaginationChunkCapn_Promise is a wrapper for a PaginationChunkCapn promised by a client call.

func (PaginationChunkCapn_Promise) Struct

type PostAccount3PIDDelRequest

type PostAccount3PIDDelRequest struct {
	Medium  string `json:"medium"`
	Address string `json:"address"`
}

POST /_matrix/client/r0/account/3pid/delete

func (*PostAccount3PIDDelRequest) Decode

func (externalReq *PostAccount3PIDDelRequest) Decode(input []byte) error

func (*PostAccount3PIDDelRequest) Encode

func (externalReq *PostAccount3PIDDelRequest) Encode() ([]byte, error)

type PostAccount3PIDDelRequestCapn

type PostAccount3PIDDelRequestCapn struct{ capnp.Struct }

func NewPostAccount3PIDDelRequestCapn

func NewPostAccount3PIDDelRequestCapn(s *capnp.Segment) (PostAccount3PIDDelRequestCapn, error)

func NewRootPostAccount3PIDDelRequestCapn

func NewRootPostAccount3PIDDelRequestCapn(s *capnp.Segment) (PostAccount3PIDDelRequestCapn, error)

func ReadRootPostAccount3PIDDelRequestCapn

func ReadRootPostAccount3PIDDelRequestCapn(msg *capnp.Message) (PostAccount3PIDDelRequestCapn, error)

func (PostAccount3PIDDelRequestCapn) Address

func (PostAccount3PIDDelRequestCapn) AddressBytes

func (s PostAccount3PIDDelRequestCapn) AddressBytes() ([]byte, error)

func (PostAccount3PIDDelRequestCapn) HasAddress

func (s PostAccount3PIDDelRequestCapn) HasAddress() bool

func (PostAccount3PIDDelRequestCapn) HasMedium

func (s PostAccount3PIDDelRequestCapn) HasMedium() bool

func (PostAccount3PIDDelRequestCapn) Medium

func (PostAccount3PIDDelRequestCapn) MediumBytes

func (s PostAccount3PIDDelRequestCapn) MediumBytes() ([]byte, error)

func (PostAccount3PIDDelRequestCapn) SetAddress

func (s PostAccount3PIDDelRequestCapn) SetAddress(v string) error

func (PostAccount3PIDDelRequestCapn) SetMedium

func (PostAccount3PIDDelRequestCapn) String

type PostAccount3PIDDelRequestCapn_List

type PostAccount3PIDDelRequestCapn_List struct{ capnp.List }

PostAccount3PIDDelRequestCapn_List is a list of PostAccount3PIDDelRequestCapn.

func NewPostAccount3PIDDelRequestCapn_List

func NewPostAccount3PIDDelRequestCapn_List(s *capnp.Segment, sz int32) (PostAccount3PIDDelRequestCapn_List, error)

NewPostAccount3PIDDelRequestCapn creates a new list of PostAccount3PIDDelRequestCapn.

func (PostAccount3PIDDelRequestCapn_List) At

func (PostAccount3PIDDelRequestCapn_List) Set

func (PostAccount3PIDDelRequestCapn_List) String

type PostAccount3PIDDelRequestCapn_Promise

type PostAccount3PIDDelRequestCapn_Promise struct{ *capnp.Pipeline }

PostAccount3PIDDelRequestCapn_Promise is a wrapper for a PostAccount3PIDDelRequestCapn promised by a client call.

func (PostAccount3PIDDelRequestCapn_Promise) Struct

type PostAccount3PIDEmailRequest

type PostAccount3PIDEmailRequest struct {
	Path         string `json:"path"`
	ClientSecret string `json:"client_secret"`
	Email        string `json:"email"`
	SendAttempt  string `json:"send_attempt"`
	NextLink     string `json:"next_link,omitempty"`
	IdServer     string `json:"id_server"`
}

POST /_matrix/client/r0/account/3pid/email/requestToken same as /_matrix/client/r0/register/email/requestToken

func (*PostAccount3PIDEmailRequest) Decode

func (externalReq *PostAccount3PIDEmailRequest) Decode(input []byte) error

func (*PostAccount3PIDEmailRequest) Encode

func (externalReq *PostAccount3PIDEmailRequest) Encode() ([]byte, error)

type PostAccount3PIDEmailRequestCapn

type PostAccount3PIDEmailRequestCapn struct{ capnp.Struct }

func NewPostAccount3PIDEmailRequestCapn

func NewPostAccount3PIDEmailRequestCapn(s *capnp.Segment) (PostAccount3PIDEmailRequestCapn, error)

func NewRootPostAccount3PIDEmailRequestCapn

func NewRootPostAccount3PIDEmailRequestCapn(s *capnp.Segment) (PostAccount3PIDEmailRequestCapn, error)

func ReadRootPostAccount3PIDEmailRequestCapn

func ReadRootPostAccount3PIDEmailRequestCapn(msg *capnp.Message) (PostAccount3PIDEmailRequestCapn, error)

func (PostAccount3PIDEmailRequestCapn) ClientSecret

func (s PostAccount3PIDEmailRequestCapn) ClientSecret() (string, error)

func (PostAccount3PIDEmailRequestCapn) ClientSecretBytes

func (s PostAccount3PIDEmailRequestCapn) ClientSecretBytes() ([]byte, error)

func (PostAccount3PIDEmailRequestCapn) Email

func (PostAccount3PIDEmailRequestCapn) EmailBytes

func (s PostAccount3PIDEmailRequestCapn) EmailBytes() ([]byte, error)

func (PostAccount3PIDEmailRequestCapn) HasClientSecret

func (s PostAccount3PIDEmailRequestCapn) HasClientSecret() bool

func (PostAccount3PIDEmailRequestCapn) HasEmail

func (PostAccount3PIDEmailRequestCapn) HasIdServer

func (s PostAccount3PIDEmailRequestCapn) HasIdServer() bool
func (s PostAccount3PIDEmailRequestCapn) HasNextLink() bool

func (PostAccount3PIDEmailRequestCapn) HasPath

func (PostAccount3PIDEmailRequestCapn) HasSendAttempt

func (s PostAccount3PIDEmailRequestCapn) HasSendAttempt() bool

func (PostAccount3PIDEmailRequestCapn) IdServer

func (PostAccount3PIDEmailRequestCapn) IdServerBytes

func (s PostAccount3PIDEmailRequestCapn) IdServerBytes() ([]byte, error)

func (PostAccount3PIDEmailRequestCapn) NextLinkBytes

func (s PostAccount3PIDEmailRequestCapn) NextLinkBytes() ([]byte, error)

func (PostAccount3PIDEmailRequestCapn) Path

func (PostAccount3PIDEmailRequestCapn) PathBytes

func (s PostAccount3PIDEmailRequestCapn) PathBytes() ([]byte, error)

func (PostAccount3PIDEmailRequestCapn) SendAttempt

func (s PostAccount3PIDEmailRequestCapn) SendAttempt() (string, error)

func (PostAccount3PIDEmailRequestCapn) SendAttemptBytes

func (s PostAccount3PIDEmailRequestCapn) SendAttemptBytes() ([]byte, error)

func (PostAccount3PIDEmailRequestCapn) SetClientSecret

func (s PostAccount3PIDEmailRequestCapn) SetClientSecret(v string) error

func (PostAccount3PIDEmailRequestCapn) SetEmail

func (PostAccount3PIDEmailRequestCapn) SetIdServer

func (s PostAccount3PIDEmailRequestCapn) SetIdServer(v string) error
func (s PostAccount3PIDEmailRequestCapn) SetNextLink(v string) error

func (PostAccount3PIDEmailRequestCapn) SetPath

func (PostAccount3PIDEmailRequestCapn) SetSendAttempt

func (s PostAccount3PIDEmailRequestCapn) SetSendAttempt(v string) error

func (PostAccount3PIDEmailRequestCapn) String

type PostAccount3PIDEmailRequestCapn_List

type PostAccount3PIDEmailRequestCapn_List struct{ capnp.List }

PostAccount3PIDEmailRequestCapn_List is a list of PostAccount3PIDEmailRequestCapn.

func NewPostAccount3PIDEmailRequestCapn_List

func NewPostAccount3PIDEmailRequestCapn_List(s *capnp.Segment, sz int32) (PostAccount3PIDEmailRequestCapn_List, error)

NewPostAccount3PIDEmailRequestCapn creates a new list of PostAccount3PIDEmailRequestCapn.

func (PostAccount3PIDEmailRequestCapn_List) At

func (PostAccount3PIDEmailRequestCapn_List) Set

func (PostAccount3PIDEmailRequestCapn_List) String

type PostAccount3PIDEmailRequestCapn_Promise

type PostAccount3PIDEmailRequestCapn_Promise struct{ *capnp.Pipeline }

PostAccount3PIDEmailRequestCapn_Promise is a wrapper for a PostAccount3PIDEmailRequestCapn promised by a client call.

func (PostAccount3PIDEmailRequestCapn_Promise) Struct

type PostAccount3PIDEmailResponse

type PostAccount3PIDEmailResponse struct {
	Sid string `json:"sid"`
}

func (*PostAccount3PIDEmailResponse) Decode

func (res *PostAccount3PIDEmailResponse) Decode(input []byte) error

func (*PostAccount3PIDEmailResponse) Encode

func (res *PostAccount3PIDEmailResponse) Encode() ([]byte, error)

type PostAccount3PIDEmailResponseCapn

type PostAccount3PIDEmailResponseCapn struct{ capnp.Struct }

func NewPostAccount3PIDEmailResponseCapn

func NewPostAccount3PIDEmailResponseCapn(s *capnp.Segment) (PostAccount3PIDEmailResponseCapn, error)

func NewRootPostAccount3PIDEmailResponseCapn

func NewRootPostAccount3PIDEmailResponseCapn(s *capnp.Segment) (PostAccount3PIDEmailResponseCapn, error)

func ReadRootPostAccount3PIDEmailResponseCapn

func ReadRootPostAccount3PIDEmailResponseCapn(msg *capnp.Message) (PostAccount3PIDEmailResponseCapn, error)

func (PostAccount3PIDEmailResponseCapn) HasSid

func (PostAccount3PIDEmailResponseCapn) SetSid

func (PostAccount3PIDEmailResponseCapn) Sid

func (PostAccount3PIDEmailResponseCapn) SidBytes

func (s PostAccount3PIDEmailResponseCapn) SidBytes() ([]byte, error)

func (PostAccount3PIDEmailResponseCapn) String

type PostAccount3PIDEmailResponseCapn_List

type PostAccount3PIDEmailResponseCapn_List struct{ capnp.List }

PostAccount3PIDEmailResponseCapn_List is a list of PostAccount3PIDEmailResponseCapn.

func NewPostAccount3PIDEmailResponseCapn_List

func NewPostAccount3PIDEmailResponseCapn_List(s *capnp.Segment, sz int32) (PostAccount3PIDEmailResponseCapn_List, error)

NewPostAccount3PIDEmailResponseCapn creates a new list of PostAccount3PIDEmailResponseCapn.

func (PostAccount3PIDEmailResponseCapn_List) At

func (PostAccount3PIDEmailResponseCapn_List) Set

func (PostAccount3PIDEmailResponseCapn_List) String

type PostAccount3PIDEmailResponseCapn_Promise

type PostAccount3PIDEmailResponseCapn_Promise struct{ *capnp.Pipeline }

PostAccount3PIDEmailResponseCapn_Promise is a wrapper for a PostAccount3PIDEmailResponseCapn promised by a client call.

func (PostAccount3PIDEmailResponseCapn_Promise) Struct

type PostAccount3PIDMsisdnRequest

type PostAccount3PIDMsisdnRequest struct {
	Path         string `json:"path"`
	ClientSecret string `json:"client_secret"`
	Country      string `json:"country"`
	PhoneNumber  string `json:"phone_number"`
	SendAttempt  string `json:"send_attempt"`
	NextLink     string `json:"next_link,omitempty"`
	IdServer     string `json:"id_server"`
}

POST /_matrix/client/r0/account/3pid/msisdn/requestToken same as /register/msisdn/requestToken

func (*PostAccount3PIDMsisdnRequest) Decode

func (externalReq *PostAccount3PIDMsisdnRequest) Decode(input []byte) error

func (*PostAccount3PIDMsisdnRequest) Encode

func (externalReq *PostAccount3PIDMsisdnRequest) Encode() ([]byte, error)

type PostAccount3PIDMsisdnRequestCapn

type PostAccount3PIDMsisdnRequestCapn struct{ capnp.Struct }

func NewPostAccount3PIDMsisdnRequestCapn

func NewPostAccount3PIDMsisdnRequestCapn(s *capnp.Segment) (PostAccount3PIDMsisdnRequestCapn, error)

func NewRootPostAccount3PIDMsisdnRequestCapn

func NewRootPostAccount3PIDMsisdnRequestCapn(s *capnp.Segment) (PostAccount3PIDMsisdnRequestCapn, error)

func ReadRootPostAccount3PIDMsisdnRequestCapn

func ReadRootPostAccount3PIDMsisdnRequestCapn(msg *capnp.Message) (PostAccount3PIDMsisdnRequestCapn, error)

func (PostAccount3PIDMsisdnRequestCapn) ClientSecret

func (s PostAccount3PIDMsisdnRequestCapn) ClientSecret() (string, error)

func (PostAccount3PIDMsisdnRequestCapn) ClientSecretBytes

func (s PostAccount3PIDMsisdnRequestCapn) ClientSecretBytes() ([]byte, error)

func (PostAccount3PIDMsisdnRequestCapn) Country

func (PostAccount3PIDMsisdnRequestCapn) CountryBytes

func (s PostAccount3PIDMsisdnRequestCapn) CountryBytes() ([]byte, error)

func (PostAccount3PIDMsisdnRequestCapn) HasClientSecret

func (s PostAccount3PIDMsisdnRequestCapn) HasClientSecret() bool

func (PostAccount3PIDMsisdnRequestCapn) HasCountry

func (s PostAccount3PIDMsisdnRequestCapn) HasCountry() bool

func (PostAccount3PIDMsisdnRequestCapn) HasIdServer

func (s PostAccount3PIDMsisdnRequestCapn) HasIdServer() bool
func (s PostAccount3PIDMsisdnRequestCapn) HasNextLink() bool

func (PostAccount3PIDMsisdnRequestCapn) HasPath

func (PostAccount3PIDMsisdnRequestCapn) HasPhoneNumber

func (s PostAccount3PIDMsisdnRequestCapn) HasPhoneNumber() bool

func (PostAccount3PIDMsisdnRequestCapn) HasSendAttempt

func (s PostAccount3PIDMsisdnRequestCapn) HasSendAttempt() bool

func (PostAccount3PIDMsisdnRequestCapn) IdServer

func (PostAccount3PIDMsisdnRequestCapn) IdServerBytes

func (s PostAccount3PIDMsisdnRequestCapn) IdServerBytes() ([]byte, error)

func (PostAccount3PIDMsisdnRequestCapn) NextLinkBytes

func (s PostAccount3PIDMsisdnRequestCapn) NextLinkBytes() ([]byte, error)

func (PostAccount3PIDMsisdnRequestCapn) Path

func (PostAccount3PIDMsisdnRequestCapn) PathBytes

func (s PostAccount3PIDMsisdnRequestCapn) PathBytes() ([]byte, error)

func (PostAccount3PIDMsisdnRequestCapn) PhoneNumber

func (s PostAccount3PIDMsisdnRequestCapn) PhoneNumber() (string, error)

func (PostAccount3PIDMsisdnRequestCapn) PhoneNumberBytes

func (s PostAccount3PIDMsisdnRequestCapn) PhoneNumberBytes() ([]byte, error)

func (PostAccount3PIDMsisdnRequestCapn) SendAttempt

func (s PostAccount3PIDMsisdnRequestCapn) SendAttempt() (string, error)

func (PostAccount3PIDMsisdnRequestCapn) SendAttemptBytes

func (s PostAccount3PIDMsisdnRequestCapn) SendAttemptBytes() ([]byte, error)

func (PostAccount3PIDMsisdnRequestCapn) SetClientSecret

func (s PostAccount3PIDMsisdnRequestCapn) SetClientSecret(v string) error

func (PostAccount3PIDMsisdnRequestCapn) SetCountry

func (PostAccount3PIDMsisdnRequestCapn) SetIdServer

func (PostAccount3PIDMsisdnRequestCapn) SetPath

func (PostAccount3PIDMsisdnRequestCapn) SetPhoneNumber

func (s PostAccount3PIDMsisdnRequestCapn) SetPhoneNumber(v string) error

func (PostAccount3PIDMsisdnRequestCapn) SetSendAttempt

func (s PostAccount3PIDMsisdnRequestCapn) SetSendAttempt(v string) error

func (PostAccount3PIDMsisdnRequestCapn) String

type PostAccount3PIDMsisdnRequestCapn_List

type PostAccount3PIDMsisdnRequestCapn_List struct{ capnp.List }

PostAccount3PIDMsisdnRequestCapn_List is a list of PostAccount3PIDMsisdnRequestCapn.

func NewPostAccount3PIDMsisdnRequestCapn_List

func NewPostAccount3PIDMsisdnRequestCapn_List(s *capnp.Segment, sz int32) (PostAccount3PIDMsisdnRequestCapn_List, error)

NewPostAccount3PIDMsisdnRequestCapn creates a new list of PostAccount3PIDMsisdnRequestCapn.

func (PostAccount3PIDMsisdnRequestCapn_List) At

func (PostAccount3PIDMsisdnRequestCapn_List) Set

func (PostAccount3PIDMsisdnRequestCapn_List) String

type PostAccount3PIDMsisdnRequestCapn_Promise

type PostAccount3PIDMsisdnRequestCapn_Promise struct{ *capnp.Pipeline }

PostAccount3PIDMsisdnRequestCapn_Promise is a wrapper for a PostAccount3PIDMsisdnRequestCapn promised by a client call.

func (PostAccount3PIDMsisdnRequestCapn_Promise) Struct

type PostAccount3PIDMsisdnResponse

type PostAccount3PIDMsisdnResponse struct {
	Sid string `json:"sid"`
}

func (*PostAccount3PIDMsisdnResponse) Decode

func (res *PostAccount3PIDMsisdnResponse) Decode(input []byte) error

func (*PostAccount3PIDMsisdnResponse) Encode

func (res *PostAccount3PIDMsisdnResponse) Encode() ([]byte, error)

type PostAccount3PIDMsisdnResponseCapn

type PostAccount3PIDMsisdnResponseCapn struct{ capnp.Struct }

func NewPostAccount3PIDMsisdnResponseCapn

func NewPostAccount3PIDMsisdnResponseCapn(s *capnp.Segment) (PostAccount3PIDMsisdnResponseCapn, error)

func NewRootPostAccount3PIDMsisdnResponseCapn

func NewRootPostAccount3PIDMsisdnResponseCapn(s *capnp.Segment) (PostAccount3PIDMsisdnResponseCapn, error)

func ReadRootPostAccount3PIDMsisdnResponseCapn

func ReadRootPostAccount3PIDMsisdnResponseCapn(msg *capnp.Message) (PostAccount3PIDMsisdnResponseCapn, error)

func (PostAccount3PIDMsisdnResponseCapn) HasSid

func (PostAccount3PIDMsisdnResponseCapn) SetSid

func (PostAccount3PIDMsisdnResponseCapn) Sid

func (PostAccount3PIDMsisdnResponseCapn) SidBytes

func (s PostAccount3PIDMsisdnResponseCapn) SidBytes() ([]byte, error)

func (PostAccount3PIDMsisdnResponseCapn) String

type PostAccount3PIDMsisdnResponseCapn_List

type PostAccount3PIDMsisdnResponseCapn_List struct{ capnp.List }

PostAccount3PIDMsisdnResponseCapn_List is a list of PostAccount3PIDMsisdnResponseCapn.

func NewPostAccount3PIDMsisdnResponseCapn_List

func NewPostAccount3PIDMsisdnResponseCapn_List(s *capnp.Segment, sz int32) (PostAccount3PIDMsisdnResponseCapn_List, error)

NewPostAccount3PIDMsisdnResponseCapn creates a new list of PostAccount3PIDMsisdnResponseCapn.

func (PostAccount3PIDMsisdnResponseCapn_List) At

func (PostAccount3PIDMsisdnResponseCapn_List) Set

func (PostAccount3PIDMsisdnResponseCapn_List) String

type PostAccount3PIDMsisdnResponseCapn_Promise

type PostAccount3PIDMsisdnResponseCapn_Promise struct{ *capnp.Pipeline }

PostAccount3PIDMsisdnResponseCapn_Promise is a wrapper for a PostAccount3PIDMsisdnResponseCapn promised by a client call.

func (PostAccount3PIDMsisdnResponseCapn_Promise) Struct

type PostAccount3PIDRequest

type PostAccount3PIDRequest struct {
	ThreePIDCreds ThreePidCredentials `json:"three_pid_creds"`
	Bind          bool                `json:"bind"`
}

POST /_matrix/client/r0/account/3pid

func (*PostAccount3PIDRequest) Decode

func (externalReq *PostAccount3PIDRequest) Decode(input []byte) error

func (*PostAccount3PIDRequest) Encode

func (externalReq *PostAccount3PIDRequest) Encode() ([]byte, error)

type PostAccount3PIDRequestCapn

type PostAccount3PIDRequestCapn struct{ capnp.Struct }

func NewPostAccount3PIDRequestCapn

func NewPostAccount3PIDRequestCapn(s *capnp.Segment) (PostAccount3PIDRequestCapn, error)

func NewRootPostAccount3PIDRequestCapn

func NewRootPostAccount3PIDRequestCapn(s *capnp.Segment) (PostAccount3PIDRequestCapn, error)

func ReadRootPostAccount3PIDRequestCapn

func ReadRootPostAccount3PIDRequestCapn(msg *capnp.Message) (PostAccount3PIDRequestCapn, error)

func (PostAccount3PIDRequestCapn) Bind

func (PostAccount3PIDRequestCapn) HasThreePIDCreds

func (s PostAccount3PIDRequestCapn) HasThreePIDCreds() bool

func (PostAccount3PIDRequestCapn) NewThreePIDCreds

NewThreePIDCreds sets the threePIDCreds field to a newly allocated ThreePidCredentialsCapn struct, preferring placement in s's segment.

func (PostAccount3PIDRequestCapn) SetBind

func (s PostAccount3PIDRequestCapn) SetBind(v bool)

func (PostAccount3PIDRequestCapn) SetThreePIDCreds

func (PostAccount3PIDRequestCapn) String

func (PostAccount3PIDRequestCapn) ThreePIDCreds

type PostAccount3PIDRequestCapn_List

type PostAccount3PIDRequestCapn_List struct{ capnp.List }

PostAccount3PIDRequestCapn_List is a list of PostAccount3PIDRequestCapn.

func NewPostAccount3PIDRequestCapn_List

func NewPostAccount3PIDRequestCapn_List(s *capnp.Segment, sz int32) (PostAccount3PIDRequestCapn_List, error)

NewPostAccount3PIDRequestCapn creates a new list of PostAccount3PIDRequestCapn.

func (PostAccount3PIDRequestCapn_List) At

func (PostAccount3PIDRequestCapn_List) Set

func (PostAccount3PIDRequestCapn_List) String

type PostAccount3PIDRequestCapn_Promise

type PostAccount3PIDRequestCapn_Promise struct{ *capnp.Pipeline }

PostAccount3PIDRequestCapn_Promise is a wrapper for a PostAccount3PIDRequestCapn promised by a client call.

func (PostAccount3PIDRequestCapn_Promise) Struct

func (PostAccount3PIDRequestCapn_Promise) ThreePIDCreds

type PostAccountDeactivateRequest

type PostAccountDeactivateRequest struct {
	Auth AuthData `json:"auth"`
}

POST /_matrix/client/r0/account/deactivate

type PostAccountDeactivateRequestCapn

type PostAccountDeactivateRequestCapn struct{ capnp.Struct }

func NewPostAccountDeactivateRequestCapn

func NewPostAccountDeactivateRequestCapn(s *capnp.Segment) (PostAccountDeactivateRequestCapn, error)

func NewRootPostAccountDeactivateRequestCapn

func NewRootPostAccountDeactivateRequestCapn(s *capnp.Segment) (PostAccountDeactivateRequestCapn, error)

func ReadRootPostAccountDeactivateRequestCapn

func ReadRootPostAccountDeactivateRequestCapn(msg *capnp.Message) (PostAccountDeactivateRequestCapn, error)

func (PostAccountDeactivateRequestCapn) Auth

func (PostAccountDeactivateRequestCapn) HasAuth

func (PostAccountDeactivateRequestCapn) NewAuth

NewAuth sets the auth field to a newly allocated AuthDataCapn struct, preferring placement in s's segment.

func (PostAccountDeactivateRequestCapn) SetAuth

func (PostAccountDeactivateRequestCapn) String

type PostAccountDeactivateRequestCapn_List

type PostAccountDeactivateRequestCapn_List struct{ capnp.List }

PostAccountDeactivateRequestCapn_List is a list of PostAccountDeactivateRequestCapn.

func NewPostAccountDeactivateRequestCapn_List

func NewPostAccountDeactivateRequestCapn_List(s *capnp.Segment, sz int32) (PostAccountDeactivateRequestCapn_List, error)

NewPostAccountDeactivateRequestCapn creates a new list of PostAccountDeactivateRequestCapn.

func (PostAccountDeactivateRequestCapn_List) At

func (PostAccountDeactivateRequestCapn_List) Set

func (PostAccountDeactivateRequestCapn_List) String

type PostAccountDeactivateRequestCapn_Promise

type PostAccountDeactivateRequestCapn_Promise struct{ *capnp.Pipeline }

PostAccountDeactivateRequestCapn_Promise is a wrapper for a PostAccountDeactivateRequestCapn promised by a client call.

func (PostAccountDeactivateRequestCapn_Promise) Auth

func (PostAccountDeactivateRequestCapn_Promise) Struct

type PostAccountPasswordEmailRequest

type PostAccountPasswordEmailRequest struct {
	ClientSecret string `json:"client_secret"`
	Email        string `json:"email"`
	SendAttempt  int    `json:"send_attempt"`
	NextLink     string `json:"next_link"`
	IDServer     string `json:"id_server"`
}

POST /_matrix/client/r0/account/password/email/requestToken request

type PostAccountPasswordEmailRequestCapn

type PostAccountPasswordEmailRequestCapn struct{ capnp.Struct }

func NewPostAccountPasswordEmailRequestCapn

func NewPostAccountPasswordEmailRequestCapn(s *capnp.Segment) (PostAccountPasswordEmailRequestCapn, error)

func NewRootPostAccountPasswordEmailRequestCapn

func NewRootPostAccountPasswordEmailRequestCapn(s *capnp.Segment) (PostAccountPasswordEmailRequestCapn, error)

func ReadRootPostAccountPasswordEmailRequestCapn

func ReadRootPostAccountPasswordEmailRequestCapn(msg *capnp.Message) (PostAccountPasswordEmailRequestCapn, error)

func (PostAccountPasswordEmailRequestCapn) ClientSecret

func (s PostAccountPasswordEmailRequestCapn) ClientSecret() (string, error)

func (PostAccountPasswordEmailRequestCapn) ClientSecretBytes

func (s PostAccountPasswordEmailRequestCapn) ClientSecretBytes() ([]byte, error)

func (PostAccountPasswordEmailRequestCapn) Email

func (PostAccountPasswordEmailRequestCapn) EmailBytes

func (s PostAccountPasswordEmailRequestCapn) EmailBytes() ([]byte, error)

func (PostAccountPasswordEmailRequestCapn) HasClientSecret

func (s PostAccountPasswordEmailRequestCapn) HasClientSecret() bool

func (PostAccountPasswordEmailRequestCapn) HasEmail

func (PostAccountPasswordEmailRequestCapn) HasIDServer

func (s PostAccountPasswordEmailRequestCapn) HasIDServer() bool
func (s PostAccountPasswordEmailRequestCapn) HasNextLink() bool

func (PostAccountPasswordEmailRequestCapn) IDServer

func (PostAccountPasswordEmailRequestCapn) IDServerBytes

func (s PostAccountPasswordEmailRequestCapn) IDServerBytes() ([]byte, error)

func (PostAccountPasswordEmailRequestCapn) NextLinkBytes

func (s PostAccountPasswordEmailRequestCapn) NextLinkBytes() ([]byte, error)

func (PostAccountPasswordEmailRequestCapn) SendAttempt

func (PostAccountPasswordEmailRequestCapn) SetClientSecret

func (s PostAccountPasswordEmailRequestCapn) SetClientSecret(v string) error

func (PostAccountPasswordEmailRequestCapn) SetEmail

func (PostAccountPasswordEmailRequestCapn) SetIDServer

func (PostAccountPasswordEmailRequestCapn) SetSendAttempt

func (s PostAccountPasswordEmailRequestCapn) SetSendAttempt(v int64)

func (PostAccountPasswordEmailRequestCapn) String

type PostAccountPasswordEmailRequestCapn_List

type PostAccountPasswordEmailRequestCapn_List struct{ capnp.List }

PostAccountPasswordEmailRequestCapn_List is a list of PostAccountPasswordEmailRequestCapn.

func NewPostAccountPasswordEmailRequestCapn_List

func NewPostAccountPasswordEmailRequestCapn_List(s *capnp.Segment, sz int32) (PostAccountPasswordEmailRequestCapn_List, error)

NewPostAccountPasswordEmailRequestCapn creates a new list of PostAccountPasswordEmailRequestCapn.

func (PostAccountPasswordEmailRequestCapn_List) At

func (PostAccountPasswordEmailRequestCapn_List) Set

func (PostAccountPasswordEmailRequestCapn_List) String

type PostAccountPasswordEmailRequestCapn_Promise

type PostAccountPasswordEmailRequestCapn_Promise struct{ *capnp.Pipeline }

PostAccountPasswordEmailRequestCapn_Promise is a wrapper for a PostAccountPasswordEmailRequestCapn promised by a client call.

func (PostAccountPasswordEmailRequestCapn_Promise) Struct

type PostAccountPasswordEmailResponse

type PostAccountPasswordEmailResponse struct {
	SID string `json:"sid"`
}

response

func (*PostAccountPasswordEmailResponse) Decode

func (res *PostAccountPasswordEmailResponse) Decode(input []byte) error

func (*PostAccountPasswordEmailResponse) Encode

func (res *PostAccountPasswordEmailResponse) Encode() ([]byte, error)

type PostAccountPasswordEmailResponseCapn

type PostAccountPasswordEmailResponseCapn struct{ capnp.Struct }

func NewPostAccountPasswordEmailResponseCapn

func NewPostAccountPasswordEmailResponseCapn(s *capnp.Segment) (PostAccountPasswordEmailResponseCapn, error)

func NewRootPostAccountPasswordEmailResponseCapn

func NewRootPostAccountPasswordEmailResponseCapn(s *capnp.Segment) (PostAccountPasswordEmailResponseCapn, error)

func ReadRootPostAccountPasswordEmailResponseCapn

func ReadRootPostAccountPasswordEmailResponseCapn(msg *capnp.Message) (PostAccountPasswordEmailResponseCapn, error)

func (PostAccountPasswordEmailResponseCapn) HasSID

func (PostAccountPasswordEmailResponseCapn) SID

func (PostAccountPasswordEmailResponseCapn) SIDBytes

func (PostAccountPasswordEmailResponseCapn) SetSID

func (PostAccountPasswordEmailResponseCapn) String

type PostAccountPasswordEmailResponseCapn_List

type PostAccountPasswordEmailResponseCapn_List struct{ capnp.List }

PostAccountPasswordEmailResponseCapn_List is a list of PostAccountPasswordEmailResponseCapn.

func NewPostAccountPasswordEmailResponseCapn_List

func NewPostAccountPasswordEmailResponseCapn_List(s *capnp.Segment, sz int32) (PostAccountPasswordEmailResponseCapn_List, error)

NewPostAccountPasswordEmailResponseCapn creates a new list of PostAccountPasswordEmailResponseCapn.

func (PostAccountPasswordEmailResponseCapn_List) At

func (PostAccountPasswordEmailResponseCapn_List) Set

func (PostAccountPasswordEmailResponseCapn_List) String

type PostAccountPasswordEmailResponseCapn_Promise

type PostAccountPasswordEmailResponseCapn_Promise struct{ *capnp.Pipeline }

PostAccountPasswordEmailResponseCapn_Promise is a wrapper for a PostAccountPasswordEmailResponseCapn promised by a client call.

func (PostAccountPasswordEmailResponseCapn_Promise) Struct

type PostAccountPasswordMsisdResponse

type PostAccountPasswordMsisdResponse struct {
	SID string `json:"sid"`
}

response

func (*PostAccountPasswordMsisdResponse) Decode

func (res *PostAccountPasswordMsisdResponse) Decode(input []byte) error

func (*PostAccountPasswordMsisdResponse) Encode

func (res *PostAccountPasswordMsisdResponse) Encode() ([]byte, error)

type PostAccountPasswordMsisdResponseCapn

type PostAccountPasswordMsisdResponseCapn struct{ capnp.Struct }

func NewPostAccountPasswordMsisdResponseCapn

func NewPostAccountPasswordMsisdResponseCapn(s *capnp.Segment) (PostAccountPasswordMsisdResponseCapn, error)

func NewRootPostAccountPasswordMsisdResponseCapn

func NewRootPostAccountPasswordMsisdResponseCapn(s *capnp.Segment) (PostAccountPasswordMsisdResponseCapn, error)

func ReadRootPostAccountPasswordMsisdResponseCapn

func ReadRootPostAccountPasswordMsisdResponseCapn(msg *capnp.Message) (PostAccountPasswordMsisdResponseCapn, error)

func (PostAccountPasswordMsisdResponseCapn) HasSID

func (PostAccountPasswordMsisdResponseCapn) SID

func (PostAccountPasswordMsisdResponseCapn) SIDBytes

func (PostAccountPasswordMsisdResponseCapn) SetSID

func (PostAccountPasswordMsisdResponseCapn) String

type PostAccountPasswordMsisdResponseCapn_List

type PostAccountPasswordMsisdResponseCapn_List struct{ capnp.List }

PostAccountPasswordMsisdResponseCapn_List is a list of PostAccountPasswordMsisdResponseCapn.

func NewPostAccountPasswordMsisdResponseCapn_List

func NewPostAccountPasswordMsisdResponseCapn_List(s *capnp.Segment, sz int32) (PostAccountPasswordMsisdResponseCapn_List, error)

NewPostAccountPasswordMsisdResponseCapn creates a new list of PostAccountPasswordMsisdResponseCapn.

func (PostAccountPasswordMsisdResponseCapn_List) At

func (PostAccountPasswordMsisdResponseCapn_List) Set

func (PostAccountPasswordMsisdResponseCapn_List) String

type PostAccountPasswordMsisdResponseCapn_Promise

type PostAccountPasswordMsisdResponseCapn_Promise struct{ *capnp.Pipeline }

PostAccountPasswordMsisdResponseCapn_Promise is a wrapper for a PostAccountPasswordMsisdResponseCapn promised by a client call.

func (PostAccountPasswordMsisdResponseCapn_Promise) Struct

type PostAccountPasswordMsisdnRequest

type PostAccountPasswordMsisdnRequest struct {
	ClientSecret string `json:"client_secret"`
	Country      string `json:"country"`
	PhoneNumber  string `json:"phone_number"`
	SendAttempt  int    `json:"send_attempt"`
	NextLink     string `json:"next_link"`
	IDServer     string `json:"id_server"`
}

POST /_matrix/client/r0/account/password/msisdn/requestToken request

type PostAccountPasswordMsisdnRequestCapn

type PostAccountPasswordMsisdnRequestCapn struct{ capnp.Struct }

func NewPostAccountPasswordMsisdnRequestCapn

func NewPostAccountPasswordMsisdnRequestCapn(s *capnp.Segment) (PostAccountPasswordMsisdnRequestCapn, error)

func NewRootPostAccountPasswordMsisdnRequestCapn

func NewRootPostAccountPasswordMsisdnRequestCapn(s *capnp.Segment) (PostAccountPasswordMsisdnRequestCapn, error)

func ReadRootPostAccountPasswordMsisdnRequestCapn

func ReadRootPostAccountPasswordMsisdnRequestCapn(msg *capnp.Message) (PostAccountPasswordMsisdnRequestCapn, error)

func (PostAccountPasswordMsisdnRequestCapn) ClientSecret

func (PostAccountPasswordMsisdnRequestCapn) ClientSecretBytes

func (s PostAccountPasswordMsisdnRequestCapn) ClientSecretBytes() ([]byte, error)

func (PostAccountPasswordMsisdnRequestCapn) Country

func (PostAccountPasswordMsisdnRequestCapn) CountryBytes

func (s PostAccountPasswordMsisdnRequestCapn) CountryBytes() ([]byte, error)

func (PostAccountPasswordMsisdnRequestCapn) HasClientSecret

func (s PostAccountPasswordMsisdnRequestCapn) HasClientSecret() bool

func (PostAccountPasswordMsisdnRequestCapn) HasCountry

func (PostAccountPasswordMsisdnRequestCapn) HasIDServer

func (PostAccountPasswordMsisdnRequestCapn) HasPhoneNumber

func (s PostAccountPasswordMsisdnRequestCapn) HasPhoneNumber() bool

func (PostAccountPasswordMsisdnRequestCapn) IDServer

func (PostAccountPasswordMsisdnRequestCapn) IDServerBytes

func (s PostAccountPasswordMsisdnRequestCapn) IDServerBytes() ([]byte, error)

func (PostAccountPasswordMsisdnRequestCapn) NextLinkBytes

func (s PostAccountPasswordMsisdnRequestCapn) NextLinkBytes() ([]byte, error)

func (PostAccountPasswordMsisdnRequestCapn) PhoneNumber

func (PostAccountPasswordMsisdnRequestCapn) PhoneNumberBytes

func (s PostAccountPasswordMsisdnRequestCapn) PhoneNumberBytes() ([]byte, error)

func (PostAccountPasswordMsisdnRequestCapn) SendAttempt

func (PostAccountPasswordMsisdnRequestCapn) SetClientSecret

func (s PostAccountPasswordMsisdnRequestCapn) SetClientSecret(v string) error

func (PostAccountPasswordMsisdnRequestCapn) SetCountry

func (PostAccountPasswordMsisdnRequestCapn) SetIDServer

func (PostAccountPasswordMsisdnRequestCapn) SetPhoneNumber

func (PostAccountPasswordMsisdnRequestCapn) SetSendAttempt

func (s PostAccountPasswordMsisdnRequestCapn) SetSendAttempt(v int64)

func (PostAccountPasswordMsisdnRequestCapn) String

type PostAccountPasswordMsisdnRequestCapn_List

type PostAccountPasswordMsisdnRequestCapn_List struct{ capnp.List }

PostAccountPasswordMsisdnRequestCapn_List is a list of PostAccountPasswordMsisdnRequestCapn.

func NewPostAccountPasswordMsisdnRequestCapn_List

func NewPostAccountPasswordMsisdnRequestCapn_List(s *capnp.Segment, sz int32) (PostAccountPasswordMsisdnRequestCapn_List, error)

NewPostAccountPasswordMsisdnRequestCapn creates a new list of PostAccountPasswordMsisdnRequestCapn.

func (PostAccountPasswordMsisdnRequestCapn_List) At

func (PostAccountPasswordMsisdnRequestCapn_List) Set

func (PostAccountPasswordMsisdnRequestCapn_List) String

type PostAccountPasswordMsisdnRequestCapn_Promise

type PostAccountPasswordMsisdnRequestCapn_Promise struct{ *capnp.Pipeline }

PostAccountPasswordMsisdnRequestCapn_Promise is a wrapper for a PostAccountPasswordMsisdnRequestCapn promised by a client call.

func (PostAccountPasswordMsisdnRequestCapn_Promise) Struct

type PostAccountPasswordRequest

type PostAccountPasswordRequest struct {
	NewPassword string   `json:"new_password"`
	Auth        AuthData `json:"auth"`
}

POST /_matrix/client/r0/account/password request

type PostAccountPasswordRequestCapn

type PostAccountPasswordRequestCapn struct{ capnp.Struct }

func NewPostAccountPasswordRequestCapn

func NewPostAccountPasswordRequestCapn(s *capnp.Segment) (PostAccountPasswordRequestCapn, error)

func NewRootPostAccountPasswordRequestCapn

func NewRootPostAccountPasswordRequestCapn(s *capnp.Segment) (PostAccountPasswordRequestCapn, error)

func ReadRootPostAccountPasswordRequestCapn

func ReadRootPostAccountPasswordRequestCapn(msg *capnp.Message) (PostAccountPasswordRequestCapn, error)

func (PostAccountPasswordRequestCapn) Auth

func (PostAccountPasswordRequestCapn) HasAuth

func (PostAccountPasswordRequestCapn) HasNewPassword

func (s PostAccountPasswordRequestCapn) HasNewPassword() bool

func (PostAccountPasswordRequestCapn) NewAuth

NewAuth sets the auth field to a newly allocated AuthDataCapn struct, preferring placement in s's segment.

func (PostAccountPasswordRequestCapn) NewPassword

func (s PostAccountPasswordRequestCapn) NewPassword() (string, error)

func (PostAccountPasswordRequestCapn) NewPasswordBytes

func (s PostAccountPasswordRequestCapn) NewPasswordBytes() ([]byte, error)

func (PostAccountPasswordRequestCapn) SetAuth

func (PostAccountPasswordRequestCapn) SetNewPassword

func (s PostAccountPasswordRequestCapn) SetNewPassword(v string) error

func (PostAccountPasswordRequestCapn) String

type PostAccountPasswordRequestCapn_List

type PostAccountPasswordRequestCapn_List struct{ capnp.List }

PostAccountPasswordRequestCapn_List is a list of PostAccountPasswordRequestCapn.

func NewPostAccountPasswordRequestCapn_List

func NewPostAccountPasswordRequestCapn_List(s *capnp.Segment, sz int32) (PostAccountPasswordRequestCapn_List, error)

NewPostAccountPasswordRequestCapn creates a new list of PostAccountPasswordRequestCapn.

func (PostAccountPasswordRequestCapn_List) At

func (PostAccountPasswordRequestCapn_List) Set

func (PostAccountPasswordRequestCapn_List) String

type PostAccountPasswordRequestCapn_Promise

type PostAccountPasswordRequestCapn_Promise struct{ *capnp.Pipeline }

PostAccountPasswordRequestCapn_Promise is a wrapper for a PostAccountPasswordRequestCapn promised by a client call.

func (PostAccountPasswordRequestCapn_Promise) Auth

func (PostAccountPasswordRequestCapn_Promise) Struct

type PostClaimClientKeysRequest

type PostClaimClientKeysRequest struct {
	OneTimeKeys map[string]map[string]string `json:"one_time_keys"`
}

func (*PostClaimClientKeysRequest) Decode

func (externalReq *PostClaimClientKeysRequest) Decode(data []byte) error

func (*PostClaimClientKeysRequest) Encode

func (externalReq *PostClaimClientKeysRequest) Encode() ([]byte, error)

type PostClaimClientKeysResponse

type PostClaimClientKeysResponse struct {
	OneTimeKeys map[string]map[string]map[string]interface{} `json:"one_time_keys"`
}

func (*PostClaimClientKeysResponse) Decode

func (res *PostClaimClientKeysResponse) Decode(input []byte) error

func (*PostClaimClientKeysResponse) Encode

func (r *PostClaimClientKeysResponse) Encode() ([]byte, error)

type PostClaimKeysRequest

type PostClaimKeysRequest struct {
	TimeOut     int                          `json:"timeout"`
	OneTimeKeys map[string]map[string]string `json:"one_time_keys"`
}

POST /_matrix/client/r0/keys/claim

func (*PostClaimKeysRequest) Decode

func (externalReq *PostClaimKeysRequest) Decode(input []byte) error

func (*PostClaimKeysRequest) Encode

func (externalReq *PostClaimKeysRequest) Encode() ([]byte, error)

type PostClaimKeysResponse

type PostClaimKeysResponse struct {
	Failures   map[string]interface{}                       `json:"failures"`
	DeviceKeys map[string]map[string]map[string]interface{} `json:"one_time_keys"`
}

func (*PostClaimKeysResponse) Decode

func (res *PostClaimKeysResponse) Decode(input []byte) error

func (*PostClaimKeysResponse) Encode

func (res *PostClaimKeysResponse) Encode() ([]byte, error)

type PostCreateRoomRequest

type PostCreateRoomRequest struct {
	Visibility      string                 `json:"visibility"`
	RoomAliasName   string                 `json:"room_alias_name"`
	Name            string                 `json:"name"`
	Topic           string                 `json:"topic"`
	Desc            string                 `json:"desc"`
	Invite          []string               `json:"invite"`
	Invite3pid      []Invite3pid           `json:"invite_3pid"`
	RoomVersion     string                 `json:"room_version"`
	CreationContent map[string]interface{} `json:"creation_content"`
	InitialState    []StateEvent           `json:"initial_state"`
	Preset          string                 `json:"preset"`
	IsDirect        bool                   `json:"is_direct"`
	AutoJoin        bool                   `json:"auto_join"`

	RoomID       string `json:"room_id"`
	GuestCanJoin bool   `json:"guest_can_join"`
}

POST /_matrix/client/r0/createRoom

func (*PostCreateRoomRequest) Decode

func (externalReq *PostCreateRoomRequest) Decode(input []byte) error

func (*PostCreateRoomRequest) Encode

func (externalReq *PostCreateRoomRequest) Encode() ([]byte, error)

type PostCreateRoomResponse

type PostCreateRoomResponse struct {
	RoomID    string `json:"room_id"`
	RoomAlias string `json:"room_alias,omitempty"` // in synapse not spec
}

func (*PostCreateRoomResponse) Decode

func (res *PostCreateRoomResponse) Decode(input []byte) error

func (*PostCreateRoomResponse) Encode

func (res *PostCreateRoomResponse) Encode() ([]byte, error)

type PostCreateRoomResponseCapn

type PostCreateRoomResponseCapn struct{ capnp.Struct }

func NewPostCreateRoomResponseCapn

func NewPostCreateRoomResponseCapn(s *capnp.Segment) (PostCreateRoomResponseCapn, error)

func NewRootPostCreateRoomResponseCapn

func NewRootPostCreateRoomResponseCapn(s *capnp.Segment) (PostCreateRoomResponseCapn, error)

func ReadRootPostCreateRoomResponseCapn

func ReadRootPostCreateRoomResponseCapn(msg *capnp.Message) (PostCreateRoomResponseCapn, error)

func (PostCreateRoomResponseCapn) HasRoomAlias

func (s PostCreateRoomResponseCapn) HasRoomAlias() bool

func (PostCreateRoomResponseCapn) HasRoomID

func (s PostCreateRoomResponseCapn) HasRoomID() bool

func (PostCreateRoomResponseCapn) RoomAlias

func (s PostCreateRoomResponseCapn) RoomAlias() (string, error)

func (PostCreateRoomResponseCapn) RoomAliasBytes

func (s PostCreateRoomResponseCapn) RoomAliasBytes() ([]byte, error)

func (PostCreateRoomResponseCapn) RoomID

func (s PostCreateRoomResponseCapn) RoomID() (string, error)

func (PostCreateRoomResponseCapn) RoomIDBytes

func (s PostCreateRoomResponseCapn) RoomIDBytes() ([]byte, error)

func (PostCreateRoomResponseCapn) SetRoomAlias

func (s PostCreateRoomResponseCapn) SetRoomAlias(v string) error

func (PostCreateRoomResponseCapn) SetRoomID

func (s PostCreateRoomResponseCapn) SetRoomID(v string) error

func (PostCreateRoomResponseCapn) String

type PostCreateRoomResponseCapn_List

type PostCreateRoomResponseCapn_List struct{ capnp.List }

PostCreateRoomResponseCapn_List is a list of PostCreateRoomResponseCapn.

func NewPostCreateRoomResponseCapn_List

func NewPostCreateRoomResponseCapn_List(s *capnp.Segment, sz int32) (PostCreateRoomResponseCapn_List, error)

NewPostCreateRoomResponseCapn creates a new list of PostCreateRoomResponseCapn.

func (PostCreateRoomResponseCapn_List) At

func (PostCreateRoomResponseCapn_List) Set

func (PostCreateRoomResponseCapn_List) String

type PostCreateRoomResponseCapn_Promise

type PostCreateRoomResponseCapn_Promise struct{ *capnp.Pipeline }

PostCreateRoomResponseCapn_Promise is a wrapper for a PostCreateRoomResponseCapn promised by a client call.

func (PostCreateRoomResponseCapn_Promise) Struct

type PostDelDevicesRequest

type PostDelDevicesRequest struct {
	Devices []string       `json:"devices"`
	Auth    DeviceAuthDict `json:"auth"`
}

func (*PostDelDevicesRequest) Decode

func (externalReq *PostDelDevicesRequest) Decode(input []byte) error

func (*PostDelDevicesRequest) Encode

func (externalReq *PostDelDevicesRequest) Encode() ([]byte, error)

type PostDevicesDelRequest

type PostDevicesDelRequest struct {
	Devices []string `json:"devices"`
	Auth    AuthData `json:"auth"`
}

POST /_matrix/client/r0/delete_devices

type PostDevicesDelRequestCapn

type PostDevicesDelRequestCapn struct{ capnp.Struct }

func NewPostDevicesDelRequestCapn

func NewPostDevicesDelRequestCapn(s *capnp.Segment) (PostDevicesDelRequestCapn, error)

func NewRootPostDevicesDelRequestCapn

func NewRootPostDevicesDelRequestCapn(s *capnp.Segment) (PostDevicesDelRequestCapn, error)

func ReadRootPostDevicesDelRequestCapn

func ReadRootPostDevicesDelRequestCapn(msg *capnp.Message) (PostDevicesDelRequestCapn, error)

func (PostDevicesDelRequestCapn) Auth

func (PostDevicesDelRequestCapn) Devices

func (PostDevicesDelRequestCapn) HasAuth

func (s PostDevicesDelRequestCapn) HasAuth() bool

func (PostDevicesDelRequestCapn) HasDevices

func (s PostDevicesDelRequestCapn) HasDevices() bool

func (PostDevicesDelRequestCapn) NewAuth

NewAuth sets the auth field to a newly allocated AuthDataCapn struct, preferring placement in s's segment.

func (PostDevicesDelRequestCapn) NewDevices

func (s PostDevicesDelRequestCapn) NewDevices(n int32) (capnp.TextList, error)

NewDevices sets the devices field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (PostDevicesDelRequestCapn) SetAuth

func (PostDevicesDelRequestCapn) SetDevices

func (PostDevicesDelRequestCapn) String

func (s PostDevicesDelRequestCapn) String() string

type PostDevicesDelRequestCapn_List

type PostDevicesDelRequestCapn_List struct{ capnp.List }

PostDevicesDelRequestCapn_List is a list of PostDevicesDelRequestCapn.

func NewPostDevicesDelRequestCapn_List

func NewPostDevicesDelRequestCapn_List(s *capnp.Segment, sz int32) (PostDevicesDelRequestCapn_List, error)

NewPostDevicesDelRequestCapn creates a new list of PostDevicesDelRequestCapn.

func (PostDevicesDelRequestCapn_List) At

func (PostDevicesDelRequestCapn_List) Set

func (PostDevicesDelRequestCapn_List) String

type PostDevicesDelRequestCapn_Promise

type PostDevicesDelRequestCapn_Promise struct{ *capnp.Pipeline }

PostDevicesDelRequestCapn_Promise is a wrapper for a PostDevicesDelRequestCapn promised by a client call.

func (PostDevicesDelRequestCapn_Promise) Auth

func (PostDevicesDelRequestCapn_Promise) Struct

type PostFedPublicRoomsRequest

type PostFedPublicRoomsRequest struct {
	Limit                int64  `json:"limit"`
	Since                string `json:"since"`
	Filter               string `json:"filter"`
	IncludeAllNetworks   bool   `json:"include_all_networks"`
	ThirdPartyInstanceID string `json:"third_party_instance_id"`
}

func (*PostFedPublicRoomsRequest) Decode

func (externalReq *PostFedPublicRoomsRequest) Decode(data []byte) error

func (*PostFedPublicRoomsRequest) Encode

func (externalReq *PostFedPublicRoomsRequest) Encode() ([]byte, error)

type PostFedPublicRoomsResponse

type PostFedPublicRoomsResponse struct {
	Chunk     []types.PublicRoom `json:"chunk"`
	NextBatch string             `json:"next_batch,omitempty"`
	PrevBatch string             `json:"prev_batch,omitempty"`
	Estimate  int64              `json:"total_room_count_estimate,omitempty"`
}

func (*PostFedPublicRoomsResponse) Decode

func (res *PostFedPublicRoomsResponse) Decode(input []byte) error

func (*PostFedPublicRoomsResponse) Encode

func (r *PostFedPublicRoomsResponse) Encode() ([]byte, error)

type PostLoginAdminRequest

type PostLoginAdminRequest PostLoginRequest

func (*PostLoginAdminRequest) Decode

func (externalReq *PostLoginAdminRequest) Decode(input []byte) error

func (*PostLoginAdminRequest) Encode

func (externalReq *PostLoginAdminRequest) Encode() ([]byte, error)

type PostLoginRequest

type PostLoginRequest struct {
	RequestType        string         `json:"type"`
	Identifier         UserIdentifier `json:"identifier"`
	User               string         `json:"user"`
	Medium             string         `json:"medium"`
	Address            string         `json:"address"`
	Password           string         `json:"password"`
	Token              string         `json:"token"`
	DeviceID           string         `json:"device_id"`
	InitialDisplayName *string        `json:"initial_device_display_name"`
	IsHuman            *bool          `json:"is_human"`
	IsAdmin            bool           `json:"is_admin"`
}

POST /_matrix/client/r0/login request

func (*PostLoginRequest) Decode

func (externalReq *PostLoginRequest) Decode(input []byte) error

func (*PostLoginRequest) Encode

func (externalReq *PostLoginRequest) Encode() ([]byte, error)

type PostLoginResponse

type PostLoginResponse struct {
	UserID      string `json:"user_id"`
	AccessToken string `json:"access_token"`
	HomeServer  string `json:"home_server"`
	DeviceID    string `json:"device_id"`
}

response

func (*PostLoginResponse) Decode

func (res *PostLoginResponse) Decode(input []byte) error

func (*PostLoginResponse) Encode

func (res *PostLoginResponse) Encode() ([]byte, error)

type PostLoginResponseCapn

type PostLoginResponseCapn struct{ capnp.Struct }

func NewPostLoginResponseCapn

func NewPostLoginResponseCapn(s *capnp.Segment) (PostLoginResponseCapn, error)

func NewRootPostLoginResponseCapn

func NewRootPostLoginResponseCapn(s *capnp.Segment) (PostLoginResponseCapn, error)

func ReadRootPostLoginResponseCapn

func ReadRootPostLoginResponseCapn(msg *capnp.Message) (PostLoginResponseCapn, error)

func (PostLoginResponseCapn) AccessToken

func (s PostLoginResponseCapn) AccessToken() (string, error)

func (PostLoginResponseCapn) AccessTokenBytes

func (s PostLoginResponseCapn) AccessTokenBytes() ([]byte, error)

func (PostLoginResponseCapn) DeviceID

func (s PostLoginResponseCapn) DeviceID() (string, error)

func (PostLoginResponseCapn) DeviceIDBytes

func (s PostLoginResponseCapn) DeviceIDBytes() ([]byte, error)

func (PostLoginResponseCapn) HasAccessToken

func (s PostLoginResponseCapn) HasAccessToken() bool

func (PostLoginResponseCapn) HasDeviceID

func (s PostLoginResponseCapn) HasDeviceID() bool

func (PostLoginResponseCapn) HasHomeServer

func (s PostLoginResponseCapn) HasHomeServer() bool

func (PostLoginResponseCapn) HasUserID

func (s PostLoginResponseCapn) HasUserID() bool

func (PostLoginResponseCapn) HomeServer

func (s PostLoginResponseCapn) HomeServer() (string, error)

func (PostLoginResponseCapn) HomeServerBytes

func (s PostLoginResponseCapn) HomeServerBytes() ([]byte, error)

func (PostLoginResponseCapn) SetAccessToken

func (s PostLoginResponseCapn) SetAccessToken(v string) error

func (PostLoginResponseCapn) SetDeviceID

func (s PostLoginResponseCapn) SetDeviceID(v string) error

func (PostLoginResponseCapn) SetHomeServer

func (s PostLoginResponseCapn) SetHomeServer(v string) error

func (PostLoginResponseCapn) SetUserID

func (s PostLoginResponseCapn) SetUserID(v string) error

func (PostLoginResponseCapn) String

func (s PostLoginResponseCapn) String() string

func (PostLoginResponseCapn) UserID

func (s PostLoginResponseCapn) UserID() (string, error)

func (PostLoginResponseCapn) UserIDBytes

func (s PostLoginResponseCapn) UserIDBytes() ([]byte, error)

type PostLoginResponseCapn_List

type PostLoginResponseCapn_List struct{ capnp.List }

PostLoginResponseCapn_List is a list of PostLoginResponseCapn.

func NewPostLoginResponseCapn_List

func NewPostLoginResponseCapn_List(s *capnp.Segment, sz int32) (PostLoginResponseCapn_List, error)

NewPostLoginResponseCapn creates a new list of PostLoginResponseCapn.

func (PostLoginResponseCapn_List) At

func (PostLoginResponseCapn_List) Set

func (PostLoginResponseCapn_List) String

type PostLoginResponseCapn_Promise

type PostLoginResponseCapn_Promise struct{ *capnp.Pipeline }

PostLoginResponseCapn_Promise is a wrapper for a PostLoginResponseCapn promised by a client call.

func (PostLoginResponseCapn_Promise) Struct

type PostMediaUploadRequest

type PostMediaUploadRequest struct {
	FileName    string `json:"filename"`
	ContentType string `json:"content-type"`
}

POST /_matrix/media/r0/upload

func (*PostMediaUploadRequest) Decode

func (externalReq *PostMediaUploadRequest) Decode(input []byte) error

func (*PostMediaUploadRequest) Encode

func (externalReq *PostMediaUploadRequest) Encode() ([]byte, error)

type PostMediaUploadRequestCapn

type PostMediaUploadRequestCapn struct{ capnp.Struct }

func NewPostMediaUploadRequestCapn

func NewPostMediaUploadRequestCapn(s *capnp.Segment) (PostMediaUploadRequestCapn, error)

func NewRootPostMediaUploadRequestCapn

func NewRootPostMediaUploadRequestCapn(s *capnp.Segment) (PostMediaUploadRequestCapn, error)

func ReadRootPostMediaUploadRequestCapn

func ReadRootPostMediaUploadRequestCapn(msg *capnp.Message) (PostMediaUploadRequestCapn, error)

func (PostMediaUploadRequestCapn) ContentType

func (s PostMediaUploadRequestCapn) ContentType() (string, error)

func (PostMediaUploadRequestCapn) ContentTypeBytes

func (s PostMediaUploadRequestCapn) ContentTypeBytes() ([]byte, error)

func (PostMediaUploadRequestCapn) FileName

func (s PostMediaUploadRequestCapn) FileName() (string, error)

func (PostMediaUploadRequestCapn) FileNameBytes

func (s PostMediaUploadRequestCapn) FileNameBytes() ([]byte, error)

func (PostMediaUploadRequestCapn) HasContentType

func (s PostMediaUploadRequestCapn) HasContentType() bool

func (PostMediaUploadRequestCapn) HasFileName

func (s PostMediaUploadRequestCapn) HasFileName() bool

func (PostMediaUploadRequestCapn) SetContentType

func (s PostMediaUploadRequestCapn) SetContentType(v string) error

func (PostMediaUploadRequestCapn) SetFileName

func (s PostMediaUploadRequestCapn) SetFileName(v string) error

func (PostMediaUploadRequestCapn) String

type PostMediaUploadRequestCapn_List

type PostMediaUploadRequestCapn_List struct{ capnp.List }

PostMediaUploadRequestCapn_List is a list of PostMediaUploadRequestCapn.

func NewPostMediaUploadRequestCapn_List

func NewPostMediaUploadRequestCapn_List(s *capnp.Segment, sz int32) (PostMediaUploadRequestCapn_List, error)

NewPostMediaUploadRequestCapn creates a new list of PostMediaUploadRequestCapn.

func (PostMediaUploadRequestCapn_List) At

func (PostMediaUploadRequestCapn_List) Set

func (PostMediaUploadRequestCapn_List) String

type PostMediaUploadRequestCapn_Promise

type PostMediaUploadRequestCapn_Promise struct{ *capnp.Pipeline }

PostMediaUploadRequestCapn_Promise is a wrapper for a PostMediaUploadRequestCapn promised by a client call.

func (PostMediaUploadRequestCapn_Promise) Struct

type PostMediaUploadResponse

type PostMediaUploadResponse struct {
	ContentURI string `json:"content_uri"`
}

func (*PostMediaUploadResponse) Decode

func (res *PostMediaUploadResponse) Decode(input []byte) error

func (*PostMediaUploadResponse) Encode

func (res *PostMediaUploadResponse) Encode() ([]byte, error)

type PostMediaUploadResponseCapn

type PostMediaUploadResponseCapn struct{ capnp.Struct }

func NewPostMediaUploadResponseCapn

func NewPostMediaUploadResponseCapn(s *capnp.Segment) (PostMediaUploadResponseCapn, error)

func NewRootPostMediaUploadResponseCapn

func NewRootPostMediaUploadResponseCapn(s *capnp.Segment) (PostMediaUploadResponseCapn, error)

func ReadRootPostMediaUploadResponseCapn

func ReadRootPostMediaUploadResponseCapn(msg *capnp.Message) (PostMediaUploadResponseCapn, error)

func (PostMediaUploadResponseCapn) ContentURI

func (s PostMediaUploadResponseCapn) ContentURI() (string, error)

func (PostMediaUploadResponseCapn) ContentURIBytes

func (s PostMediaUploadResponseCapn) ContentURIBytes() ([]byte, error)

func (PostMediaUploadResponseCapn) HasContentURI

func (s PostMediaUploadResponseCapn) HasContentURI() bool

func (PostMediaUploadResponseCapn) SetContentURI

func (s PostMediaUploadResponseCapn) SetContentURI(v string) error

func (PostMediaUploadResponseCapn) String

type PostMediaUploadResponseCapn_List

type PostMediaUploadResponseCapn_List struct{ capnp.List }

PostMediaUploadResponseCapn_List is a list of PostMediaUploadResponseCapn.

func NewPostMediaUploadResponseCapn_List

func NewPostMediaUploadResponseCapn_List(s *capnp.Segment, sz int32) (PostMediaUploadResponseCapn_List, error)

NewPostMediaUploadResponseCapn creates a new list of PostMediaUploadResponseCapn.

func (PostMediaUploadResponseCapn_List) At

func (PostMediaUploadResponseCapn_List) Set

func (PostMediaUploadResponseCapn_List) String

type PostMediaUploadResponseCapn_Promise

type PostMediaUploadResponseCapn_Promise struct{ *capnp.Pipeline }

PostMediaUploadResponseCapn_Promise is a wrapper for a PostMediaUploadResponseCapn promised by a client call.

func (PostMediaUploadResponseCapn_Promise) Struct

type PostPresenceListRequest

type PostPresenceListRequest struct {
	UserID string   `json:"user_id"`
	Invite []string `json:"invite"`
	Drop   []string `json:"drop"`
}

func (*PostPresenceListRequest) Decode

func (externalReq *PostPresenceListRequest) Decode(input []byte) error

func (*PostPresenceListRequest) Encode

func (externalReq *PostPresenceListRequest) Encode() ([]byte, error)

type PostPresenceListRequestCapn

type PostPresenceListRequestCapn struct{ capnp.Struct }

func NewPostPresenceListRequestCapn

func NewPostPresenceListRequestCapn(s *capnp.Segment) (PostPresenceListRequestCapn, error)

func NewRootPostPresenceListRequestCapn

func NewRootPostPresenceListRequestCapn(s *capnp.Segment) (PostPresenceListRequestCapn, error)

func ReadRootPostPresenceListRequestCapn

func ReadRootPostPresenceListRequestCapn(msg *capnp.Message) (PostPresenceListRequestCapn, error)

func (PostPresenceListRequestCapn) Drop

func (PostPresenceListRequestCapn) HasDrop

func (s PostPresenceListRequestCapn) HasDrop() bool

func (PostPresenceListRequestCapn) HasInvite

func (s PostPresenceListRequestCapn) HasInvite() bool

func (PostPresenceListRequestCapn) HasUserID

func (s PostPresenceListRequestCapn) HasUserID() bool

func (PostPresenceListRequestCapn) Invite

func (PostPresenceListRequestCapn) NewDrop

NewDrop sets the drop field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (PostPresenceListRequestCapn) NewInvite

NewInvite sets the invite field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (PostPresenceListRequestCapn) SetDrop

func (PostPresenceListRequestCapn) SetInvite

func (PostPresenceListRequestCapn) SetUserID

func (s PostPresenceListRequestCapn) SetUserID(v string) error

func (PostPresenceListRequestCapn) String

func (PostPresenceListRequestCapn) UserID

func (PostPresenceListRequestCapn) UserIDBytes

func (s PostPresenceListRequestCapn) UserIDBytes() ([]byte, error)

type PostPresenceListRequestCapn_List

type PostPresenceListRequestCapn_List struct{ capnp.List }

PostPresenceListRequestCapn_List is a list of PostPresenceListRequestCapn.

func NewPostPresenceListRequestCapn_List

func NewPostPresenceListRequestCapn_List(s *capnp.Segment, sz int32) (PostPresenceListRequestCapn_List, error)

NewPostPresenceListRequestCapn creates a new list of PostPresenceListRequestCapn.

func (PostPresenceListRequestCapn_List) At

func (PostPresenceListRequestCapn_List) Set

func (PostPresenceListRequestCapn_List) String

type PostPresenceListRequestCapn_Promise

type PostPresenceListRequestCapn_Promise struct{ *capnp.Pipeline }

PostPresenceListRequestCapn_Promise is a wrapper for a PostPresenceListRequestCapn promised by a client call.

func (PostPresenceListRequestCapn_Promise) Struct

type PostPublicRoomsRequest

type PostPublicRoomsRequest struct {
	Limit                int64  `json:"limit"`
	Since                string `json:"since"`
	Filter               filter `json:"filter"`
	IncludeAllNetworks   bool   `json:"include_all_networks"`
	ThirdPartyInstanceID string `json:"third_party_instance_id"`
	Server               string `json:"server"`
}

POST /_matrix/client/r0/publicRooms

func (*PostPublicRoomsRequest) Decode

func (externalReq *PostPublicRoomsRequest) Decode(input []byte) error

func (*PostPublicRoomsRequest) Encode

func (externalReq *PostPublicRoomsRequest) Encode() ([]byte, error)

type PostPublicRoomsRequestCapn

type PostPublicRoomsRequestCapn struct{ capnp.Struct }

func NewPostPublicRoomsRequestCapn

func NewPostPublicRoomsRequestCapn(s *capnp.Segment) (PostPublicRoomsRequestCapn, error)

func NewRootPostPublicRoomsRequestCapn

func NewRootPostPublicRoomsRequestCapn(s *capnp.Segment) (PostPublicRoomsRequestCapn, error)

func ReadRootPostPublicRoomsRequestCapn

func ReadRootPostPublicRoomsRequestCapn(msg *capnp.Message) (PostPublicRoomsRequestCapn, error)

func (PostPublicRoomsRequestCapn) Filter

func (PostPublicRoomsRequestCapn) HasFilter

func (s PostPublicRoomsRequestCapn) HasFilter() bool

func (PostPublicRoomsRequestCapn) HasServer

func (s PostPublicRoomsRequestCapn) HasServer() bool

func (PostPublicRoomsRequestCapn) HasSince

func (s PostPublicRoomsRequestCapn) HasSince() bool

func (PostPublicRoomsRequestCapn) HasThirdPartyInstanceID

func (s PostPublicRoomsRequestCapn) HasThirdPartyInstanceID() bool

func (PostPublicRoomsRequestCapn) IncludeAllNetworks

func (s PostPublicRoomsRequestCapn) IncludeAllNetworks() bool

func (PostPublicRoomsRequestCapn) Limit

func (PostPublicRoomsRequestCapn) NewFilter

func (s PostPublicRoomsRequestCapn) NewFilter() (FilterCapn, error)

NewFilter sets the filter field to a newly allocated FilterCapn struct, preferring placement in s's segment.

func (PostPublicRoomsRequestCapn) Server

func (s PostPublicRoomsRequestCapn) Server() (string, error)

func (PostPublicRoomsRequestCapn) ServerBytes

func (s PostPublicRoomsRequestCapn) ServerBytes() ([]byte, error)

func (PostPublicRoomsRequestCapn) SetFilter

func (PostPublicRoomsRequestCapn) SetIncludeAllNetworks

func (s PostPublicRoomsRequestCapn) SetIncludeAllNetworks(v bool)

func (PostPublicRoomsRequestCapn) SetLimit

func (s PostPublicRoomsRequestCapn) SetLimit(v int64)

func (PostPublicRoomsRequestCapn) SetServer

func (s PostPublicRoomsRequestCapn) SetServer(v string) error

func (PostPublicRoomsRequestCapn) SetSince

func (s PostPublicRoomsRequestCapn) SetSince(v string) error

func (PostPublicRoomsRequestCapn) SetThirdPartyInstanceID

func (s PostPublicRoomsRequestCapn) SetThirdPartyInstanceID(v string) error

func (PostPublicRoomsRequestCapn) Since

func (PostPublicRoomsRequestCapn) SinceBytes

func (s PostPublicRoomsRequestCapn) SinceBytes() ([]byte, error)

func (PostPublicRoomsRequestCapn) String

func (PostPublicRoomsRequestCapn) ThirdPartyInstanceID

func (s PostPublicRoomsRequestCapn) ThirdPartyInstanceID() (string, error)

func (PostPublicRoomsRequestCapn) ThirdPartyInstanceIDBytes

func (s PostPublicRoomsRequestCapn) ThirdPartyInstanceIDBytes() ([]byte, error)

type PostPublicRoomsRequestCapn_List

type PostPublicRoomsRequestCapn_List struct{ capnp.List }

PostPublicRoomsRequestCapn_List is a list of PostPublicRoomsRequestCapn.

func NewPostPublicRoomsRequestCapn_List

func NewPostPublicRoomsRequestCapn_List(s *capnp.Segment, sz int32) (PostPublicRoomsRequestCapn_List, error)

NewPostPublicRoomsRequestCapn creates a new list of PostPublicRoomsRequestCapn.

func (PostPublicRoomsRequestCapn_List) At

func (PostPublicRoomsRequestCapn_List) Set

func (PostPublicRoomsRequestCapn_List) String

type PostPublicRoomsRequestCapn_Promise

type PostPublicRoomsRequestCapn_Promise struct{ *capnp.Pipeline }

PostPublicRoomsRequestCapn_Promise is a wrapper for a PostPublicRoomsRequestCapn promised by a client call.

func (PostPublicRoomsRequestCapn_Promise) Filter

func (PostPublicRoomsRequestCapn_Promise) Struct

type PostPublicRoomsResponse

type PostPublicRoomsResponse struct {
	Chunk     []PublicRoomsChunk `json:"chunk"`
	NextBatch string             `json:"next_batch,omitempty"`
	PrevBatch string             `json:"prev_batch,omitempty"`
	Estimate  int64              `json:"total_room_count_estimate,omitempty"`
}

response

func (*PostPublicRoomsResponse) Decode

func (res *PostPublicRoomsResponse) Decode(input []byte) error

func (*PostPublicRoomsResponse) Encode

func (res *PostPublicRoomsResponse) Encode() ([]byte, error)

type PostPublicRoomsResponseCapn

type PostPublicRoomsResponseCapn struct{ capnp.Struct }

func NewPostPublicRoomsResponseCapn

func NewPostPublicRoomsResponseCapn(s *capnp.Segment) (PostPublicRoomsResponseCapn, error)

func NewRootPostPublicRoomsResponseCapn

func NewRootPostPublicRoomsResponseCapn(s *capnp.Segment) (PostPublicRoomsResponseCapn, error)

func ReadRootPostPublicRoomsResponseCapn

func ReadRootPostPublicRoomsResponseCapn(msg *capnp.Message) (PostPublicRoomsResponseCapn, error)

func (PostPublicRoomsResponseCapn) Chunk

func (PostPublicRoomsResponseCapn) HasChunk

func (s PostPublicRoomsResponseCapn) HasChunk() bool

func (PostPublicRoomsResponseCapn) HasNextBatch

func (s PostPublicRoomsResponseCapn) HasNextBatch() bool

func (PostPublicRoomsResponseCapn) HasPrevBatch

func (s PostPublicRoomsResponseCapn) HasPrevBatch() bool

func (PostPublicRoomsResponseCapn) NewChunk

NewChunk sets the chunk field to a newly allocated PublicRoomsChunkCapn_List, preferring placement in s's segment.

func (PostPublicRoomsResponseCapn) NextBatch

func (s PostPublicRoomsResponseCapn) NextBatch() (string, error)

func (PostPublicRoomsResponseCapn) NextBatchBytes

func (s PostPublicRoomsResponseCapn) NextBatchBytes() ([]byte, error)

func (PostPublicRoomsResponseCapn) PrevBatch

func (s PostPublicRoomsResponseCapn) PrevBatch() (string, error)

func (PostPublicRoomsResponseCapn) PrevBatchBytes

func (s PostPublicRoomsResponseCapn) PrevBatchBytes() ([]byte, error)

func (PostPublicRoomsResponseCapn) SetChunk

func (PostPublicRoomsResponseCapn) SetNextBatch

func (s PostPublicRoomsResponseCapn) SetNextBatch(v string) error

func (PostPublicRoomsResponseCapn) SetPrevBatch

func (s PostPublicRoomsResponseCapn) SetPrevBatch(v string) error

func (PostPublicRoomsResponseCapn) SetTotal

func (s PostPublicRoomsResponseCapn) SetTotal(v int64)

func (PostPublicRoomsResponseCapn) String

func (PostPublicRoomsResponseCapn) Total

type PostPublicRoomsResponseCapn_List

type PostPublicRoomsResponseCapn_List struct{ capnp.List }

PostPublicRoomsResponseCapn_List is a list of PostPublicRoomsResponseCapn.

func NewPostPublicRoomsResponseCapn_List

func NewPostPublicRoomsResponseCapn_List(s *capnp.Segment, sz int32) (PostPublicRoomsResponseCapn_List, error)

NewPostPublicRoomsResponseCapn creates a new list of PostPublicRoomsResponseCapn.

func (PostPublicRoomsResponseCapn_List) At

func (PostPublicRoomsResponseCapn_List) Set

func (PostPublicRoomsResponseCapn_List) String

type PostPublicRoomsResponseCapn_Promise

type PostPublicRoomsResponseCapn_Promise struct{ *capnp.Pipeline }

PostPublicRoomsResponseCapn_Promise is a wrapper for a PostPublicRoomsResponseCapn promised by a client call.

func (PostPublicRoomsResponseCapn_Promise) Struct

type PostQueryAuthRequest

type PostQueryAuthRequest struct {
	RoomID    string                    `json:"roomId"`
	EventID   string                    `json:"eventId"`
	AuthChain []gomatrixserverlib.Event `json:"auth_chain"`
	Missing   []string                  `json:"missing,omitempty"`
	Rejects   map[string]struct {
		Reason string `json:"reason"`
	} `json:"rejects,omitempty"`
}

func (*PostQueryAuthRequest) Decode

func (externalReq *PostQueryAuthRequest) Decode(data []byte) error

func (*PostQueryAuthRequest) Encode

func (externalReq *PostQueryAuthRequest) Encode() ([]byte, error)

type PostQueryAuthResponse

type PostQueryAuthResponse struct {
	AuthChain []gomatrixserverlib.Event `json:"auth_chain"`
	Missing   []string                  `json:"missing"`
	Rejects   map[string]struct {
		Reason string `json:"reason"`
	} `json:"rejects"`
}

func (*PostQueryAuthResponse) Decode

func (res *PostQueryAuthResponse) Decode(input []byte) error

func (*PostQueryAuthResponse) Encode

func (r *PostQueryAuthResponse) Encode() ([]byte, error)

type PostQueryClientKeysRequest

type PostQueryClientKeysRequest struct {
	DeviceKeys map[string][]string `json:"device_keys"`
}

func (*PostQueryClientKeysRequest) Decode

func (externalReq *PostQueryClientKeysRequest) Decode(data []byte) error

func (*PostQueryClientKeysRequest) Encode

func (externalReq *PostQueryClientKeysRequest) Encode() ([]byte, error)

type PostQueryClientKeysResponse

type PostQueryClientKeysResponse struct {
	DeviceKeys map[string]map[string]DeviceKeys `json:"device_keys"`
}

func (*PostQueryClientKeysResponse) Decode

func (res *PostQueryClientKeysResponse) Decode(input []byte) error

func (*PostQueryClientKeysResponse) Encode

func (r *PostQueryClientKeysResponse) Encode() ([]byte, error)

type PostQueryKeysRequest

type PostQueryKeysRequest struct {
	TimeOut    int64                  `json:"timeout"`
	DeviceKeys map[string]interface{} `json:"device_keys"`
	Token      string                 `json:"token"`
}

POST /_matrix/client/r0/keys/query

func (*PostQueryKeysRequest) Decode

func (externalReq *PostQueryKeysRequest) Decode(input []byte) error

func (*PostQueryKeysRequest) Encode

func (externalReq *PostQueryKeysRequest) Encode() ([]byte, error)

type PostQueryKeysResponse

type PostQueryKeysResponse struct {
	Failures   map[string]interface{}           `json:"failures"`
	DeviceKeys map[string]map[string]DeviceKeys `json:"device_keys"`
}

func (*PostQueryKeysResponse) Decode

func (res *PostQueryKeysResponse) Decode(input []byte) error

func (*PostQueryKeysResponse) Encode

func (res *PostQueryKeysResponse) Encode() ([]byte, error)

type PostRegisterEmailRequest

type PostRegisterEmailRequest struct {
	ClientSecret string `json:"client_secret"`
	Email        string `json:"email"`
	SendAttempt  int    `json:"send_attempt"`
	NextLink     string `json:"next_link"`
	IDServer     string `json:"id_server"`
}

POST /_matrix/client/r0/register/email/requestToken request

type PostRegisterEmailRequestCapn

type PostRegisterEmailRequestCapn struct{ capnp.Struct }

func NewPostRegisterEmailRequestCapn

func NewPostRegisterEmailRequestCapn(s *capnp.Segment) (PostRegisterEmailRequestCapn, error)

func NewRootPostRegisterEmailRequestCapn

func NewRootPostRegisterEmailRequestCapn(s *capnp.Segment) (PostRegisterEmailRequestCapn, error)

func ReadRootPostRegisterEmailRequestCapn

func ReadRootPostRegisterEmailRequestCapn(msg *capnp.Message) (PostRegisterEmailRequestCapn, error)

func (PostRegisterEmailRequestCapn) ClientSecret

func (s PostRegisterEmailRequestCapn) ClientSecret() (string, error)

func (PostRegisterEmailRequestCapn) ClientSecretBytes

func (s PostRegisterEmailRequestCapn) ClientSecretBytes() ([]byte, error)

func (PostRegisterEmailRequestCapn) Email

func (PostRegisterEmailRequestCapn) EmailBytes

func (s PostRegisterEmailRequestCapn) EmailBytes() ([]byte, error)

func (PostRegisterEmailRequestCapn) HasClientSecret

func (s PostRegisterEmailRequestCapn) HasClientSecret() bool

func (PostRegisterEmailRequestCapn) HasEmail

func (s PostRegisterEmailRequestCapn) HasEmail() bool

func (PostRegisterEmailRequestCapn) HasIDServer

func (s PostRegisterEmailRequestCapn) HasIDServer() bool
func (s PostRegisterEmailRequestCapn) HasNextLink() bool

func (PostRegisterEmailRequestCapn) IDServer

func (s PostRegisterEmailRequestCapn) IDServer() (string, error)

func (PostRegisterEmailRequestCapn) IDServerBytes

func (s PostRegisterEmailRequestCapn) IDServerBytes() ([]byte, error)
func (s PostRegisterEmailRequestCapn) NextLink() (string, error)

func (PostRegisterEmailRequestCapn) NextLinkBytes

func (s PostRegisterEmailRequestCapn) NextLinkBytes() ([]byte, error)

func (PostRegisterEmailRequestCapn) SendAttempt

func (s PostRegisterEmailRequestCapn) SendAttempt() int64

func (PostRegisterEmailRequestCapn) SetClientSecret

func (s PostRegisterEmailRequestCapn) SetClientSecret(v string) error

func (PostRegisterEmailRequestCapn) SetEmail

func (PostRegisterEmailRequestCapn) SetIDServer

func (s PostRegisterEmailRequestCapn) SetIDServer(v string) error
func (s PostRegisterEmailRequestCapn) SetNextLink(v string) error

func (PostRegisterEmailRequestCapn) SetSendAttempt

func (s PostRegisterEmailRequestCapn) SetSendAttempt(v int64)

func (PostRegisterEmailRequestCapn) String

type PostRegisterEmailRequestCapn_List

type PostRegisterEmailRequestCapn_List struct{ capnp.List }

PostRegisterEmailRequestCapn_List is a list of PostRegisterEmailRequestCapn.

func NewPostRegisterEmailRequestCapn_List

func NewPostRegisterEmailRequestCapn_List(s *capnp.Segment, sz int32) (PostRegisterEmailRequestCapn_List, error)

NewPostRegisterEmailRequestCapn creates a new list of PostRegisterEmailRequestCapn.

func (PostRegisterEmailRequestCapn_List) At

func (PostRegisterEmailRequestCapn_List) Set

func (PostRegisterEmailRequestCapn_List) String

type PostRegisterEmailRequestCapn_Promise

type PostRegisterEmailRequestCapn_Promise struct{ *capnp.Pipeline }

PostRegisterEmailRequestCapn_Promise is a wrapper for a PostRegisterEmailRequestCapn promised by a client call.

func (PostRegisterEmailRequestCapn_Promise) Struct

type PostRegisterEmailResponse

type PostRegisterEmailResponse struct {
	SID string `json:"sid"`
}

response

func (*PostRegisterEmailResponse) Decode

func (res *PostRegisterEmailResponse) Decode(input []byte) error

func (*PostRegisterEmailResponse) Encode

func (res *PostRegisterEmailResponse) Encode() ([]byte, error)

type PostRegisterEmailResponseCapn

type PostRegisterEmailResponseCapn struct{ capnp.Struct }

func NewPostRegisterEmailResponseCapn

func NewPostRegisterEmailResponseCapn(s *capnp.Segment) (PostRegisterEmailResponseCapn, error)

func NewRootPostRegisterEmailResponseCapn

func NewRootPostRegisterEmailResponseCapn(s *capnp.Segment) (PostRegisterEmailResponseCapn, error)

func ReadRootPostRegisterEmailResponseCapn

func ReadRootPostRegisterEmailResponseCapn(msg *capnp.Message) (PostRegisterEmailResponseCapn, error)

func (PostRegisterEmailResponseCapn) HasSID

func (PostRegisterEmailResponseCapn) SID

func (PostRegisterEmailResponseCapn) SIDBytes

func (s PostRegisterEmailResponseCapn) SIDBytes() ([]byte, error)

func (PostRegisterEmailResponseCapn) SetSID

func (PostRegisterEmailResponseCapn) String

type PostRegisterEmailResponseCapn_List

type PostRegisterEmailResponseCapn_List struct{ capnp.List }

PostRegisterEmailResponseCapn_List is a list of PostRegisterEmailResponseCapn.

func NewPostRegisterEmailResponseCapn_List

func NewPostRegisterEmailResponseCapn_List(s *capnp.Segment, sz int32) (PostRegisterEmailResponseCapn_List, error)

NewPostRegisterEmailResponseCapn creates a new list of PostRegisterEmailResponseCapn.

func (PostRegisterEmailResponseCapn_List) At

func (PostRegisterEmailResponseCapn_List) Set

func (PostRegisterEmailResponseCapn_List) String

type PostRegisterEmailResponseCapn_Promise

type PostRegisterEmailResponseCapn_Promise struct{ *capnp.Pipeline }

PostRegisterEmailResponseCapn_Promise is a wrapper for a PostRegisterEmailResponseCapn promised by a client call.

func (PostRegisterEmailResponseCapn_Promise) Struct

type PostRegisterMsisdResponse

type PostRegisterMsisdResponse struct {
	SID string `json:"sid"`
}

response

func (*PostRegisterMsisdResponse) Decode

func (res *PostRegisterMsisdResponse) Decode(input []byte) error

func (*PostRegisterMsisdResponse) Encode

func (res *PostRegisterMsisdResponse) Encode() ([]byte, error)

type PostRegisterMsisdResponseCapn

type PostRegisterMsisdResponseCapn struct{ capnp.Struct }

func NewPostRegisterMsisdResponseCapn

func NewPostRegisterMsisdResponseCapn(s *capnp.Segment) (PostRegisterMsisdResponseCapn, error)

func NewRootPostRegisterMsisdResponseCapn

func NewRootPostRegisterMsisdResponseCapn(s *capnp.Segment) (PostRegisterMsisdResponseCapn, error)

func ReadRootPostRegisterMsisdResponseCapn

func ReadRootPostRegisterMsisdResponseCapn(msg *capnp.Message) (PostRegisterMsisdResponseCapn, error)

func (PostRegisterMsisdResponseCapn) HasSID

func (PostRegisterMsisdResponseCapn) SID

func (PostRegisterMsisdResponseCapn) SIDBytes

func (s PostRegisterMsisdResponseCapn) SIDBytes() ([]byte, error)

func (PostRegisterMsisdResponseCapn) SetSID

func (PostRegisterMsisdResponseCapn) String

type PostRegisterMsisdResponseCapn_List

type PostRegisterMsisdResponseCapn_List struct{ capnp.List }

PostRegisterMsisdResponseCapn_List is a list of PostRegisterMsisdResponseCapn.

func NewPostRegisterMsisdResponseCapn_List

func NewPostRegisterMsisdResponseCapn_List(s *capnp.Segment, sz int32) (PostRegisterMsisdResponseCapn_List, error)

NewPostRegisterMsisdResponseCapn creates a new list of PostRegisterMsisdResponseCapn.

func (PostRegisterMsisdResponseCapn_List) At

func (PostRegisterMsisdResponseCapn_List) Set

func (PostRegisterMsisdResponseCapn_List) String

type PostRegisterMsisdResponseCapn_Promise

type PostRegisterMsisdResponseCapn_Promise struct{ *capnp.Pipeline }

PostRegisterMsisdResponseCapn_Promise is a wrapper for a PostRegisterMsisdResponseCapn promised by a client call.

func (PostRegisterMsisdResponseCapn_Promise) Struct

type PostRegisterMsisdnRequest

type PostRegisterMsisdnRequest struct {
	ClientSecret string `json:"client_secret"`
	Country      string `json:"country"`
	PhoneNumber  string `json:"phone_number"`
	SendAttempt  int    `json:"send_attempt"`
	NextLink     string `json:"next_link"`
	IDServer     string `json:"id_server"`
}

POST /_matrix/client/r0/register/msisdn/requestToken request

type PostRegisterMsisdnRequestCapn

type PostRegisterMsisdnRequestCapn struct{ capnp.Struct }

func NewPostRegisterMsisdnRequestCapn

func NewPostRegisterMsisdnRequestCapn(s *capnp.Segment) (PostRegisterMsisdnRequestCapn, error)

func NewRootPostRegisterMsisdnRequestCapn

func NewRootPostRegisterMsisdnRequestCapn(s *capnp.Segment) (PostRegisterMsisdnRequestCapn, error)

func ReadRootPostRegisterMsisdnRequestCapn

func ReadRootPostRegisterMsisdnRequestCapn(msg *capnp.Message) (PostRegisterMsisdnRequestCapn, error)

func (PostRegisterMsisdnRequestCapn) ClientSecret

func (s PostRegisterMsisdnRequestCapn) ClientSecret() (string, error)

func (PostRegisterMsisdnRequestCapn) ClientSecretBytes

func (s PostRegisterMsisdnRequestCapn) ClientSecretBytes() ([]byte, error)

func (PostRegisterMsisdnRequestCapn) Country

func (PostRegisterMsisdnRequestCapn) CountryBytes

func (s PostRegisterMsisdnRequestCapn) CountryBytes() ([]byte, error)

func (PostRegisterMsisdnRequestCapn) HasClientSecret

func (s PostRegisterMsisdnRequestCapn) HasClientSecret() bool

func (PostRegisterMsisdnRequestCapn) HasCountry

func (s PostRegisterMsisdnRequestCapn) HasCountry() bool

func (PostRegisterMsisdnRequestCapn) HasIDServer

func (s PostRegisterMsisdnRequestCapn) HasIDServer() bool
func (s PostRegisterMsisdnRequestCapn) HasNextLink() bool

func (PostRegisterMsisdnRequestCapn) HasPhoneNumber

func (s PostRegisterMsisdnRequestCapn) HasPhoneNumber() bool

func (PostRegisterMsisdnRequestCapn) IDServer

func (s PostRegisterMsisdnRequestCapn) IDServer() (string, error)

func (PostRegisterMsisdnRequestCapn) IDServerBytes

func (s PostRegisterMsisdnRequestCapn) IDServerBytes() ([]byte, error)
func (s PostRegisterMsisdnRequestCapn) NextLink() (string, error)

func (PostRegisterMsisdnRequestCapn) NextLinkBytes

func (s PostRegisterMsisdnRequestCapn) NextLinkBytes() ([]byte, error)

func (PostRegisterMsisdnRequestCapn) PhoneNumber

func (s PostRegisterMsisdnRequestCapn) PhoneNumber() (string, error)

func (PostRegisterMsisdnRequestCapn) PhoneNumberBytes

func (s PostRegisterMsisdnRequestCapn) PhoneNumberBytes() ([]byte, error)

func (PostRegisterMsisdnRequestCapn) SendAttempt

func (s PostRegisterMsisdnRequestCapn) SendAttempt() int64

func (PostRegisterMsisdnRequestCapn) SetClientSecret

func (s PostRegisterMsisdnRequestCapn) SetClientSecret(v string) error

func (PostRegisterMsisdnRequestCapn) SetCountry

func (s PostRegisterMsisdnRequestCapn) SetCountry(v string) error

func (PostRegisterMsisdnRequestCapn) SetIDServer

func (s PostRegisterMsisdnRequestCapn) SetIDServer(v string) error
func (s PostRegisterMsisdnRequestCapn) SetNextLink(v string) error

func (PostRegisterMsisdnRequestCapn) SetPhoneNumber

func (s PostRegisterMsisdnRequestCapn) SetPhoneNumber(v string) error

func (PostRegisterMsisdnRequestCapn) SetSendAttempt

func (s PostRegisterMsisdnRequestCapn) SetSendAttempt(v int64)

func (PostRegisterMsisdnRequestCapn) String

type PostRegisterMsisdnRequestCapn_List

type PostRegisterMsisdnRequestCapn_List struct{ capnp.List }

PostRegisterMsisdnRequestCapn_List is a list of PostRegisterMsisdnRequestCapn.

func NewPostRegisterMsisdnRequestCapn_List

func NewPostRegisterMsisdnRequestCapn_List(s *capnp.Segment, sz int32) (PostRegisterMsisdnRequestCapn_List, error)

NewPostRegisterMsisdnRequestCapn creates a new list of PostRegisterMsisdnRequestCapn.

func (PostRegisterMsisdnRequestCapn_List) At

func (PostRegisterMsisdnRequestCapn_List) Set

func (PostRegisterMsisdnRequestCapn_List) String

type PostRegisterMsisdnRequestCapn_Promise

type PostRegisterMsisdnRequestCapn_Promise struct{ *capnp.Pipeline }

PostRegisterMsisdnRequestCapn_Promise is a wrapper for a PostRegisterMsisdnRequestCapn promised by a client call.

func (PostRegisterMsisdnRequestCapn_Promise) Struct

type PostRegisterRequest

type PostRegisterRequest struct {
	Auth               AuthDict `json:"auth"`
	BindEmail          bool     `json:"bind_email"`
	Username           string   `json:"username"`
	Password           string   `json:"password"`
	DeviceID           string   `json:"device_id"`
	InitialDisplayName string   `json:"initial_device_display_name"`
	InhibitLogin       bool     `json:"inhibit_login"`

	Kind        string `json:"kind"`
	Domain      string `json:"domain"`
	AccessToken string `json:"access_token"`

	RemoteAddr string `json:"remote_addr"`

	Admin bool `json:"admin"`
}

func (*PostRegisterRequest) Decode

func (externalReq *PostRegisterRequest) Decode(input []byte) error

func (*PostRegisterRequest) Encode

func (externalReq *PostRegisterRequest) Encode() ([]byte, error)

type PostRegisterRequestCapn

type PostRegisterRequestCapn struct{ capnp.Struct }

func NewPostRegisterRequestCapn

func NewPostRegisterRequestCapn(s *capnp.Segment) (PostRegisterRequestCapn, error)

func NewRootPostRegisterRequestCapn

func NewRootPostRegisterRequestCapn(s *capnp.Segment) (PostRegisterRequestCapn, error)

func ReadRootPostRegisterRequestCapn

func ReadRootPostRegisterRequestCapn(msg *capnp.Message) (PostRegisterRequestCapn, error)

func (PostRegisterRequestCapn) AccessToken

func (s PostRegisterRequestCapn) AccessToken() (string, error)

func (PostRegisterRequestCapn) AccessTokenBytes

func (s PostRegisterRequestCapn) AccessTokenBytes() ([]byte, error)

func (PostRegisterRequestCapn) Admin

func (s PostRegisterRequestCapn) Admin() bool

func (PostRegisterRequestCapn) Auth

func (PostRegisterRequestCapn) BindEmail

func (s PostRegisterRequestCapn) BindEmail() bool

func (PostRegisterRequestCapn) DeviceID

func (s PostRegisterRequestCapn) DeviceID() (string, error)

func (PostRegisterRequestCapn) DeviceIDBytes

func (s PostRegisterRequestCapn) DeviceIDBytes() ([]byte, error)

func (PostRegisterRequestCapn) Domain

func (s PostRegisterRequestCapn) Domain() (string, error)

func (PostRegisterRequestCapn) DomainBytes

func (s PostRegisterRequestCapn) DomainBytes() ([]byte, error)

func (PostRegisterRequestCapn) HasAccessToken

func (s PostRegisterRequestCapn) HasAccessToken() bool

func (PostRegisterRequestCapn) HasAuth

func (s PostRegisterRequestCapn) HasAuth() bool

func (PostRegisterRequestCapn) HasDeviceID

func (s PostRegisterRequestCapn) HasDeviceID() bool

func (PostRegisterRequestCapn) HasDomain

func (s PostRegisterRequestCapn) HasDomain() bool

func (PostRegisterRequestCapn) HasInitialDisplayName

func (s PostRegisterRequestCapn) HasInitialDisplayName() bool

func (PostRegisterRequestCapn) HasKind

func (s PostRegisterRequestCapn) HasKind() bool

func (PostRegisterRequestCapn) HasPassword

func (s PostRegisterRequestCapn) HasPassword() bool

func (PostRegisterRequestCapn) HasRemoteAddr

func (s PostRegisterRequestCapn) HasRemoteAddr() bool

func (PostRegisterRequestCapn) HasUsername

func (s PostRegisterRequestCapn) HasUsername() bool

func (PostRegisterRequestCapn) InhibitLogin

func (s PostRegisterRequestCapn) InhibitLogin() bool

func (PostRegisterRequestCapn) InitialDisplayName

func (s PostRegisterRequestCapn) InitialDisplayName() (string, error)

func (PostRegisterRequestCapn) InitialDisplayNameBytes

func (s PostRegisterRequestCapn) InitialDisplayNameBytes() ([]byte, error)

func (PostRegisterRequestCapn) Kind

func (s PostRegisterRequestCapn) Kind() (string, error)

func (PostRegisterRequestCapn) KindBytes

func (s PostRegisterRequestCapn) KindBytes() ([]byte, error)

func (PostRegisterRequestCapn) NewAuth

NewAuth sets the auth field to a newly allocated AuthDictCapn struct, preferring placement in s's segment.

func (PostRegisterRequestCapn) Password

func (s PostRegisterRequestCapn) Password() (string, error)

func (PostRegisterRequestCapn) PasswordBytes

func (s PostRegisterRequestCapn) PasswordBytes() ([]byte, error)

func (PostRegisterRequestCapn) RemoteAddr

func (s PostRegisterRequestCapn) RemoteAddr() (string, error)

func (PostRegisterRequestCapn) RemoteAddrBytes

func (s PostRegisterRequestCapn) RemoteAddrBytes() ([]byte, error)

func (PostRegisterRequestCapn) SetAccessToken

func (s PostRegisterRequestCapn) SetAccessToken(v string) error

func (PostRegisterRequestCapn) SetAdmin

func (s PostRegisterRequestCapn) SetAdmin(v bool)

func (PostRegisterRequestCapn) SetAuth

func (PostRegisterRequestCapn) SetBindEmail

func (s PostRegisterRequestCapn) SetBindEmail(v bool)

func (PostRegisterRequestCapn) SetDeviceID

func (s PostRegisterRequestCapn) SetDeviceID(v string) error

func (PostRegisterRequestCapn) SetDomain

func (s PostRegisterRequestCapn) SetDomain(v string) error

func (PostRegisterRequestCapn) SetInhibitLogin

func (s PostRegisterRequestCapn) SetInhibitLogin(v bool)

func (PostRegisterRequestCapn) SetInitialDisplayName

func (s PostRegisterRequestCapn) SetInitialDisplayName(v string) error

func (PostRegisterRequestCapn) SetKind

func (s PostRegisterRequestCapn) SetKind(v string) error

func (PostRegisterRequestCapn) SetPassword

func (s PostRegisterRequestCapn) SetPassword(v string) error

func (PostRegisterRequestCapn) SetRemoteAddr

func (s PostRegisterRequestCapn) SetRemoteAddr(v string) error

func (PostRegisterRequestCapn) SetUsername

func (s PostRegisterRequestCapn) SetUsername(v string) error

func (PostRegisterRequestCapn) String

func (s PostRegisterRequestCapn) String() string

func (PostRegisterRequestCapn) Username

func (s PostRegisterRequestCapn) Username() (string, error)

func (PostRegisterRequestCapn) UsernameBytes

func (s PostRegisterRequestCapn) UsernameBytes() ([]byte, error)

type PostRegisterRequestCapn_List

type PostRegisterRequestCapn_List struct{ capnp.List }

PostRegisterRequestCapn_List is a list of PostRegisterRequestCapn.

func NewPostRegisterRequestCapn_List

func NewPostRegisterRequestCapn_List(s *capnp.Segment, sz int32) (PostRegisterRequestCapn_List, error)

NewPostRegisterRequestCapn creates a new list of PostRegisterRequestCapn.

func (PostRegisterRequestCapn_List) At

func (PostRegisterRequestCapn_List) Set

func (PostRegisterRequestCapn_List) String

type PostRegisterRequestCapn_Promise

type PostRegisterRequestCapn_Promise struct{ *capnp.Pipeline }

PostRegisterRequestCapn_Promise is a wrapper for a PostRegisterRequestCapn promised by a client call.

func (PostRegisterRequestCapn_Promise) Auth

func (PostRegisterRequestCapn_Promise) Struct

type PostReportDeviceState

type PostReportDeviceState struct {
	State int `json:"state"`
}

func (*PostReportDeviceState) Decode

func (externalReq *PostReportDeviceState) Decode(input []byte) error

func (*PostReportDeviceState) Encode

func (externalReq *PostReportDeviceState) Encode() ([]byte, error)

type PostReportMissingEventsRequest

type PostReportMissingEventsRequest struct {
	RoomID string  `json:"roomID`
	Depth  []int64 `json:"depth"`
}

func (*PostReportMissingEventsRequest) Decode

func (externalReq *PostReportMissingEventsRequest) Decode(data []byte) error

func (*PostReportMissingEventsRequest) Encode

func (externalReq *PostReportMissingEventsRequest) Encode() ([]byte, error)

type PostReportRoomRequest

type PostReportRoomRequest struct {
	RoomID string `json:"room_id"`
}

func (*PostReportRoomRequest) Decode

func (externalReq *PostReportRoomRequest) Decode(input []byte) error

func (*PostReportRoomRequest) Encode

func (externalReq *PostReportRoomRequest) Encode() ([]byte, error)

type PostRoomReadMarkersRequest

type PostRoomReadMarkersRequest struct {
	RoomID      string `json:"roomId"`
	ReceiptType string `json:"receiptType"`
	FullyRead   string `json:"m.fully_read"`
	Read        string `json:"m.read"`
}

POST /_matrix/client/r0/rooms/{roomId}/read_markers

func (*PostRoomReadMarkersRequest) Decode

func (externalReq *PostRoomReadMarkersRequest) Decode(input []byte) error

func (*PostRoomReadMarkersRequest) Encode

func (externalReq *PostRoomReadMarkersRequest) Encode() ([]byte, error)

type PostRoomReadMarkersRequestCapn

type PostRoomReadMarkersRequestCapn struct{ capnp.Struct }

func NewPostRoomReadMarkersRequestCapn

func NewPostRoomReadMarkersRequestCapn(s *capnp.Segment) (PostRoomReadMarkersRequestCapn, error)

func NewRootPostRoomReadMarkersRequestCapn

func NewRootPostRoomReadMarkersRequestCapn(s *capnp.Segment) (PostRoomReadMarkersRequestCapn, error)

func ReadRootPostRoomReadMarkersRequestCapn

func ReadRootPostRoomReadMarkersRequestCapn(msg *capnp.Message) (PostRoomReadMarkersRequestCapn, error)

func (PostRoomReadMarkersRequestCapn) FullyRead

func (s PostRoomReadMarkersRequestCapn) FullyRead() (string, error)

func (PostRoomReadMarkersRequestCapn) FullyReadBytes

func (s PostRoomReadMarkersRequestCapn) FullyReadBytes() ([]byte, error)

func (PostRoomReadMarkersRequestCapn) HasFullyRead

func (s PostRoomReadMarkersRequestCapn) HasFullyRead() bool

func (PostRoomReadMarkersRequestCapn) HasRead

func (PostRoomReadMarkersRequestCapn) HasReceiptType

func (s PostRoomReadMarkersRequestCapn) HasReceiptType() bool

func (PostRoomReadMarkersRequestCapn) HasRoomID

func (s PostRoomReadMarkersRequestCapn) HasRoomID() bool

func (PostRoomReadMarkersRequestCapn) Read

func (PostRoomReadMarkersRequestCapn) ReadBytes

func (s PostRoomReadMarkersRequestCapn) ReadBytes() ([]byte, error)

func (PostRoomReadMarkersRequestCapn) ReceiptType

func (s PostRoomReadMarkersRequestCapn) ReceiptType() (string, error)

func (PostRoomReadMarkersRequestCapn) ReceiptTypeBytes

func (s PostRoomReadMarkersRequestCapn) ReceiptTypeBytes() ([]byte, error)

func (PostRoomReadMarkersRequestCapn) RoomID

func (PostRoomReadMarkersRequestCapn) RoomIDBytes

func (s PostRoomReadMarkersRequestCapn) RoomIDBytes() ([]byte, error)

func (PostRoomReadMarkersRequestCapn) SetFullyRead

func (s PostRoomReadMarkersRequestCapn) SetFullyRead(v string) error

func (PostRoomReadMarkersRequestCapn) SetRead

func (PostRoomReadMarkersRequestCapn) SetReceiptType

func (s PostRoomReadMarkersRequestCapn) SetReceiptType(v string) error

func (PostRoomReadMarkersRequestCapn) SetRoomID

func (PostRoomReadMarkersRequestCapn) String

type PostRoomReadMarkersRequestCapn_List

type PostRoomReadMarkersRequestCapn_List struct{ capnp.List }

PostRoomReadMarkersRequestCapn_List is a list of PostRoomReadMarkersRequestCapn.

func NewPostRoomReadMarkersRequestCapn_List

func NewPostRoomReadMarkersRequestCapn_List(s *capnp.Segment, sz int32) (PostRoomReadMarkersRequestCapn_List, error)

NewPostRoomReadMarkersRequestCapn creates a new list of PostRoomReadMarkersRequestCapn.

func (PostRoomReadMarkersRequestCapn_List) At

func (PostRoomReadMarkersRequestCapn_List) Set

func (PostRoomReadMarkersRequestCapn_List) String

type PostRoomReadMarkersRequestCapn_Promise

type PostRoomReadMarkersRequestCapn_Promise struct{ *capnp.Pipeline }

PostRoomReadMarkersRequestCapn_Promise is a wrapper for a PostRoomReadMarkersRequestCapn promised by a client call.

func (PostRoomReadMarkersRequestCapn_Promise) Struct

type PostRoomReceiptRequest

type PostRoomReceiptRequest struct {
	RoomID      string `json:"roomId"`
	ReceiptType string `json:"receiptType"`
	EventID     string `json:"eventId"`
}

POST /_matrix/client/r0/rooms/{roomId}/receipt/{receiptType}/{eventId}

func (*PostRoomReceiptRequest) Decode

func (externalReq *PostRoomReceiptRequest) Decode(input []byte) error

func (*PostRoomReceiptRequest) Encode

func (externalReq *PostRoomReceiptRequest) Encode() ([]byte, error)

type PostRoomReceiptRequestCapn

type PostRoomReceiptRequestCapn struct{ capnp.Struct }

func NewPostRoomReceiptRequestCapn

func NewPostRoomReceiptRequestCapn(s *capnp.Segment) (PostRoomReceiptRequestCapn, error)

func NewRootPostRoomReceiptRequestCapn

func NewRootPostRoomReceiptRequestCapn(s *capnp.Segment) (PostRoomReceiptRequestCapn, error)

func ReadRootPostRoomReceiptRequestCapn

func ReadRootPostRoomReceiptRequestCapn(msg *capnp.Message) (PostRoomReceiptRequestCapn, error)

func (PostRoomReceiptRequestCapn) EventID

func (s PostRoomReceiptRequestCapn) EventID() (string, error)

func (PostRoomReceiptRequestCapn) EventIDBytes

func (s PostRoomReceiptRequestCapn) EventIDBytes() ([]byte, error)

func (PostRoomReceiptRequestCapn) HasEventID

func (s PostRoomReceiptRequestCapn) HasEventID() bool

func (PostRoomReceiptRequestCapn) HasReceiptType

func (s PostRoomReceiptRequestCapn) HasReceiptType() bool

func (PostRoomReceiptRequestCapn) HasRoomID

func (s PostRoomReceiptRequestCapn) HasRoomID() bool

func (PostRoomReceiptRequestCapn) ReceiptType

func (s PostRoomReceiptRequestCapn) ReceiptType() (string, error)

func (PostRoomReceiptRequestCapn) ReceiptTypeBytes

func (s PostRoomReceiptRequestCapn) ReceiptTypeBytes() ([]byte, error)

func (PostRoomReceiptRequestCapn) RoomID

func (s PostRoomReceiptRequestCapn) RoomID() (string, error)

func (PostRoomReceiptRequestCapn) RoomIDBytes

func (s PostRoomReceiptRequestCapn) RoomIDBytes() ([]byte, error)

func (PostRoomReceiptRequestCapn) SetEventID

func (s PostRoomReceiptRequestCapn) SetEventID(v string) error

func (PostRoomReceiptRequestCapn) SetReceiptType

func (s PostRoomReceiptRequestCapn) SetReceiptType(v string) error

func (PostRoomReceiptRequestCapn) SetRoomID

func (s PostRoomReceiptRequestCapn) SetRoomID(v string) error

func (PostRoomReceiptRequestCapn) String

type PostRoomReceiptRequestCapn_List

type PostRoomReceiptRequestCapn_List struct{ capnp.List }

PostRoomReceiptRequestCapn_List is a list of PostRoomReceiptRequestCapn.

func NewPostRoomReceiptRequestCapn_List

func NewPostRoomReceiptRequestCapn_List(s *capnp.Segment, sz int32) (PostRoomReceiptRequestCapn_List, error)

NewPostRoomReceiptRequestCapn creates a new list of PostRoomReceiptRequestCapn.

func (PostRoomReceiptRequestCapn_List) At

func (PostRoomReceiptRequestCapn_List) Set

func (PostRoomReceiptRequestCapn_List) String

type PostRoomReceiptRequestCapn_Promise

type PostRoomReceiptRequestCapn_Promise struct{ *capnp.Pipeline }

PostRoomReceiptRequestCapn_Promise is a wrapper for a PostRoomReceiptRequestCapn promised by a client call.

func (PostRoomReceiptRequestCapn_Promise) Struct

type PostRoomReportRequest

type PostRoomReportRequest struct {
	RoomID  string `json:"roomId"`
	EventID string `json:"eventId"`
	Score   int    `json:"score"`
	Reason  string `json:"reason"`
}

POST /_matrix/client/r0/rooms/{roomId}/report/{eventId}

func (*PostRoomReportRequest) Decode

func (externalReq *PostRoomReportRequest) Decode(input []byte) error

func (*PostRoomReportRequest) Encode

func (externalReq *PostRoomReportRequest) Encode() ([]byte, error)

type PostRoomsBanRequest

type PostRoomsBanRequest struct {
	RoomID string `json:"room_id"`
	UserID string `json:"user_id"`
	Reason string `json:"reason"`
}

POST /_matrix/client/r0/rooms/{roomId}/ban

func (*PostRoomsBanRequest) Decode

func (externalReq *PostRoomsBanRequest) Decode(input []byte) error

func (*PostRoomsBanRequest) Encode

func (externalReq *PostRoomsBanRequest) Encode() ([]byte, error)

type PostRoomsBanRequestCapn

type PostRoomsBanRequestCapn struct{ capnp.Struct }

func NewPostRoomsBanRequestCapn

func NewPostRoomsBanRequestCapn(s *capnp.Segment) (PostRoomsBanRequestCapn, error)

func NewRootPostRoomsBanRequestCapn

func NewRootPostRoomsBanRequestCapn(s *capnp.Segment) (PostRoomsBanRequestCapn, error)

func ReadRootPostRoomsBanRequestCapn

func ReadRootPostRoomsBanRequestCapn(msg *capnp.Message) (PostRoomsBanRequestCapn, error)

func (PostRoomsBanRequestCapn) HasReason

func (s PostRoomsBanRequestCapn) HasReason() bool

func (PostRoomsBanRequestCapn) HasRoomID

func (s PostRoomsBanRequestCapn) HasRoomID() bool

func (PostRoomsBanRequestCapn) HasUserID

func (s PostRoomsBanRequestCapn) HasUserID() bool

func (PostRoomsBanRequestCapn) Reason

func (s PostRoomsBanRequestCapn) Reason() (string, error)

func (PostRoomsBanRequestCapn) ReasonBytes

func (s PostRoomsBanRequestCapn) ReasonBytes() ([]byte, error)

func (PostRoomsBanRequestCapn) RoomID

func (s PostRoomsBanRequestCapn) RoomID() (string, error)

func (PostRoomsBanRequestCapn) RoomIDBytes

func (s PostRoomsBanRequestCapn) RoomIDBytes() ([]byte, error)

func (PostRoomsBanRequestCapn) SetReason

func (s PostRoomsBanRequestCapn) SetReason(v string) error

func (PostRoomsBanRequestCapn) SetRoomID

func (s PostRoomsBanRequestCapn) SetRoomID(v string) error

func (PostRoomsBanRequestCapn) SetUserID

func (s PostRoomsBanRequestCapn) SetUserID(v string) error

func (PostRoomsBanRequestCapn) String

func (s PostRoomsBanRequestCapn) String() string

func (PostRoomsBanRequestCapn) UserID

func (s PostRoomsBanRequestCapn) UserID() (string, error)

func (PostRoomsBanRequestCapn) UserIDBytes

func (s PostRoomsBanRequestCapn) UserIDBytes() ([]byte, error)

type PostRoomsBanRequestCapn_List

type PostRoomsBanRequestCapn_List struct{ capnp.List }

PostRoomsBanRequestCapn_List is a list of PostRoomsBanRequestCapn.

func NewPostRoomsBanRequestCapn_List

func NewPostRoomsBanRequestCapn_List(s *capnp.Segment, sz int32) (PostRoomsBanRequestCapn_List, error)

NewPostRoomsBanRequestCapn creates a new list of PostRoomsBanRequestCapn.

func (PostRoomsBanRequestCapn_List) At

func (PostRoomsBanRequestCapn_List) Set

func (PostRoomsBanRequestCapn_List) String

type PostRoomsBanRequestCapn_Promise

type PostRoomsBanRequestCapn_Promise struct{ *capnp.Pipeline }

PostRoomsBanRequestCapn_Promise is a wrapper for a PostRoomsBanRequestCapn promised by a client call.

func (PostRoomsBanRequestCapn_Promise) Struct

type PostRoomsForgetRequest

type PostRoomsForgetRequest struct {
	RoomID string `json:"room_id"`
}

POST /_matrix/client/r0/rooms/{roomId}/forget

func (*PostRoomsForgetRequest) Decode

func (externalReq *PostRoomsForgetRequest) Decode(input []byte) error

func (*PostRoomsForgetRequest) Encode

func (externalReq *PostRoomsForgetRequest) Encode() ([]byte, error)

type PostRoomsForgetRequestCapn

type PostRoomsForgetRequestCapn struct{ capnp.Struct }

func NewPostRoomsForgetRequestCapn

func NewPostRoomsForgetRequestCapn(s *capnp.Segment) (PostRoomsForgetRequestCapn, error)

func NewRootPostRoomsForgetRequestCapn

func NewRootPostRoomsForgetRequestCapn(s *capnp.Segment) (PostRoomsForgetRequestCapn, error)

func ReadRootPostRoomsForgetRequestCapn

func ReadRootPostRoomsForgetRequestCapn(msg *capnp.Message) (PostRoomsForgetRequestCapn, error)

func (PostRoomsForgetRequestCapn) HasRoomID

func (s PostRoomsForgetRequestCapn) HasRoomID() bool

func (PostRoomsForgetRequestCapn) RoomID

func (s PostRoomsForgetRequestCapn) RoomID() (string, error)

func (PostRoomsForgetRequestCapn) RoomIDBytes

func (s PostRoomsForgetRequestCapn) RoomIDBytes() ([]byte, error)

func (PostRoomsForgetRequestCapn) SetRoomID

func (s PostRoomsForgetRequestCapn) SetRoomID(v string) error

func (PostRoomsForgetRequestCapn) String

type PostRoomsForgetRequestCapn_List

type PostRoomsForgetRequestCapn_List struct{ capnp.List }

PostRoomsForgetRequestCapn_List is a list of PostRoomsForgetRequestCapn.

func NewPostRoomsForgetRequestCapn_List

func NewPostRoomsForgetRequestCapn_List(s *capnp.Segment, sz int32) (PostRoomsForgetRequestCapn_List, error)

NewPostRoomsForgetRequestCapn creates a new list of PostRoomsForgetRequestCapn.

func (PostRoomsForgetRequestCapn_List) At

func (PostRoomsForgetRequestCapn_List) Set

func (PostRoomsForgetRequestCapn_List) String

type PostRoomsForgetRequestCapn_Promise

type PostRoomsForgetRequestCapn_Promise struct{ *capnp.Pipeline }

PostRoomsForgetRequestCapn_Promise is a wrapper for a PostRoomsForgetRequestCapn promised by a client call.

func (PostRoomsForgetRequestCapn_Promise) Struct

type PostRoomsInviteRequest

type PostRoomsInviteRequest struct {
	RoomID string `json:"room_id"`
	UserID string `json:"user_id"`
}

POST /_matrix/client/r0/rooms/{roomId}/invite

func (*PostRoomsInviteRequest) Decode

func (externalReq *PostRoomsInviteRequest) Decode(input []byte) error

func (*PostRoomsInviteRequest) Encode

func (externalReq *PostRoomsInviteRequest) Encode() ([]byte, error)

type PostRoomsInviteRequestCapn

type PostRoomsInviteRequestCapn struct{ capnp.Struct }

func NewPostRoomsInviteRequestCapn

func NewPostRoomsInviteRequestCapn(s *capnp.Segment) (PostRoomsInviteRequestCapn, error)

func NewRootPostRoomsInviteRequestCapn

func NewRootPostRoomsInviteRequestCapn(s *capnp.Segment) (PostRoomsInviteRequestCapn, error)

func ReadRootPostRoomsInviteRequestCapn

func ReadRootPostRoomsInviteRequestCapn(msg *capnp.Message) (PostRoomsInviteRequestCapn, error)

func (PostRoomsInviteRequestCapn) HasRoomID

func (s PostRoomsInviteRequestCapn) HasRoomID() bool

func (PostRoomsInviteRequestCapn) HasUserID

func (s PostRoomsInviteRequestCapn) HasUserID() bool

func (PostRoomsInviteRequestCapn) RoomID

func (s PostRoomsInviteRequestCapn) RoomID() (string, error)

func (PostRoomsInviteRequestCapn) RoomIDBytes

func (s PostRoomsInviteRequestCapn) RoomIDBytes() ([]byte, error)

func (PostRoomsInviteRequestCapn) SetRoomID

func (s PostRoomsInviteRequestCapn) SetRoomID(v string) error

func (PostRoomsInviteRequestCapn) SetUserID

func (s PostRoomsInviteRequestCapn) SetUserID(v string) error

func (PostRoomsInviteRequestCapn) String

func (PostRoomsInviteRequestCapn) UserID

func (s PostRoomsInviteRequestCapn) UserID() (string, error)

func (PostRoomsInviteRequestCapn) UserIDBytes

func (s PostRoomsInviteRequestCapn) UserIDBytes() ([]byte, error)

type PostRoomsInviteRequestCapn_List

type PostRoomsInviteRequestCapn_List struct{ capnp.List }

PostRoomsInviteRequestCapn_List is a list of PostRoomsInviteRequestCapn.

func NewPostRoomsInviteRequestCapn_List

func NewPostRoomsInviteRequestCapn_List(s *capnp.Segment, sz int32) (PostRoomsInviteRequestCapn_List, error)

NewPostRoomsInviteRequestCapn creates a new list of PostRoomsInviteRequestCapn.

func (PostRoomsInviteRequestCapn_List) At

func (PostRoomsInviteRequestCapn_List) Set

func (PostRoomsInviteRequestCapn_List) String

type PostRoomsInviteRequestCapn_Promise

type PostRoomsInviteRequestCapn_Promise struct{ *capnp.Pipeline }

PostRoomsInviteRequestCapn_Promise is a wrapper for a PostRoomsInviteRequestCapn promised by a client call.

func (PostRoomsInviteRequestCapn_Promise) Struct

type PostRoomsJoinByAliasRequest

type PostRoomsJoinByAliasRequest struct {
	RoomID  string `json:"room_id"`
	Content []byte `json:"content"`
}

POST /_matrix/client/r0/join/{roomIdOrAlias}

func (*PostRoomsJoinByAliasRequest) Decode

func (externalReq *PostRoomsJoinByAliasRequest) Decode(input []byte) error

func (*PostRoomsJoinByAliasRequest) Encode

func (externalReq *PostRoomsJoinByAliasRequest) Encode() ([]byte, error)

type PostRoomsJoinByAliasResponse

type PostRoomsJoinByAliasResponse struct {
	RoomID string `json:"room_id"`
}

func (*PostRoomsJoinByAliasResponse) Decode

func (res *PostRoomsJoinByAliasResponse) Decode(input []byte) error

func (*PostRoomsJoinByAliasResponse) Encode

func (res *PostRoomsJoinByAliasResponse) Encode() ([]byte, error)

type PostRoomsJoinByAliasResponseCapn

type PostRoomsJoinByAliasResponseCapn struct{ capnp.Struct }

func NewPostRoomsJoinByAliasResponseCapn

func NewPostRoomsJoinByAliasResponseCapn(s *capnp.Segment) (PostRoomsJoinByAliasResponseCapn, error)

func NewRootPostRoomsJoinByAliasResponseCapn

func NewRootPostRoomsJoinByAliasResponseCapn(s *capnp.Segment) (PostRoomsJoinByAliasResponseCapn, error)

func ReadRootPostRoomsJoinByAliasResponseCapn

func ReadRootPostRoomsJoinByAliasResponseCapn(msg *capnp.Message) (PostRoomsJoinByAliasResponseCapn, error)

func (PostRoomsJoinByAliasResponseCapn) HasRoomID

func (s PostRoomsJoinByAliasResponseCapn) HasRoomID() bool

func (PostRoomsJoinByAliasResponseCapn) RoomID

func (PostRoomsJoinByAliasResponseCapn) RoomIDBytes

func (s PostRoomsJoinByAliasResponseCapn) RoomIDBytes() ([]byte, error)

func (PostRoomsJoinByAliasResponseCapn) SetRoomID

func (PostRoomsJoinByAliasResponseCapn) String

type PostRoomsJoinByAliasResponseCapn_List

type PostRoomsJoinByAliasResponseCapn_List struct{ capnp.List }

PostRoomsJoinByAliasResponseCapn_List is a list of PostRoomsJoinByAliasResponseCapn.

func NewPostRoomsJoinByAliasResponseCapn_List

func NewPostRoomsJoinByAliasResponseCapn_List(s *capnp.Segment, sz int32) (PostRoomsJoinByAliasResponseCapn_List, error)

NewPostRoomsJoinByAliasResponseCapn creates a new list of PostRoomsJoinByAliasResponseCapn.

func (PostRoomsJoinByAliasResponseCapn_List) At

func (PostRoomsJoinByAliasResponseCapn_List) Set

func (PostRoomsJoinByAliasResponseCapn_List) String

type PostRoomsJoinByAliasResponseCapn_Promise

type PostRoomsJoinByAliasResponseCapn_Promise struct{ *capnp.Pipeline }

PostRoomsJoinByAliasResponseCapn_Promise is a wrapper for a PostRoomsJoinByAliasResponseCapn promised by a client call.

func (PostRoomsJoinByAliasResponseCapn_Promise) Struct

type PostRoomsJoinResponseCapn

type PostRoomsJoinResponseCapn struct{ capnp.Struct }

func NewPostRoomsJoinResponseCapn

func NewPostRoomsJoinResponseCapn(s *capnp.Segment) (PostRoomsJoinResponseCapn, error)

func NewRootPostRoomsJoinResponseCapn

func NewRootPostRoomsJoinResponseCapn(s *capnp.Segment) (PostRoomsJoinResponseCapn, error)

func ReadRootPostRoomsJoinResponseCapn

func ReadRootPostRoomsJoinResponseCapn(msg *capnp.Message) (PostRoomsJoinResponseCapn, error)

func (PostRoomsJoinResponseCapn) HasRoomID

func (s PostRoomsJoinResponseCapn) HasRoomID() bool

func (PostRoomsJoinResponseCapn) RoomID

func (s PostRoomsJoinResponseCapn) RoomID() (string, error)

func (PostRoomsJoinResponseCapn) RoomIDBytes

func (s PostRoomsJoinResponseCapn) RoomIDBytes() ([]byte, error)

func (PostRoomsJoinResponseCapn) SetRoomID

func (s PostRoomsJoinResponseCapn) SetRoomID(v string) error

func (PostRoomsJoinResponseCapn) String

func (s PostRoomsJoinResponseCapn) String() string

type PostRoomsJoinResponseCapn_List

type PostRoomsJoinResponseCapn_List struct{ capnp.List }

PostRoomsJoinResponseCapn_List is a list of PostRoomsJoinResponseCapn.

func NewPostRoomsJoinResponseCapn_List

func NewPostRoomsJoinResponseCapn_List(s *capnp.Segment, sz int32) (PostRoomsJoinResponseCapn_List, error)

NewPostRoomsJoinResponseCapn creates a new list of PostRoomsJoinResponseCapn.

func (PostRoomsJoinResponseCapn_List) At

func (PostRoomsJoinResponseCapn_List) Set

func (PostRoomsJoinResponseCapn_List) String

type PostRoomsJoinResponseCapn_Promise

type PostRoomsJoinResponseCapn_Promise struct{ *capnp.Pipeline }

PostRoomsJoinResponseCapn_Promise is a wrapper for a PostRoomsJoinResponseCapn promised by a client call.

func (PostRoomsJoinResponseCapn_Promise) Struct

type PostRoomsKickRequest

type PostRoomsKickRequest struct {
	RoomID string `json:"room_id"`
	UserID string `json:"user_id"`
	Reason string `json:"reason"`
}

POST /_matrix/client/r0/rooms/{roomId}/kick

func (*PostRoomsKickRequest) Decode

func (externalReq *PostRoomsKickRequest) Decode(input []byte) error

func (*PostRoomsKickRequest) Encode

func (externalReq *PostRoomsKickRequest) Encode() ([]byte, error)

type PostRoomsKickRequestCapn

type PostRoomsKickRequestCapn struct{ capnp.Struct }

func NewPostRoomsKickRequestCapn

func NewPostRoomsKickRequestCapn(s *capnp.Segment) (PostRoomsKickRequestCapn, error)

func NewRootPostRoomsKickRequestCapn

func NewRootPostRoomsKickRequestCapn(s *capnp.Segment) (PostRoomsKickRequestCapn, error)

func ReadRootPostRoomsKickRequestCapn

func ReadRootPostRoomsKickRequestCapn(msg *capnp.Message) (PostRoomsKickRequestCapn, error)

func (PostRoomsKickRequestCapn) HasReason

func (s PostRoomsKickRequestCapn) HasReason() bool

func (PostRoomsKickRequestCapn) HasRoomID

func (s PostRoomsKickRequestCapn) HasRoomID() bool

func (PostRoomsKickRequestCapn) HasUserID

func (s PostRoomsKickRequestCapn) HasUserID() bool

func (PostRoomsKickRequestCapn) Reason

func (s PostRoomsKickRequestCapn) Reason() (string, error)

func (PostRoomsKickRequestCapn) ReasonBytes

func (s PostRoomsKickRequestCapn) ReasonBytes() ([]byte, error)

func (PostRoomsKickRequestCapn) RoomID

func (s PostRoomsKickRequestCapn) RoomID() (string, error)

func (PostRoomsKickRequestCapn) RoomIDBytes

func (s PostRoomsKickRequestCapn) RoomIDBytes() ([]byte, error)

func (PostRoomsKickRequestCapn) SetReason

func (s PostRoomsKickRequestCapn) SetReason(v string) error

func (PostRoomsKickRequestCapn) SetRoomID

func (s PostRoomsKickRequestCapn) SetRoomID(v string) error

func (PostRoomsKickRequestCapn) SetUserID

func (s PostRoomsKickRequestCapn) SetUserID(v string) error

func (PostRoomsKickRequestCapn) String

func (s PostRoomsKickRequestCapn) String() string

func (PostRoomsKickRequestCapn) UserID

func (s PostRoomsKickRequestCapn) UserID() (string, error)

func (PostRoomsKickRequestCapn) UserIDBytes

func (s PostRoomsKickRequestCapn) UserIDBytes() ([]byte, error)

type PostRoomsKickRequestCapn_List

type PostRoomsKickRequestCapn_List struct{ capnp.List }

PostRoomsKickRequestCapn_List is a list of PostRoomsKickRequestCapn.

func NewPostRoomsKickRequestCapn_List

func NewPostRoomsKickRequestCapn_List(s *capnp.Segment, sz int32) (PostRoomsKickRequestCapn_List, error)

NewPostRoomsKickRequestCapn creates a new list of PostRoomsKickRequestCapn.

func (PostRoomsKickRequestCapn_List) At

func (PostRoomsKickRequestCapn_List) Set

func (PostRoomsKickRequestCapn_List) String

type PostRoomsKickRequestCapn_Promise

type PostRoomsKickRequestCapn_Promise struct{ *capnp.Pipeline }

PostRoomsKickRequestCapn_Promise is a wrapper for a PostRoomsKickRequestCapn promised by a client call.

func (PostRoomsKickRequestCapn_Promise) Struct

type PostRoomsLeaveRequest

type PostRoomsLeaveRequest struct {
	RoomID string `json:"room_id"`
}

POST /_matrix/client/r0/rooms/{roomId}/leave

func (*PostRoomsLeaveRequest) Decode

func (externalReq *PostRoomsLeaveRequest) Decode(input []byte) error

func (*PostRoomsLeaveRequest) Encode

func (externalReq *PostRoomsLeaveRequest) Encode() ([]byte, error)

type PostRoomsLeaveRequestCapn

type PostRoomsLeaveRequestCapn struct{ capnp.Struct }

func NewPostRoomsLeaveRequestCapn

func NewPostRoomsLeaveRequestCapn(s *capnp.Segment) (PostRoomsLeaveRequestCapn, error)

func NewRootPostRoomsLeaveRequestCapn

func NewRootPostRoomsLeaveRequestCapn(s *capnp.Segment) (PostRoomsLeaveRequestCapn, error)

func ReadRootPostRoomsLeaveRequestCapn

func ReadRootPostRoomsLeaveRequestCapn(msg *capnp.Message) (PostRoomsLeaveRequestCapn, error)

func (PostRoomsLeaveRequestCapn) HasRoomID

func (s PostRoomsLeaveRequestCapn) HasRoomID() bool

func (PostRoomsLeaveRequestCapn) RoomID

func (s PostRoomsLeaveRequestCapn) RoomID() (string, error)

func (PostRoomsLeaveRequestCapn) RoomIDBytes

func (s PostRoomsLeaveRequestCapn) RoomIDBytes() ([]byte, error)

func (PostRoomsLeaveRequestCapn) SetRoomID

func (s PostRoomsLeaveRequestCapn) SetRoomID(v string) error

func (PostRoomsLeaveRequestCapn) String

func (s PostRoomsLeaveRequestCapn) String() string

type PostRoomsLeaveRequestCapn_List

type PostRoomsLeaveRequestCapn_List struct{ capnp.List }

PostRoomsLeaveRequestCapn_List is a list of PostRoomsLeaveRequestCapn.

func NewPostRoomsLeaveRequestCapn_List

func NewPostRoomsLeaveRequestCapn_List(s *capnp.Segment, sz int32) (PostRoomsLeaveRequestCapn_List, error)

NewPostRoomsLeaveRequestCapn creates a new list of PostRoomsLeaveRequestCapn.

func (PostRoomsLeaveRequestCapn_List) At

func (PostRoomsLeaveRequestCapn_List) Set

func (PostRoomsLeaveRequestCapn_List) String

type PostRoomsLeaveRequestCapn_Promise

type PostRoomsLeaveRequestCapn_Promise struct{ *capnp.Pipeline }

PostRoomsLeaveRequestCapn_Promise is a wrapper for a PostRoomsLeaveRequestCapn promised by a client call.

func (PostRoomsLeaveRequestCapn_Promise) Struct

type PostRoomsMembershipRequest

type PostRoomsMembershipRequest struct {
	RoomID     string `json:"room_id"`
	Membership string `json:"membership"`
	Content    []byte `json:"content,omitempty"`
}

POST /_matrix/client/r0/rooms/{roomId}/join

func (*PostRoomsMembershipRequest) Decode

func (externalReq *PostRoomsMembershipRequest) Decode(input []byte) error

func (*PostRoomsMembershipRequest) Encode

func (externalReq *PostRoomsMembershipRequest) Encode() ([]byte, error)

type PostRoomsMembershipResponse

type PostRoomsMembershipResponse struct {
	RoomID string `json:"room_id,omitempty"`
}

func (*PostRoomsMembershipResponse) Decode

func (res *PostRoomsMembershipResponse) Decode(input []byte) error

func (*PostRoomsMembershipResponse) Encode

func (res *PostRoomsMembershipResponse) Encode() ([]byte, error)

type PostRoomsUnbanRequest

type PostRoomsUnbanRequest struct {
	RoomID string `json:"room_id"`
	UserID string `json:"user_id"`
}

POST /_matrix/client/r0/rooms/{roomId}/unban

func (*PostRoomsUnbanRequest) Decode

func (externalReq *PostRoomsUnbanRequest) Decode(input []byte) error

func (*PostRoomsUnbanRequest) Encode

func (externalReq *PostRoomsUnbanRequest) Encode() ([]byte, error)

type PostRoomsUnbanRequestCapn

type PostRoomsUnbanRequestCapn struct{ capnp.Struct }

func NewPostRoomsUnbanRequestCapn

func NewPostRoomsUnbanRequestCapn(s *capnp.Segment) (PostRoomsUnbanRequestCapn, error)

func NewRootPostRoomsUnbanRequestCapn

func NewRootPostRoomsUnbanRequestCapn(s *capnp.Segment) (PostRoomsUnbanRequestCapn, error)

func ReadRootPostRoomsUnbanRequestCapn

func ReadRootPostRoomsUnbanRequestCapn(msg *capnp.Message) (PostRoomsUnbanRequestCapn, error)

func (PostRoomsUnbanRequestCapn) HasRoomID

func (s PostRoomsUnbanRequestCapn) HasRoomID() bool

func (PostRoomsUnbanRequestCapn) HasUserID

func (s PostRoomsUnbanRequestCapn) HasUserID() bool

func (PostRoomsUnbanRequestCapn) RoomID

func (s PostRoomsUnbanRequestCapn) RoomID() (string, error)

func (PostRoomsUnbanRequestCapn) RoomIDBytes

func (s PostRoomsUnbanRequestCapn) RoomIDBytes() ([]byte, error)

func (PostRoomsUnbanRequestCapn) SetRoomID

func (s PostRoomsUnbanRequestCapn) SetRoomID(v string) error

func (PostRoomsUnbanRequestCapn) SetUserID

func (s PostRoomsUnbanRequestCapn) SetUserID(v string) error

func (PostRoomsUnbanRequestCapn) String

func (s PostRoomsUnbanRequestCapn) String() string

func (PostRoomsUnbanRequestCapn) UserID

func (s PostRoomsUnbanRequestCapn) UserID() (string, error)

func (PostRoomsUnbanRequestCapn) UserIDBytes

func (s PostRoomsUnbanRequestCapn) UserIDBytes() ([]byte, error)

type PostRoomsUnbanRequestCapn_List

type PostRoomsUnbanRequestCapn_List struct{ capnp.List }

PostRoomsUnbanRequestCapn_List is a list of PostRoomsUnbanRequestCapn.

func NewPostRoomsUnbanRequestCapn_List

func NewPostRoomsUnbanRequestCapn_List(s *capnp.Segment, sz int32) (PostRoomsUnbanRequestCapn_List, error)

NewPostRoomsUnbanRequestCapn creates a new list of PostRoomsUnbanRequestCapn.

func (PostRoomsUnbanRequestCapn_List) At

func (PostRoomsUnbanRequestCapn_List) Set

func (PostRoomsUnbanRequestCapn_List) String

type PostRoomsUnbanRequestCapn_Promise

type PostRoomsUnbanRequestCapn_Promise struct{ *capnp.Pipeline }

PostRoomsUnbanRequestCapn_Promise is a wrapper for a PostRoomsUnbanRequestCapn promised by a client call.

func (PostRoomsUnbanRequestCapn_Promise) Struct

type PostSetPushersRequest

type PostSetPushersRequest struct {
	Pushkey           string     `json:"pushkey"`
	Kind              string     `json:"kind"`
	AppID             string     `json:"app_id"`
	AppDisplayName    string     `json:"app_display_name"`
	DeviceDisplayName string     `json:"device_display_name"`
	ProfileTag        string     `json:"profile_tag"`
	Lang              string     `json:"lang"`
	Data              PusherData `json:"data"`
	Append            bool       `json:"append"`
}

POST /_matrix/client/r0/pushers/set

func (*PostSetPushersRequest) Decode

func (externalReq *PostSetPushersRequest) Decode(input []byte) error

func (*PostSetPushersRequest) Encode

func (externalReq *PostSetPushersRequest) Encode() ([]byte, error)

type PostSetPushersRequestCapn

type PostSetPushersRequestCapn struct{ capnp.Struct }

func NewPostSetPushersRequestCapn

func NewPostSetPushersRequestCapn(s *capnp.Segment) (PostSetPushersRequestCapn, error)

func NewRootPostSetPushersRequestCapn

func NewRootPostSetPushersRequestCapn(s *capnp.Segment) (PostSetPushersRequestCapn, error)

func ReadRootPostSetPushersRequestCapn

func ReadRootPostSetPushersRequestCapn(msg *capnp.Message) (PostSetPushersRequestCapn, error)

func (PostSetPushersRequestCapn) AppDisplayName

func (s PostSetPushersRequestCapn) AppDisplayName() (string, error)

func (PostSetPushersRequestCapn) AppDisplayNameBytes

func (s PostSetPushersRequestCapn) AppDisplayNameBytes() ([]byte, error)

func (PostSetPushersRequestCapn) AppID

func (s PostSetPushersRequestCapn) AppID() (string, error)

func (PostSetPushersRequestCapn) AppIDBytes

func (s PostSetPushersRequestCapn) AppIDBytes() ([]byte, error)

func (PostSetPushersRequestCapn) Append

func (s PostSetPushersRequestCapn) Append() bool

func (PostSetPushersRequestCapn) Data

func (PostSetPushersRequestCapn) DeviceDisplayName

func (s PostSetPushersRequestCapn) DeviceDisplayName() (string, error)

func (PostSetPushersRequestCapn) DeviceDisplayNameBytes

func (s PostSetPushersRequestCapn) DeviceDisplayNameBytes() ([]byte, error)

func (PostSetPushersRequestCapn) HasAppDisplayName

func (s PostSetPushersRequestCapn) HasAppDisplayName() bool

func (PostSetPushersRequestCapn) HasAppID

func (s PostSetPushersRequestCapn) HasAppID() bool

func (PostSetPushersRequestCapn) HasData

func (s PostSetPushersRequestCapn) HasData() bool

func (PostSetPushersRequestCapn) HasDeviceDisplayName

func (s PostSetPushersRequestCapn) HasDeviceDisplayName() bool

func (PostSetPushersRequestCapn) HasKind

func (s PostSetPushersRequestCapn) HasKind() bool

func (PostSetPushersRequestCapn) HasLang

func (s PostSetPushersRequestCapn) HasLang() bool

func (PostSetPushersRequestCapn) HasProfileTag

func (s PostSetPushersRequestCapn) HasProfileTag() bool

func (PostSetPushersRequestCapn) HasPushkey

func (s PostSetPushersRequestCapn) HasPushkey() bool

func (PostSetPushersRequestCapn) Kind

func (PostSetPushersRequestCapn) KindBytes

func (s PostSetPushersRequestCapn) KindBytes() ([]byte, error)

func (PostSetPushersRequestCapn) Lang

func (PostSetPushersRequestCapn) LangBytes

func (s PostSetPushersRequestCapn) LangBytes() ([]byte, error)

func (PostSetPushersRequestCapn) NewData

NewData sets the data field to a newly allocated PusherDataCapn struct, preferring placement in s's segment.

func (PostSetPushersRequestCapn) ProfileTag

func (s PostSetPushersRequestCapn) ProfileTag() (string, error)

func (PostSetPushersRequestCapn) ProfileTagBytes

func (s PostSetPushersRequestCapn) ProfileTagBytes() ([]byte, error)

func (PostSetPushersRequestCapn) Pushkey

func (s PostSetPushersRequestCapn) Pushkey() (string, error)

func (PostSetPushersRequestCapn) PushkeyBytes

func (s PostSetPushersRequestCapn) PushkeyBytes() ([]byte, error)

func (PostSetPushersRequestCapn) SetAppDisplayName

func (s PostSetPushersRequestCapn) SetAppDisplayName(v string) error

func (PostSetPushersRequestCapn) SetAppID

func (s PostSetPushersRequestCapn) SetAppID(v string) error

func (PostSetPushersRequestCapn) SetAppend

func (s PostSetPushersRequestCapn) SetAppend(v bool)

func (PostSetPushersRequestCapn) SetData

func (PostSetPushersRequestCapn) SetDeviceDisplayName

func (s PostSetPushersRequestCapn) SetDeviceDisplayName(v string) error

func (PostSetPushersRequestCapn) SetKind

func (s PostSetPushersRequestCapn) SetKind(v string) error

func (PostSetPushersRequestCapn) SetLang

func (s PostSetPushersRequestCapn) SetLang(v string) error

func (PostSetPushersRequestCapn) SetProfileTag

func (s PostSetPushersRequestCapn) SetProfileTag(v string) error

func (PostSetPushersRequestCapn) SetPushkey

func (s PostSetPushersRequestCapn) SetPushkey(v string) error

func (PostSetPushersRequestCapn) String

func (s PostSetPushersRequestCapn) String() string

type PostSetPushersRequestCapn_List

type PostSetPushersRequestCapn_List struct{ capnp.List }

PostSetPushersRequestCapn_List is a list of PostSetPushersRequestCapn.

func NewPostSetPushersRequestCapn_List

func NewPostSetPushersRequestCapn_List(s *capnp.Segment, sz int32) (PostSetPushersRequestCapn_List, error)

NewPostSetPushersRequestCapn creates a new list of PostSetPushersRequestCapn.

func (PostSetPushersRequestCapn_List) At

func (PostSetPushersRequestCapn_List) Set

func (PostSetPushersRequestCapn_List) String

type PostSetPushersRequestCapn_Promise

type PostSetPushersRequestCapn_Promise struct{ *capnp.Pipeline }

PostSetPushersRequestCapn_Promise is a wrapper for a PostSetPushersRequestCapn promised by a client call.

func (PostSetPushersRequestCapn_Promise) Data

func (PostSetPushersRequestCapn_Promise) Struct

type PostSystemManagerRequest

type PostSystemManagerRequest struct {
	Type string `json:"type"`
}

POST /system/manager//{type}

func (*PostSystemManagerRequest) Decode

func (externalReq *PostSystemManagerRequest) Decode(input []byte) error

func (*PostSystemManagerRequest) Encode

func (externalReq *PostSystemManagerRequest) Encode() ([]byte, error)

type PostUploadKeysRequest

type PostUploadKeysRequest struct {
	DeviceKeys  DeviceKeys             `json:"device_keys"`
	OneTimeKeys map[string]interface{} `json:"one_time_keys"`
}

POST /_matrix/client/r0/keys/upload

func (*PostUploadKeysRequest) Decode

func (externalReq *PostUploadKeysRequest) Decode(input []byte) error

func (*PostUploadKeysRequest) Encode

func (externalReq *PostUploadKeysRequest) Encode() ([]byte, error)

type PostUploadKeysResponse

type PostUploadKeysResponse struct {
	OneTimeKeyCounts map[string]int `json:"one_time_key_counts"`
}

func (*PostUploadKeysResponse) Decode

func (res *PostUploadKeysResponse) Decode(input []byte) error

func (*PostUploadKeysResponse) Encode

func (res *PostUploadKeysResponse) Encode() ([]byte, error)

type PostUserFilterRequest

type PostUserFilterRequest struct {
	UserID      string              `json:"user_id"`
	AccountData gomatrix.FilterPart `json:"account_data,omitempty"`
	EventFields []string            `json:"event_fields,omitempty"`
	EventFormat string              `json:"event_format,omitempty"`
	Presence    gomatrix.FilterPart `json:"presence,omitempty"`
	Room        struct {
		AccountData  gomatrix.FilterPart `json:"account_data,omitempty"`
		Ephemeral    gomatrix.FilterPart `json:"ephemeral,omitempty"`
		IncludeLeave bool                `json:"include_leave,omitempty"`
		NotRooms     []string            `json:"not_rooms,omitempty"`
		Rooms        []string            `json:"rooms,omitempty"`
		State        gomatrix.FilterPart `json:"state,omitempty"`
		Timeline     gomatrix.FilterPart `json:"timeline,omitempty"`
	} `json:"room,omitempty"`
}

POST /_matrix/client/r0/user/{userId}/filter

func (*PostUserFilterRequest) Decode

func (externalReq *PostUserFilterRequest) Decode(input []byte) error

func (*PostUserFilterRequest) Encode

func (externalReq *PostUserFilterRequest) Encode() ([]byte, error)

type PostUserFilterResponse

type PostUserFilterResponse struct {
	FilterID string `json:"filter_id"`
}

func (*PostUserFilterResponse) Decode

func (res *PostUserFilterResponse) Decode(input []byte) error

func (*PostUserFilterResponse) Encode

func (res *PostUserFilterResponse) Encode() ([]byte, error)

type PostUserFilterResponseCapn

type PostUserFilterResponseCapn struct{ capnp.Struct }

func NewPostUserFilterResponseCapn

func NewPostUserFilterResponseCapn(s *capnp.Segment) (PostUserFilterResponseCapn, error)

func NewRootPostUserFilterResponseCapn

func NewRootPostUserFilterResponseCapn(s *capnp.Segment) (PostUserFilterResponseCapn, error)

func ReadRootPostUserFilterResponseCapn

func ReadRootPostUserFilterResponseCapn(msg *capnp.Message) (PostUserFilterResponseCapn, error)

func (PostUserFilterResponseCapn) FilterID

func (s PostUserFilterResponseCapn) FilterID() (string, error)

func (PostUserFilterResponseCapn) FilterIDBytes

func (s PostUserFilterResponseCapn) FilterIDBytes() ([]byte, error)

func (PostUserFilterResponseCapn) HasFilterID

func (s PostUserFilterResponseCapn) HasFilterID() bool

func (PostUserFilterResponseCapn) SetFilterID

func (s PostUserFilterResponseCapn) SetFilterID(v string) error

func (PostUserFilterResponseCapn) String

type PostUserFilterResponseCapn_List

type PostUserFilterResponseCapn_List struct{ capnp.List }

PostUserFilterResponseCapn_List is a list of PostUserFilterResponseCapn.

func NewPostUserFilterResponseCapn_List

func NewPostUserFilterResponseCapn_List(s *capnp.Segment, sz int32) (PostUserFilterResponseCapn_List, error)

NewPostUserFilterResponseCapn creates a new list of PostUserFilterResponseCapn.

func (PostUserFilterResponseCapn_List) At

func (PostUserFilterResponseCapn_List) Set

func (PostUserFilterResponseCapn_List) String

type PostUserFilterResponseCapn_Promise

type PostUserFilterResponseCapn_Promise struct{ *capnp.Pipeline }

PostUserFilterResponseCapn_Promise is a wrapper for a PostUserFilterResponseCapn promised by a client call.

func (PostUserFilterResponseCapn_Promise) Struct

type PostUserInfoRequest

type PostUserInfoRequest 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"`
}

POST /_matrix/client/r0/user_info/{userID}

func (*PostUserInfoRequest) Decode

func (externalReq *PostUserInfoRequest) Decode(data []byte) error

func (*PostUserInfoRequest) Encode

func (externalReq *PostUserInfoRequest) Encode() ([]byte, error)

type PostUserOpenIDRequest

type PostUserOpenIDRequest struct {
	UserID string `json:"userId"`
}

POST /_matrix/client/r0/user/{userId}/openid/request_token

func (*PostUserOpenIDRequest) Decode

func (externalReq *PostUserOpenIDRequest) Decode(input []byte) error

func (*PostUserOpenIDRequest) Encode

func (externalReq *PostUserOpenIDRequest) Encode() ([]byte, error)

type PostUserOpenIDResponse

type PostUserOpenIDResponse struct {
	AccessToken      string `json:"access_token"`
	TokenType        string `json:"token_type"`
	MatrixServerName string `json:"matrix_server_name"`
	ExpiresIn        int    `json:"expires_in"`
}

type PostUserPresenceListRequest

type PostUserPresenceListRequest struct {
	UserID string   `json:"userId"`
	Invite []string `json:"invite"`
	Drop   []string `json:"drop"`
}

POST /_matrix/client/r0/presence/list/{userId}

type PostUserPresenceListRequestCapn

type PostUserPresenceListRequestCapn struct{ capnp.Struct }

func NewPostUserPresenceListRequestCapn

func NewPostUserPresenceListRequestCapn(s *capnp.Segment) (PostUserPresenceListRequestCapn, error)

func NewRootPostUserPresenceListRequestCapn

func NewRootPostUserPresenceListRequestCapn(s *capnp.Segment) (PostUserPresenceListRequestCapn, error)

func ReadRootPostUserPresenceListRequestCapn

func ReadRootPostUserPresenceListRequestCapn(msg *capnp.Message) (PostUserPresenceListRequestCapn, error)

func (PostUserPresenceListRequestCapn) Drop

func (PostUserPresenceListRequestCapn) HasDrop

func (PostUserPresenceListRequestCapn) HasInvite

func (s PostUserPresenceListRequestCapn) HasInvite() bool

func (PostUserPresenceListRequestCapn) HasUserID

func (s PostUserPresenceListRequestCapn) HasUserID() bool

func (PostUserPresenceListRequestCapn) Invite

func (PostUserPresenceListRequestCapn) NewDrop

NewDrop sets the drop field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (PostUserPresenceListRequestCapn) NewInvite

NewInvite sets the invite field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (PostUserPresenceListRequestCapn) SetDrop

func (PostUserPresenceListRequestCapn) SetInvite

func (PostUserPresenceListRequestCapn) SetUserID

func (PostUserPresenceListRequestCapn) String

func (PostUserPresenceListRequestCapn) UserID

func (PostUserPresenceListRequestCapn) UserIDBytes

func (s PostUserPresenceListRequestCapn) UserIDBytes() ([]byte, error)

type PostUserPresenceListRequestCapn_List

type PostUserPresenceListRequestCapn_List struct{ capnp.List }

PostUserPresenceListRequestCapn_List is a list of PostUserPresenceListRequestCapn.

func NewPostUserPresenceListRequestCapn_List

func NewPostUserPresenceListRequestCapn_List(s *capnp.Segment, sz int32) (PostUserPresenceListRequestCapn_List, error)

NewPostUserPresenceListRequestCapn creates a new list of PostUserPresenceListRequestCapn.

func (PostUserPresenceListRequestCapn_List) At

func (PostUserPresenceListRequestCapn_List) Set

func (PostUserPresenceListRequestCapn_List) String

type PostUserPresenceListRequestCapn_Promise

type PostUserPresenceListRequestCapn_Promise struct{ *capnp.Pipeline }

PostUserPresenceListRequestCapn_Promise is a wrapper for a PostUserPresenceListRequestCapn promised by a client call.

func (PostUserPresenceListRequestCapn_Promise) Struct

type PostUserSearchRequest

type PostUserSearchRequest struct {
	SearchTerm string `json:"search_term"`
	Limit      int    `json:"limit"`
}

POST /_matrix/client/r0/user_directory/search

type PostUserSearchRequestCapn

type PostUserSearchRequestCapn struct{ capnp.Struct }

func NewPostUserSearchRequestCapn

func NewPostUserSearchRequestCapn(s *capnp.Segment) (PostUserSearchRequestCapn, error)

func NewRootPostUserSearchRequestCapn

func NewRootPostUserSearchRequestCapn(s *capnp.Segment) (PostUserSearchRequestCapn, error)

func ReadRootPostUserSearchRequestCapn

func ReadRootPostUserSearchRequestCapn(msg *capnp.Message) (PostUserSearchRequestCapn, error)

func (PostUserSearchRequestCapn) HasSearchTerm

func (s PostUserSearchRequestCapn) HasSearchTerm() bool

func (PostUserSearchRequestCapn) Limit

func (s PostUserSearchRequestCapn) Limit() int64

func (PostUserSearchRequestCapn) SearchTerm

func (s PostUserSearchRequestCapn) SearchTerm() (string, error)

func (PostUserSearchRequestCapn) SearchTermBytes

func (s PostUserSearchRequestCapn) SearchTermBytes() ([]byte, error)

func (PostUserSearchRequestCapn) SetLimit

func (s PostUserSearchRequestCapn) SetLimit(v int64)

func (PostUserSearchRequestCapn) SetSearchTerm

func (s PostUserSearchRequestCapn) SetSearchTerm(v string) error

func (PostUserSearchRequestCapn) String

func (s PostUserSearchRequestCapn) String() string

type PostUserSearchRequestCapn_List

type PostUserSearchRequestCapn_List struct{ capnp.List }

PostUserSearchRequestCapn_List is a list of PostUserSearchRequestCapn.

func NewPostUserSearchRequestCapn_List

func NewPostUserSearchRequestCapn_List(s *capnp.Segment, sz int32) (PostUserSearchRequestCapn_List, error)

NewPostUserSearchRequestCapn creates a new list of PostUserSearchRequestCapn.

func (PostUserSearchRequestCapn_List) At

func (PostUserSearchRequestCapn_List) Set

func (PostUserSearchRequestCapn_List) String

type PostUserSearchRequestCapn_Promise

type PostUserSearchRequestCapn_Promise struct{ *capnp.Pipeline }

PostUserSearchRequestCapn_Promise is a wrapper for a PostUserSearchRequestCapn promised by a client call.

func (PostUserSearchRequestCapn_Promise) Struct

type PostUserSearchResponse

type PostUserSearchResponse struct {
	Results []User `json:"result"`
	Limited bool   `json:"limited"`
}

func (*PostUserSearchResponse) Decode

func (res *PostUserSearchResponse) Decode(input []byte) error

func (*PostUserSearchResponse) Encode

func (res *PostUserSearchResponse) Encode() ([]byte, error)

type PostUserSearchResponseCapn

type PostUserSearchResponseCapn struct{ capnp.Struct }

func NewPostUserSearchResponseCapn

func NewPostUserSearchResponseCapn(s *capnp.Segment) (PostUserSearchResponseCapn, error)

func NewRootPostUserSearchResponseCapn

func NewRootPostUserSearchResponseCapn(s *capnp.Segment) (PostUserSearchResponseCapn, error)

func ReadRootPostUserSearchResponseCapn

func ReadRootPostUserSearchResponseCapn(msg *capnp.Message) (PostUserSearchResponseCapn, error)

func (PostUserSearchResponseCapn) HasResults

func (s PostUserSearchResponseCapn) HasResults() bool

func (PostUserSearchResponseCapn) Limited

func (s PostUserSearchResponseCapn) Limited() bool

func (PostUserSearchResponseCapn) NewResults

NewResults sets the results field to a newly allocated UserCapn_List, preferring placement in s's segment.

func (PostUserSearchResponseCapn) Results

func (PostUserSearchResponseCapn) SetLimited

func (s PostUserSearchResponseCapn) SetLimited(v bool)

func (PostUserSearchResponseCapn) SetResults

func (PostUserSearchResponseCapn) String

type PostUserSearchResponseCapn_List

type PostUserSearchResponseCapn_List struct{ capnp.List }

PostUserSearchResponseCapn_List is a list of PostUserSearchResponseCapn.

func NewPostUserSearchResponseCapn_List

func NewPostUserSearchResponseCapn_List(s *capnp.Segment, sz int32) (PostUserSearchResponseCapn_List, error)

NewPostUserSearchResponseCapn creates a new list of PostUserSearchResponseCapn.

func (PostUserSearchResponseCapn_List) At

func (PostUserSearchResponseCapn_List) Set

func (PostUserSearchResponseCapn_List) String

type PostUserSearchResponseCapn_Promise

type PostUserSearchResponseCapn_Promise struct{ *capnp.Pipeline }

PostUserSearchResponseCapn_Promise is a wrapper for a PostUserSearchResponseCapn promised by a client call.

func (PostUserSearchResponseCapn_Promise) Struct

type PostUsersPushKeyRequest

type PostUsersPushKeyRequest struct {
	Users []string `json:"users"`
}

POST /_matrix/client/r0/users/pushkey

func (*PostUsersPushKeyRequest) Decode

func (externalReq *PostUsersPushKeyRequest) Decode(input []byte) error

func (*PostUsersPushKeyRequest) Encode

func (externalReq *PostUsersPushKeyRequest) Encode() ([]byte, error)

type PostUsersPushKeyResponse

type PostUsersPushKeyResponse struct {
	PushersRes []PusherRes `json:"pushers"`
}

func (*PostUsersPushKeyResponse) Decode

func (res *PostUsersPushKeyResponse) Decode(input []byte) error

func (*PostUsersPushKeyResponse) Encode

func (res *PostUsersPushKeyResponse) Encode() ([]byte, error)

type PostVoipTurnServerResponse

type PostVoipTurnServerResponse gomatrix.RespTurnServer

GET /_matrix/client/r0/voip/turnServer

func (*PostVoipTurnServerResponse) Decode

func (res *PostVoipTurnServerResponse) Decode(input []byte) error

func (*PostVoipTurnServerResponse) Encode

func (res *PostVoipTurnServerResponse) Encode() ([]byte, error)

type Presence

type Presence struct {
	Events []Event `json:"events"`
}

type PresenceCapn

type PresenceCapn struct{ capnp.Struct }

func NewPresenceCapn

func NewPresenceCapn(s *capnp.Segment) (PresenceCapn, error)

func NewRootPresenceCapn

func NewRootPresenceCapn(s *capnp.Segment) (PresenceCapn, error)

func ReadRootPresenceCapn

func ReadRootPresenceCapn(msg *capnp.Message) (PresenceCapn, error)

func (PresenceCapn) Events

func (s PresenceCapn) Events() (EventCapn_List, error)

func (PresenceCapn) HasEvents

func (s PresenceCapn) HasEvents() bool

func (PresenceCapn) NewEvents

func (s PresenceCapn) NewEvents(n int32) (EventCapn_List, error)

NewEvents sets the events field to a newly allocated EventCapn_List, preferring placement in s's segment.

func (PresenceCapn) SetEvents

func (s PresenceCapn) SetEvents(v EventCapn_List) error

func (PresenceCapn) String

func (s PresenceCapn) String() string

type PresenceCapn_List

type PresenceCapn_List struct{ capnp.List }

PresenceCapn_List is a list of PresenceCapn.

func NewPresenceCapn_List

func NewPresenceCapn_List(s *capnp.Segment, sz int32) (PresenceCapn_List, error)

NewPresenceCapn creates a new list of PresenceCapn.

func (PresenceCapn_List) At

func (PresenceCapn_List) Set

func (PresenceCapn_List) String

func (s PresenceCapn_List) String() string

type PresenceCapn_Promise

type PresenceCapn_Promise struct{ *capnp.Pipeline }

PresenceCapn_Promise is a wrapper for a PresenceCapn promised by a client call.

func (PresenceCapn_Promise) Struct

func (p PresenceCapn_Promise) Struct() (PresenceCapn, error)

type PresenceEvent

type PresenceEvent struct {
	Content map[string]interface{} `json:"content"`
	Status  string                 `json:"type"`
}

type PresenceJSON

type PresenceJSON struct {
	AvatarURL       string `json:"avatar_url"`
	DisplayName     string `json:"displayname"`
	LastActiveAgo   int64  `json:"last_active_ago"`
	Presence        string `json:"presence"` //required
	CurrentlyActive bool   `json:"currently_active"`
	UserID          string `json:"user_id"` //required
	StatusMsg       string `json:"status_msg"`
	ExtStatusMsg    string `json:"ext_status_msg"`
}

presence types

func (*PresenceJSON) Decode

func (res *PresenceJSON) Decode(input []byte) error

func (*PresenceJSON) Encode

func (res *PresenceJSON) Encode() ([]byte, error)

type PresenceJSONCapn

type PresenceJSONCapn struct{ capnp.Struct }

func NewPresenceJSONCapn

func NewPresenceJSONCapn(s *capnp.Segment) (PresenceJSONCapn, error)

func NewRootPresenceJSONCapn

func NewRootPresenceJSONCapn(s *capnp.Segment) (PresenceJSONCapn, error)

func ReadRootPresenceJSONCapn

func ReadRootPresenceJSONCapn(msg *capnp.Message) (PresenceJSONCapn, error)

func (PresenceJSONCapn) AvatarURL

func (s PresenceJSONCapn) AvatarURL() (string, error)

func (PresenceJSONCapn) AvatarURLBytes

func (s PresenceJSONCapn) AvatarURLBytes() ([]byte, error)

func (PresenceJSONCapn) CurrentlyActive

func (s PresenceJSONCapn) CurrentlyActive() bool

func (PresenceJSONCapn) DisplayName

func (s PresenceJSONCapn) DisplayName() (string, error)

func (PresenceJSONCapn) DisplayNameBytes

func (s PresenceJSONCapn) DisplayNameBytes() ([]byte, error)

func (PresenceJSONCapn) ExtStatusMsg

func (s PresenceJSONCapn) ExtStatusMsg() (string, error)

func (PresenceJSONCapn) ExtStatusMsgBytes

func (s PresenceJSONCapn) ExtStatusMsgBytes() ([]byte, error)

func (PresenceJSONCapn) HasAvatarURL

func (s PresenceJSONCapn) HasAvatarURL() bool

func (PresenceJSONCapn) HasDisplayName

func (s PresenceJSONCapn) HasDisplayName() bool

func (PresenceJSONCapn) HasExtStatusMsg

func (s PresenceJSONCapn) HasExtStatusMsg() bool

func (PresenceJSONCapn) HasPresence

func (s PresenceJSONCapn) HasPresence() bool

func (PresenceJSONCapn) HasStatusMsg

func (s PresenceJSONCapn) HasStatusMsg() bool

func (PresenceJSONCapn) HasUserID

func (s PresenceJSONCapn) HasUserID() bool

func (PresenceJSONCapn) LastActiveAgo

func (s PresenceJSONCapn) LastActiveAgo() int64

func (PresenceJSONCapn) Presence

func (s PresenceJSONCapn) Presence() (string, error)

func (PresenceJSONCapn) PresenceBytes

func (s PresenceJSONCapn) PresenceBytes() ([]byte, error)

func (PresenceJSONCapn) SetAvatarURL

func (s PresenceJSONCapn) SetAvatarURL(v string) error

func (PresenceJSONCapn) SetCurrentlyActive

func (s PresenceJSONCapn) SetCurrentlyActive(v bool)

func (PresenceJSONCapn) SetDisplayName

func (s PresenceJSONCapn) SetDisplayName(v string) error

func (PresenceJSONCapn) SetExtStatusMsg

func (s PresenceJSONCapn) SetExtStatusMsg(v string) error

func (PresenceJSONCapn) SetLastActiveAgo

func (s PresenceJSONCapn) SetLastActiveAgo(v int64)

func (PresenceJSONCapn) SetPresence

func (s PresenceJSONCapn) SetPresence(v string) error

func (PresenceJSONCapn) SetStatusMsg

func (s PresenceJSONCapn) SetStatusMsg(v string) error

func (PresenceJSONCapn) SetUserID

func (s PresenceJSONCapn) SetUserID(v string) error

func (PresenceJSONCapn) StatusMsg

func (s PresenceJSONCapn) StatusMsg() (string, error)

func (PresenceJSONCapn) StatusMsgBytes

func (s PresenceJSONCapn) StatusMsgBytes() ([]byte, error)

func (PresenceJSONCapn) String

func (s PresenceJSONCapn) String() string

func (PresenceJSONCapn) UserID

func (s PresenceJSONCapn) UserID() (string, error)

func (PresenceJSONCapn) UserIDBytes

func (s PresenceJSONCapn) UserIDBytes() ([]byte, error)

type PresenceJSONCapn_List

type PresenceJSONCapn_List struct{ capnp.List }

PresenceJSONCapn_List is a list of PresenceJSONCapn.

func NewPresenceJSONCapn_List

func NewPresenceJSONCapn_List(s *capnp.Segment, sz int32) (PresenceJSONCapn_List, error)

NewPresenceJSONCapn creates a new list of PresenceJSONCapn.

func (PresenceJSONCapn_List) At

func (PresenceJSONCapn_List) Set

func (PresenceJSONCapn_List) String

func (s PresenceJSONCapn_List) String() string

type PresenceJSONCapn_Promise

type PresenceJSONCapn_Promise struct{ *capnp.Pipeline }

PresenceJSONCapn_Promise is a wrapper for a PresenceJSONCapn promised by a client call.

func (PresenceJSONCapn_Promise) Struct

type PresenceListJSON

type PresenceListJSON struct {
	// contains filtered or unexported fields
}

type PresenceListJSONCapn

type PresenceListJSONCapn struct{ capnp.Struct }

func NewPresenceListJSONCapn

func NewPresenceListJSONCapn(s *capnp.Segment) (PresenceListJSONCapn, error)

func NewRootPresenceListJSONCapn

func NewRootPresenceListJSONCapn(s *capnp.Segment) (PresenceListJSONCapn, error)

func ReadRootPresenceListJSONCapn

func ReadRootPresenceListJSONCapn(msg *capnp.Message) (PresenceListJSONCapn, error)

func (PresenceListJSONCapn) Content

func (PresenceListJSONCapn) HasContent

func (s PresenceListJSONCapn) HasContent() bool

func (PresenceListJSONCapn) HasTyp

func (s PresenceListJSONCapn) HasTyp() bool

func (PresenceListJSONCapn) NewContent

func (s PresenceListJSONCapn) NewContent() (PresenceJSONCapn, error)

NewContent sets the content field to a newly allocated PresenceJSONCapn struct, preferring placement in s's segment.

func (PresenceListJSONCapn) SetContent

func (PresenceListJSONCapn) SetTyp

func (s PresenceListJSONCapn) SetTyp(v string) error

func (PresenceListJSONCapn) String

func (s PresenceListJSONCapn) String() string

func (PresenceListJSONCapn) Typ

func (s PresenceListJSONCapn) Typ() (string, error)

func (PresenceListJSONCapn) TypBytes

func (s PresenceListJSONCapn) TypBytes() ([]byte, error)

type PresenceListJSONCapn_List

type PresenceListJSONCapn_List struct{ capnp.List }

PresenceListJSONCapn_List is a list of PresenceListJSONCapn.

func NewPresenceListJSONCapn_List

func NewPresenceListJSONCapn_List(s *capnp.Segment, sz int32) (PresenceListJSONCapn_List, error)

NewPresenceListJSONCapn creates a new list of PresenceListJSONCapn.

func (PresenceListJSONCapn_List) At

func (PresenceListJSONCapn_List) Set

func (PresenceListJSONCapn_List) String

func (s PresenceListJSONCapn_List) String() string

type PresenceListJSONCapn_Promise

type PresenceListJSONCapn_Promise struct{ *capnp.Pipeline }

PresenceListJSONCapn_Promise is a wrapper for a PresenceListJSONCapn promised by a client call.

func (PresenceListJSONCapn_Promise) Content

func (PresenceListJSONCapn_Promise) Struct

type ProfileItem

type ProfileItem struct {
	UserID      string `json:"user_id"`
	AvatarURL   string `json:"avatar_url"`
	DisplayName string `json:"displayname"`
}

type ProtocolInstance

type ProtocolInstance struct {
	Desc      string      `json:"desc"`
	Icon      string      `json:"icon"`
	Fields    interface{} `json:"fields"`
	NetworkID string      `json:"network_id"`
}

type PublicRoomsChunk

type PublicRoomsChunk struct {
	RoomID           string   `json:"room_id"`
	Aliases          []string `json:"aliases,omitempty"`
	CanonicalAlias   string   `json:"canonical_alias,omitempty"`
	Name             string   `json:"name,omitempty"`
	Topic            string   `json:"topic,omitempty"`
	AvatarURL        string   `json:"avatar_url,omitempty"`
	NumJoinedMembers int64    `json:"num_joined_members"`
	WorldReadable    bool     `json:"world_readable"`
	GuestCanJoin     bool     `json:"guest_can_join"`
}

type PublicRoomsChunkCapn

type PublicRoomsChunkCapn struct{ capnp.Struct }

func NewPublicRoomsChunkCapn

func NewPublicRoomsChunkCapn(s *capnp.Segment) (PublicRoomsChunkCapn, error)

func NewRootPublicRoomsChunkCapn

func NewRootPublicRoomsChunkCapn(s *capnp.Segment) (PublicRoomsChunkCapn, error)

func ReadRootPublicRoomsChunkCapn

func ReadRootPublicRoomsChunkCapn(msg *capnp.Message) (PublicRoomsChunkCapn, error)

func (PublicRoomsChunkCapn) Aliases

func (s PublicRoomsChunkCapn) Aliases() (capnp.TextList, error)

func (PublicRoomsChunkCapn) AvatarURL

func (s PublicRoomsChunkCapn) AvatarURL() (string, error)

func (PublicRoomsChunkCapn) AvatarURLBytes

func (s PublicRoomsChunkCapn) AvatarURLBytes() ([]byte, error)

func (PublicRoomsChunkCapn) CanonicalAlias

func (s PublicRoomsChunkCapn) CanonicalAlias() (string, error)

func (PublicRoomsChunkCapn) CanonicalAliasBytes

func (s PublicRoomsChunkCapn) CanonicalAliasBytes() ([]byte, error)

func (PublicRoomsChunkCapn) GuestCanJoin

func (s PublicRoomsChunkCapn) GuestCanJoin() bool

func (PublicRoomsChunkCapn) HasAliases

func (s PublicRoomsChunkCapn) HasAliases() bool

func (PublicRoomsChunkCapn) HasAvatarURL

func (s PublicRoomsChunkCapn) HasAvatarURL() bool

func (PublicRoomsChunkCapn) HasCanonicalAlias

func (s PublicRoomsChunkCapn) HasCanonicalAlias() bool

func (PublicRoomsChunkCapn) HasName

func (s PublicRoomsChunkCapn) HasName() bool

func (PublicRoomsChunkCapn) HasRoomID

func (s PublicRoomsChunkCapn) HasRoomID() bool

func (PublicRoomsChunkCapn) HasTopic

func (s PublicRoomsChunkCapn) HasTopic() bool

func (PublicRoomsChunkCapn) Name

func (s PublicRoomsChunkCapn) Name() (string, error)

func (PublicRoomsChunkCapn) NameBytes

func (s PublicRoomsChunkCapn) NameBytes() ([]byte, error)

func (PublicRoomsChunkCapn) NewAliases

func (s PublicRoomsChunkCapn) NewAliases(n int32) (capnp.TextList, error)

NewAliases sets the aliases field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (PublicRoomsChunkCapn) NumJoinedMembers

func (s PublicRoomsChunkCapn) NumJoinedMembers() int64

func (PublicRoomsChunkCapn) RoomID

func (s PublicRoomsChunkCapn) RoomID() (string, error)

func (PublicRoomsChunkCapn) RoomIDBytes

func (s PublicRoomsChunkCapn) RoomIDBytes() ([]byte, error)

func (PublicRoomsChunkCapn) SetAliases

func (s PublicRoomsChunkCapn) SetAliases(v capnp.TextList) error

func (PublicRoomsChunkCapn) SetAvatarURL

func (s PublicRoomsChunkCapn) SetAvatarURL(v string) error

func (PublicRoomsChunkCapn) SetCanonicalAlias

func (s PublicRoomsChunkCapn) SetCanonicalAlias(v string) error

func (PublicRoomsChunkCapn) SetGuestCanJoin

func (s PublicRoomsChunkCapn) SetGuestCanJoin(v bool)

func (PublicRoomsChunkCapn) SetName

func (s PublicRoomsChunkCapn) SetName(v string) error

func (PublicRoomsChunkCapn) SetNumJoinedMembers

func (s PublicRoomsChunkCapn) SetNumJoinedMembers(v int64)

func (PublicRoomsChunkCapn) SetRoomID

func (s PublicRoomsChunkCapn) SetRoomID(v string) error

func (PublicRoomsChunkCapn) SetTopic

func (s PublicRoomsChunkCapn) SetTopic(v string) error

func (PublicRoomsChunkCapn) SetWorldReadable

func (s PublicRoomsChunkCapn) SetWorldReadable(v bool)

func (PublicRoomsChunkCapn) String

func (s PublicRoomsChunkCapn) String() string

func (PublicRoomsChunkCapn) Topic

func (s PublicRoomsChunkCapn) Topic() (string, error)

func (PublicRoomsChunkCapn) TopicBytes

func (s PublicRoomsChunkCapn) TopicBytes() ([]byte, error)

func (PublicRoomsChunkCapn) WorldReadable

func (s PublicRoomsChunkCapn) WorldReadable() bool

type PublicRoomsChunkCapn_List

type PublicRoomsChunkCapn_List struct{ capnp.List }

PublicRoomsChunkCapn_List is a list of PublicRoomsChunkCapn.

func NewPublicRoomsChunkCapn_List

func NewPublicRoomsChunkCapn_List(s *capnp.Segment, sz int32) (PublicRoomsChunkCapn_List, error)

NewPublicRoomsChunkCapn creates a new list of PublicRoomsChunkCapn.

func (PublicRoomsChunkCapn_List) At

func (PublicRoomsChunkCapn_List) Set

func (PublicRoomsChunkCapn_List) String

func (s PublicRoomsChunkCapn_List) String() string

type PublicRoomsChunkCapn_Promise

type PublicRoomsChunkCapn_Promise struct{ *capnp.Pipeline }

PublicRoomsChunkCapn_Promise is a wrapper for a PublicRoomsChunkCapn promised by a client call.

func (PublicRoomsChunkCapn_Promise) Struct

type PushCondition

type PushCondition struct {
	Kind    string `json:"kind,omitempty"`
	Key     string `json:"key,omitempty"`
	Pattern string `json:"pattern,omitempty"`
	Is      string `json:"is,omitempty"`
}

type PushConditionCapn

type PushConditionCapn struct{ capnp.Struct }

func NewPushConditionCapn

func NewPushConditionCapn(s *capnp.Segment) (PushConditionCapn, error)

func NewRootPushConditionCapn

func NewRootPushConditionCapn(s *capnp.Segment) (PushConditionCapn, error)

func ReadRootPushConditionCapn

func ReadRootPushConditionCapn(msg *capnp.Message) (PushConditionCapn, error)

func (PushConditionCapn) HasIs

func (s PushConditionCapn) HasIs() bool

func (PushConditionCapn) HasKey

func (s PushConditionCapn) HasKey() bool

func (PushConditionCapn) HasKind

func (s PushConditionCapn) HasKind() bool

func (PushConditionCapn) HasPattern

func (s PushConditionCapn) HasPattern() bool

func (PushConditionCapn) Is

func (s PushConditionCapn) Is() (string, error)

func (PushConditionCapn) IsBytes

func (s PushConditionCapn) IsBytes() ([]byte, error)

func (PushConditionCapn) Key

func (s PushConditionCapn) Key() (string, error)

func (PushConditionCapn) KeyBytes

func (s PushConditionCapn) KeyBytes() ([]byte, error)

func (PushConditionCapn) Kind

func (s PushConditionCapn) Kind() (string, error)

func (PushConditionCapn) KindBytes

func (s PushConditionCapn) KindBytes() ([]byte, error)

func (PushConditionCapn) Pattern

func (s PushConditionCapn) Pattern() (string, error)

func (PushConditionCapn) PatternBytes

func (s PushConditionCapn) PatternBytes() ([]byte, error)

func (PushConditionCapn) SetIs

func (s PushConditionCapn) SetIs(v string) error

func (PushConditionCapn) SetKey

func (s PushConditionCapn) SetKey(v string) error

func (PushConditionCapn) SetKind

func (s PushConditionCapn) SetKind(v string) error

func (PushConditionCapn) SetPattern

func (s PushConditionCapn) SetPattern(v string) error

func (PushConditionCapn) String

func (s PushConditionCapn) String() string

type PushConditionCapn_List

type PushConditionCapn_List struct{ capnp.List }

PushConditionCapn_List is a list of PushConditionCapn.

func NewPushConditionCapn_List

func NewPushConditionCapn_List(s *capnp.Segment, sz int32) (PushConditionCapn_List, error)

NewPushConditionCapn creates a new list of PushConditionCapn.

func (PushConditionCapn_List) At

func (PushConditionCapn_List) Set

func (PushConditionCapn_List) String

func (s PushConditionCapn_List) String() string

type PushConditionCapn_Promise

type PushConditionCapn_Promise struct{ *capnp.Pipeline }

PushConditionCapn_Promise is a wrapper for a PushConditionCapn promised by a client call.

func (PushConditionCapn_Promise) Struct

type PushRule

type PushRule struct {
	Actions    []interface{}   `json:"actions"`
	Default    bool            `json:"default"`
	Enabled    bool            `json:"enabled"`
	RuleID     string          `json:"rule_id"`
	Conditions []PushCondition `json:"conditions"`
	Pattern    string          `json:"pattern"`
}

type Pusher

type Pusher struct {
	Pushkey           string     `json:"pushkey"`
	Kind              string     `json:"kind"`
	AppID             string     `json:"app_id"`
	AppDisplayName    string     `json:"app_display_name"`
	DeviceDisplayName string     `json:"device_display_name"`
	ProfileTag        string     `json:"profile_tag"`
	Lang              string     `json:"lang"`
	Data              PusherData `json:"data"`
}

type PusherCapn

type PusherCapn struct{ capnp.Struct }

func NewPusherCapn

func NewPusherCapn(s *capnp.Segment) (PusherCapn, error)

func NewRootPusherCapn

func NewRootPusherCapn(s *capnp.Segment) (PusherCapn, error)

func ReadRootPusherCapn

func ReadRootPusherCapn(msg *capnp.Message) (PusherCapn, error)

func (PusherCapn) AppDisplayName

func (s PusherCapn) AppDisplayName() (string, error)

func (PusherCapn) AppDisplayNameBytes

func (s PusherCapn) AppDisplayNameBytes() ([]byte, error)

func (PusherCapn) AppID

func (s PusherCapn) AppID() (string, error)

func (PusherCapn) AppIDBytes

func (s PusherCapn) AppIDBytes() ([]byte, error)

func (PusherCapn) Data

func (s PusherCapn) Data() (PusherDataCapn, error)

func (PusherCapn) DeviceDisplayName

func (s PusherCapn) DeviceDisplayName() (string, error)

func (PusherCapn) DeviceDisplayNameBytes

func (s PusherCapn) DeviceDisplayNameBytes() ([]byte, error)

func (PusherCapn) HasAppDisplayName

func (s PusherCapn) HasAppDisplayName() bool

func (PusherCapn) HasAppID

func (s PusherCapn) HasAppID() bool

func (PusherCapn) HasData

func (s PusherCapn) HasData() bool

func (PusherCapn) HasDeviceDisplayName

func (s PusherCapn) HasDeviceDisplayName() bool

func (PusherCapn) HasKind

func (s PusherCapn) HasKind() bool

func (PusherCapn) HasLang

func (s PusherCapn) HasLang() bool

func (PusherCapn) HasProfileTag

func (s PusherCapn) HasProfileTag() bool

func (PusherCapn) HasPushkey

func (s PusherCapn) HasPushkey() bool

func (PusherCapn) Kind

func (s PusherCapn) Kind() (string, error)

func (PusherCapn) KindBytes

func (s PusherCapn) KindBytes() ([]byte, error)

func (PusherCapn) Lang

func (s PusherCapn) Lang() (string, error)

func (PusherCapn) LangBytes

func (s PusherCapn) LangBytes() ([]byte, error)

func (PusherCapn) NewData

func (s PusherCapn) NewData() (PusherDataCapn, error)

NewData sets the data field to a newly allocated PusherDataCapn struct, preferring placement in s's segment.

func (PusherCapn) ProfileTag

func (s PusherCapn) ProfileTag() (string, error)

func (PusherCapn) ProfileTagBytes

func (s PusherCapn) ProfileTagBytes() ([]byte, error)

func (PusherCapn) Pushkey

func (s PusherCapn) Pushkey() (string, error)

func (PusherCapn) PushkeyBytes

func (s PusherCapn) PushkeyBytes() ([]byte, error)

func (PusherCapn) SetAppDisplayName

func (s PusherCapn) SetAppDisplayName(v string) error

func (PusherCapn) SetAppID

func (s PusherCapn) SetAppID(v string) error

func (PusherCapn) SetData

func (s PusherCapn) SetData(v PusherDataCapn) error

func (PusherCapn) SetDeviceDisplayName

func (s PusherCapn) SetDeviceDisplayName(v string) error

func (PusherCapn) SetKind

func (s PusherCapn) SetKind(v string) error

func (PusherCapn) SetLang

func (s PusherCapn) SetLang(v string) error

func (PusherCapn) SetProfileTag

func (s PusherCapn) SetProfileTag(v string) error

func (PusherCapn) SetPushkey

func (s PusherCapn) SetPushkey(v string) error

func (PusherCapn) String

func (s PusherCapn) String() string

type PusherCapn_List

type PusherCapn_List struct{ capnp.List }

PusherCapn_List is a list of PusherCapn.

func NewPusherCapn_List

func NewPusherCapn_List(s *capnp.Segment, sz int32) (PusherCapn_List, error)

NewPusherCapn creates a new list of PusherCapn.

func (PusherCapn_List) At

func (s PusherCapn_List) At(i int) PusherCapn

func (PusherCapn_List) Set

func (s PusherCapn_List) Set(i int, v PusherCapn) error

func (PusherCapn_List) String

func (s PusherCapn_List) String() string

type PusherCapn_Promise

type PusherCapn_Promise struct{ *capnp.Pipeline }

PusherCapn_Promise is a wrapper for a PusherCapn promised by a client call.

func (PusherCapn_Promise) Data

func (PusherCapn_Promise) Struct

func (p PusherCapn_Promise) Struct() (PusherCapn, error)

type PusherData

type PusherData struct {
	URL         string `json:"url"`
	Format      string `json:"format"`
	PushType    string `json:"push_type"`
	PushChannel string `json:"push_channel"`
}

type PusherDataCapn

type PusherDataCapn struct{ capnp.Struct }

func NewPusherDataCapn

func NewPusherDataCapn(s *capnp.Segment) (PusherDataCapn, error)

func NewRootPusherDataCapn

func NewRootPusherDataCapn(s *capnp.Segment) (PusherDataCapn, error)

func ReadRootPusherDataCapn

func ReadRootPusherDataCapn(msg *capnp.Message) (PusherDataCapn, error)

func (PusherDataCapn) Format

func (s PusherDataCapn) Format() (string, error)

func (PusherDataCapn) FormatBytes

func (s PusherDataCapn) FormatBytes() ([]byte, error)

func (PusherDataCapn) HasFormat

func (s PusherDataCapn) HasFormat() bool

func (PusherDataCapn) HasPushChannel

func (s PusherDataCapn) HasPushChannel() bool

func (PusherDataCapn) HasPushType

func (s PusherDataCapn) HasPushType() bool

func (PusherDataCapn) HasURL

func (s PusherDataCapn) HasURL() bool

func (PusherDataCapn) PushChannel

func (s PusherDataCapn) PushChannel() (string, error)

func (PusherDataCapn) PushChannelBytes

func (s PusherDataCapn) PushChannelBytes() ([]byte, error)

func (PusherDataCapn) PushType

func (s PusherDataCapn) PushType() (string, error)

func (PusherDataCapn) PushTypeBytes

func (s PusherDataCapn) PushTypeBytes() ([]byte, error)

func (PusherDataCapn) SetFormat

func (s PusherDataCapn) SetFormat(v string) error

func (PusherDataCapn) SetPushChannel

func (s PusherDataCapn) SetPushChannel(v string) error

func (PusherDataCapn) SetPushType

func (s PusherDataCapn) SetPushType(v string) error

func (PusherDataCapn) SetURL

func (s PusherDataCapn) SetURL(v string) error

func (PusherDataCapn) String

func (s PusherDataCapn) String() string

func (PusherDataCapn) URL

func (s PusherDataCapn) URL() (string, error)

func (PusherDataCapn) URLBytes

func (s PusherDataCapn) URLBytes() ([]byte, error)

type PusherDataCapn_List

type PusherDataCapn_List struct{ capnp.List }

PusherDataCapn_List is a list of PusherDataCapn.

func NewPusherDataCapn_List

func NewPusherDataCapn_List(s *capnp.Segment, sz int32) (PusherDataCapn_List, error)

NewPusherDataCapn creates a new list of PusherDataCapn.

func (PusherDataCapn_List) At

func (PusherDataCapn_List) Set

func (PusherDataCapn_List) String

func (s PusherDataCapn_List) String() string

type PusherDataCapn_Promise

type PusherDataCapn_Promise struct{ *capnp.Pipeline }

PusherDataCapn_Promise is a wrapper for a PusherDataCapn promised by a client call.

func (PusherDataCapn_Promise) Struct

type PusherRes

type PusherRes struct {
	UserName  string `json:"user_name,omitempty"`
	AppId     string `json:"app_id,omitempty"`
	Kind      string `json:"kind,omitempty"`
	PushKey   string `json:"pushkey,omitempty"`
	PushKeyTs int64  `json:"ts,omitempty"`
}

type PutAvatarURLRequest

type PutAvatarURLRequest struct {
	UserID    string `json:"user_id"`
	AvatarURL string `json:"avatar_url"`
}

PUT /_matrix/client/r0/profile/{userID}/avatar_url

func (*PutAvatarURLRequest) Decode

func (externalReq *PutAvatarURLRequest) Decode(input []byte) error

func (*PutAvatarURLRequest) Encode

func (externalReq *PutAvatarURLRequest) Encode() ([]byte, error)

type PutAvatarURLRequestCapn

type PutAvatarURLRequestCapn struct{ capnp.Struct }

func NewPutAvatarURLRequestCapn

func NewPutAvatarURLRequestCapn(s *capnp.Segment) (PutAvatarURLRequestCapn, error)

func NewRootPutAvatarURLRequestCapn

func NewRootPutAvatarURLRequestCapn(s *capnp.Segment) (PutAvatarURLRequestCapn, error)

func ReadRootPutAvatarURLRequestCapn

func ReadRootPutAvatarURLRequestCapn(msg *capnp.Message) (PutAvatarURLRequestCapn, error)

func (PutAvatarURLRequestCapn) AvatarURL

func (s PutAvatarURLRequestCapn) AvatarURL() (string, error)

func (PutAvatarURLRequestCapn) AvatarURLBytes

func (s PutAvatarURLRequestCapn) AvatarURLBytes() ([]byte, error)

func (PutAvatarURLRequestCapn) HasAvatarURL

func (s PutAvatarURLRequestCapn) HasAvatarURL() bool

func (PutAvatarURLRequestCapn) HasUserID

func (s PutAvatarURLRequestCapn) HasUserID() bool

func (PutAvatarURLRequestCapn) SetAvatarURL

func (s PutAvatarURLRequestCapn) SetAvatarURL(v string) error

func (PutAvatarURLRequestCapn) SetUserID

func (s PutAvatarURLRequestCapn) SetUserID(v string) error

func (PutAvatarURLRequestCapn) String

func (s PutAvatarURLRequestCapn) String() string

func (PutAvatarURLRequestCapn) UserID

func (s PutAvatarURLRequestCapn) UserID() (string, error)

func (PutAvatarURLRequestCapn) UserIDBytes

func (s PutAvatarURLRequestCapn) UserIDBytes() ([]byte, error)

type PutAvatarURLRequestCapn_List

type PutAvatarURLRequestCapn_List struct{ capnp.List }

PutAvatarURLRequestCapn_List is a list of PutAvatarURLRequestCapn.

func NewPutAvatarURLRequestCapn_List

func NewPutAvatarURLRequestCapn_List(s *capnp.Segment, sz int32) (PutAvatarURLRequestCapn_List, error)

NewPutAvatarURLRequestCapn creates a new list of PutAvatarURLRequestCapn.

func (PutAvatarURLRequestCapn_List) At

func (PutAvatarURLRequestCapn_List) Set

func (PutAvatarURLRequestCapn_List) String

type PutAvatarURLRequestCapn_Promise

type PutAvatarURLRequestCapn_Promise struct{ *capnp.Pipeline }

PutAvatarURLRequestCapn_Promise is a wrapper for a PutAvatarURLRequestCapn promised by a client call.

func (PutAvatarURLRequestCapn_Promise) Struct

type PutDeviceRequest

type PutDeviceRequest struct {
	DeviceID    string `json:"device_id"`
	DisplayName string `json:"display_name,omitempty"`
}

PUT /_matrix/client/r0/devices/{deviceId}

func (*PutDeviceRequest) Decode

func (externalReq *PutDeviceRequest) Decode(input []byte) error

func (*PutDeviceRequest) Encode

func (externalReq *PutDeviceRequest) Encode() ([]byte, error)

type PutDeviceRequestCapn

type PutDeviceRequestCapn struct{ capnp.Struct }

func NewPutDeviceRequestCapn

func NewPutDeviceRequestCapn(s *capnp.Segment) (PutDeviceRequestCapn, error)

func NewRootPutDeviceRequestCapn

func NewRootPutDeviceRequestCapn(s *capnp.Segment) (PutDeviceRequestCapn, error)

func ReadRootPutDeviceRequestCapn

func ReadRootPutDeviceRequestCapn(msg *capnp.Message) (PutDeviceRequestCapn, error)

func (PutDeviceRequestCapn) DeviceID

func (s PutDeviceRequestCapn) DeviceID() (string, error)

func (PutDeviceRequestCapn) DeviceIDBytes

func (s PutDeviceRequestCapn) DeviceIDBytes() ([]byte, error)

func (PutDeviceRequestCapn) DisplayName

func (s PutDeviceRequestCapn) DisplayName() (string, error)

func (PutDeviceRequestCapn) DisplayNameBytes

func (s PutDeviceRequestCapn) DisplayNameBytes() ([]byte, error)

func (PutDeviceRequestCapn) HasDeviceID

func (s PutDeviceRequestCapn) HasDeviceID() bool

func (PutDeviceRequestCapn) HasDisplayName

func (s PutDeviceRequestCapn) HasDisplayName() bool

func (PutDeviceRequestCapn) SetDeviceID

func (s PutDeviceRequestCapn) SetDeviceID(v string) error

func (PutDeviceRequestCapn) SetDisplayName

func (s PutDeviceRequestCapn) SetDisplayName(v string) error

func (PutDeviceRequestCapn) String

func (s PutDeviceRequestCapn) String() string

type PutDeviceRequestCapn_List

type PutDeviceRequestCapn_List struct{ capnp.List }

PutDeviceRequestCapn_List is a list of PutDeviceRequestCapn.

func NewPutDeviceRequestCapn_List

func NewPutDeviceRequestCapn_List(s *capnp.Segment, sz int32) (PutDeviceRequestCapn_List, error)

NewPutDeviceRequestCapn creates a new list of PutDeviceRequestCapn.

func (PutDeviceRequestCapn_List) At

func (PutDeviceRequestCapn_List) Set

func (PutDeviceRequestCapn_List) String

func (s PutDeviceRequestCapn_List) String() string

type PutDeviceRequestCapn_Promise

type PutDeviceRequestCapn_Promise struct{ *capnp.Pipeline }

PutDeviceRequestCapn_Promise is a wrapper for a PutDeviceRequestCapn promised by a client call.

func (PutDeviceRequestCapn_Promise) Struct

type PutDevicesByIDRequest

type PutDevicesByIDRequest struct {
	DeviceId    string `json:"deviceId"`
	DisplayName string `json:"display_name"`
}

PUT /_matrix/client/r0/devices/{deviceId}

type PutDevicesByIDRequestCapn

type PutDevicesByIDRequestCapn struct{ capnp.Struct }

func NewPutDevicesByIDRequestCapn

func NewPutDevicesByIDRequestCapn(s *capnp.Segment) (PutDevicesByIDRequestCapn, error)

func NewRootPutDevicesByIDRequestCapn

func NewRootPutDevicesByIDRequestCapn(s *capnp.Segment) (PutDevicesByIDRequestCapn, error)

func ReadRootPutDevicesByIDRequestCapn

func ReadRootPutDevicesByIDRequestCapn(msg *capnp.Message) (PutDevicesByIDRequestCapn, error)

func (PutDevicesByIDRequestCapn) DeviceId

func (s PutDevicesByIDRequestCapn) DeviceId() (string, error)

func (PutDevicesByIDRequestCapn) DeviceIdBytes

func (s PutDevicesByIDRequestCapn) DeviceIdBytes() ([]byte, error)

func (PutDevicesByIDRequestCapn) DisplayName

func (s PutDevicesByIDRequestCapn) DisplayName() (string, error)

func (PutDevicesByIDRequestCapn) DisplayNameBytes

func (s PutDevicesByIDRequestCapn) DisplayNameBytes() ([]byte, error)

func (PutDevicesByIDRequestCapn) HasDeviceId

func (s PutDevicesByIDRequestCapn) HasDeviceId() bool

func (PutDevicesByIDRequestCapn) HasDisplayName

func (s PutDevicesByIDRequestCapn) HasDisplayName() bool

func (PutDevicesByIDRequestCapn) SetDeviceId

func (s PutDevicesByIDRequestCapn) SetDeviceId(v string) error

func (PutDevicesByIDRequestCapn) SetDisplayName

func (s PutDevicesByIDRequestCapn) SetDisplayName(v string) error

func (PutDevicesByIDRequestCapn) String

func (s PutDevicesByIDRequestCapn) String() string

type PutDevicesByIDRequestCapn_List

type PutDevicesByIDRequestCapn_List struct{ capnp.List }

PutDevicesByIDRequestCapn_List is a list of PutDevicesByIDRequestCapn.

func NewPutDevicesByIDRequestCapn_List

func NewPutDevicesByIDRequestCapn_List(s *capnp.Segment, sz int32) (PutDevicesByIDRequestCapn_List, error)

NewPutDevicesByIDRequestCapn creates a new list of PutDevicesByIDRequestCapn.

func (PutDevicesByIDRequestCapn_List) At

func (PutDevicesByIDRequestCapn_List) Set

func (PutDevicesByIDRequestCapn_List) String

type PutDevicesByIDRequestCapn_Promise

type PutDevicesByIDRequestCapn_Promise struct{ *capnp.Pipeline }

PutDevicesByIDRequestCapn_Promise is a wrapper for a PutDevicesByIDRequestCapn promised by a client call.

func (PutDevicesByIDRequestCapn_Promise) Struct

type PutDirectoryRoomAliasRequest

type PutDirectoryRoomAliasRequest struct {
	RoomAlias string `json:"roomAlias"`
	RoomID    string `json:"room_id"`
}

PUT /_matrix/client/r0/directory/room/{roomAlias}

func (*PutDirectoryRoomAliasRequest) Decode

func (externalReq *PutDirectoryRoomAliasRequest) Decode(input []byte) error

func (*PutDirectoryRoomAliasRequest) Encode

func (externalReq *PutDirectoryRoomAliasRequest) Encode() ([]byte, error)

type PutDirectoryRoomAliasRequestCapn

type PutDirectoryRoomAliasRequestCapn struct{ capnp.Struct }

func NewPutDirectoryRoomAliasRequestCapn

func NewPutDirectoryRoomAliasRequestCapn(s *capnp.Segment) (PutDirectoryRoomAliasRequestCapn, error)

func NewRootPutDirectoryRoomAliasRequestCapn

func NewRootPutDirectoryRoomAliasRequestCapn(s *capnp.Segment) (PutDirectoryRoomAliasRequestCapn, error)

func ReadRootPutDirectoryRoomAliasRequestCapn

func ReadRootPutDirectoryRoomAliasRequestCapn(msg *capnp.Message) (PutDirectoryRoomAliasRequestCapn, error)

func (PutDirectoryRoomAliasRequestCapn) HasRoomAlias

func (s PutDirectoryRoomAliasRequestCapn) HasRoomAlias() bool

func (PutDirectoryRoomAliasRequestCapn) HasRoomID

func (s PutDirectoryRoomAliasRequestCapn) HasRoomID() bool

func (PutDirectoryRoomAliasRequestCapn) RoomAlias

func (PutDirectoryRoomAliasRequestCapn) RoomAliasBytes

func (s PutDirectoryRoomAliasRequestCapn) RoomAliasBytes() ([]byte, error)

func (PutDirectoryRoomAliasRequestCapn) RoomID

func (PutDirectoryRoomAliasRequestCapn) RoomIDBytes

func (s PutDirectoryRoomAliasRequestCapn) RoomIDBytes() ([]byte, error)

func (PutDirectoryRoomAliasRequestCapn) SetRoomAlias

func (s PutDirectoryRoomAliasRequestCapn) SetRoomAlias(v string) error

func (PutDirectoryRoomAliasRequestCapn) SetRoomID

func (PutDirectoryRoomAliasRequestCapn) String

type PutDirectoryRoomAliasRequestCapn_List

type PutDirectoryRoomAliasRequestCapn_List struct{ capnp.List }

PutDirectoryRoomAliasRequestCapn_List is a list of PutDirectoryRoomAliasRequestCapn.

func NewPutDirectoryRoomAliasRequestCapn_List

func NewPutDirectoryRoomAliasRequestCapn_List(s *capnp.Segment, sz int32) (PutDirectoryRoomAliasRequestCapn_List, error)

NewPutDirectoryRoomAliasRequestCapn creates a new list of PutDirectoryRoomAliasRequestCapn.

func (PutDirectoryRoomAliasRequestCapn_List) At

func (PutDirectoryRoomAliasRequestCapn_List) Set

func (PutDirectoryRoomAliasRequestCapn_List) String

type PutDirectoryRoomAliasRequestCapn_Promise

type PutDirectoryRoomAliasRequestCapn_Promise struct{ *capnp.Pipeline }

PutDirectoryRoomAliasRequestCapn_Promise is a wrapper for a PutDirectoryRoomAliasRequestCapn promised by a client call.

func (PutDirectoryRoomAliasRequestCapn_Promise) Struct

type PutDirectoryRoomRequest

type PutDirectoryRoomRequest struct {
	RoomID     string `json:"room_id"`
	Visibility string `json:"visibility"`
}

PUT /_matrix/client/r0/directory/list/room/{roomId}

func (*PutDirectoryRoomRequest) Decode

func (externalReq *PutDirectoryRoomRequest) Decode(input []byte) error

func (*PutDirectoryRoomRequest) Encode

func (externalReq *PutDirectoryRoomRequest) Encode() ([]byte, error)

type PutDirectoryRoomRequestCapn

type PutDirectoryRoomRequestCapn struct{ capnp.Struct }

func NewPutDirectoryRoomRequestCapn

func NewPutDirectoryRoomRequestCapn(s *capnp.Segment) (PutDirectoryRoomRequestCapn, error)

func NewRootPutDirectoryRoomRequestCapn

func NewRootPutDirectoryRoomRequestCapn(s *capnp.Segment) (PutDirectoryRoomRequestCapn, error)

func ReadRootPutDirectoryRoomRequestCapn

func ReadRootPutDirectoryRoomRequestCapn(msg *capnp.Message) (PutDirectoryRoomRequestCapn, error)

func (PutDirectoryRoomRequestCapn) HasRoomID

func (s PutDirectoryRoomRequestCapn) HasRoomID() bool

func (PutDirectoryRoomRequestCapn) HasVisibility

func (s PutDirectoryRoomRequestCapn) HasVisibility() bool

func (PutDirectoryRoomRequestCapn) RoomID

func (PutDirectoryRoomRequestCapn) RoomIDBytes

func (s PutDirectoryRoomRequestCapn) RoomIDBytes() ([]byte, error)

func (PutDirectoryRoomRequestCapn) SetRoomID

func (s PutDirectoryRoomRequestCapn) SetRoomID(v string) error

func (PutDirectoryRoomRequestCapn) SetVisibility

func (s PutDirectoryRoomRequestCapn) SetVisibility(v string) error

func (PutDirectoryRoomRequestCapn) String

func (PutDirectoryRoomRequestCapn) Visibility

func (s PutDirectoryRoomRequestCapn) Visibility() (string, error)

func (PutDirectoryRoomRequestCapn) VisibilityBytes

func (s PutDirectoryRoomRequestCapn) VisibilityBytes() ([]byte, error)

type PutDirectoryRoomRequestCapn_List

type PutDirectoryRoomRequestCapn_List struct{ capnp.List }

PutDirectoryRoomRequestCapn_List is a list of PutDirectoryRoomRequestCapn.

func NewPutDirectoryRoomRequestCapn_List

func NewPutDirectoryRoomRequestCapn_List(s *capnp.Segment, sz int32) (PutDirectoryRoomRequestCapn_List, error)

NewPutDirectoryRoomRequestCapn creates a new list of PutDirectoryRoomRequestCapn.

func (PutDirectoryRoomRequestCapn_List) At

func (PutDirectoryRoomRequestCapn_List) Set

func (PutDirectoryRoomRequestCapn_List) String

type PutDirectoryRoomRequestCapn_Promise

type PutDirectoryRoomRequestCapn_Promise struct{ *capnp.Pipeline }

PutDirectoryRoomRequestCapn_Promise is a wrapper for a PutDirectoryRoomRequestCapn promised by a client call.

func (PutDirectoryRoomRequestCapn_Promise) Struct

type PutDisplayNameRequest

type PutDisplayNameRequest struct {
	UserID      string `json:"user_id"`
	DisplayName string `json:"displayname"`
}

PUT /_matrix/client/r0/profile/{userID}/displayname

func (*PutDisplayNameRequest) Decode

func (externalReq *PutDisplayNameRequest) Decode(input []byte) error

func (*PutDisplayNameRequest) Encode

func (externalReq *PutDisplayNameRequest) Encode() ([]byte, error)

type PutDisplayNameRequestCapn

type PutDisplayNameRequestCapn struct{ capnp.Struct }

func NewPutDisplayNameRequestCapn

func NewPutDisplayNameRequestCapn(s *capnp.Segment) (PutDisplayNameRequestCapn, error)

func NewRootPutDisplayNameRequestCapn

func NewRootPutDisplayNameRequestCapn(s *capnp.Segment) (PutDisplayNameRequestCapn, error)

func ReadRootPutDisplayNameRequestCapn

func ReadRootPutDisplayNameRequestCapn(msg *capnp.Message) (PutDisplayNameRequestCapn, error)

func (PutDisplayNameRequestCapn) DisplayName

func (s PutDisplayNameRequestCapn) DisplayName() (string, error)

func (PutDisplayNameRequestCapn) DisplayNameBytes

func (s PutDisplayNameRequestCapn) DisplayNameBytes() ([]byte, error)

func (PutDisplayNameRequestCapn) HasDisplayName

func (s PutDisplayNameRequestCapn) HasDisplayName() bool

func (PutDisplayNameRequestCapn) HasUserID

func (s PutDisplayNameRequestCapn) HasUserID() bool

func (PutDisplayNameRequestCapn) SetDisplayName

func (s PutDisplayNameRequestCapn) SetDisplayName(v string) error

func (PutDisplayNameRequestCapn) SetUserID

func (s PutDisplayNameRequestCapn) SetUserID(v string) error

func (PutDisplayNameRequestCapn) String

func (s PutDisplayNameRequestCapn) String() string

func (PutDisplayNameRequestCapn) UserID

func (s PutDisplayNameRequestCapn) UserID() (string, error)

func (PutDisplayNameRequestCapn) UserIDBytes

func (s PutDisplayNameRequestCapn) UserIDBytes() ([]byte, error)

type PutDisplayNameRequestCapn_List

type PutDisplayNameRequestCapn_List struct{ capnp.List }

PutDisplayNameRequestCapn_List is a list of PutDisplayNameRequestCapn.

func NewPutDisplayNameRequestCapn_List

func NewPutDisplayNameRequestCapn_List(s *capnp.Segment, sz int32) (PutDisplayNameRequestCapn_List, error)

NewPutDisplayNameRequestCapn creates a new list of PutDisplayNameRequestCapn.

func (PutDisplayNameRequestCapn_List) At

func (PutDisplayNameRequestCapn_List) Set

func (PutDisplayNameRequestCapn_List) String

type PutDisplayNameRequestCapn_Promise

type PutDisplayNameRequestCapn_Promise struct{ *capnp.Pipeline }

PutDisplayNameRequestCapn_Promise is a wrapper for a PutDisplayNameRequestCapn promised by a client call.

func (PutDisplayNameRequestCapn_Promise) Struct

type PutFedInviteRequest

type PutFedInviteRequest struct {
	RoomID  string                  `json:"roomID"`
	EventID string                  `json:"eventID"`
	Event   gomatrixserverlib.Event `json:"event"`
}

func (*PutFedInviteRequest) Decode

func (externalReq *PutFedInviteRequest) Decode(data []byte) error

func (*PutFedInviteRequest) Encode

func (externalReq *PutFedInviteRequest) Encode() ([]byte, error)

type PutPresenceRequest

type PutPresenceRequest struct {
	UserID       string  `json:"user_id"`
	Presence     *string `json:"presence,omitempty"`
	StatusMsg    *string `json:"status_msg,omitempty"`
	ExtStatusMsg *string `json:"ext_status_msg,omitempty"`
}

PUT /_matrix/client/r0/presence/{userId}/status

func (*PutPresenceRequest) Decode

func (externalReq *PutPresenceRequest) Decode(input []byte) error

func (*PutPresenceRequest) Encode

func (externalReq *PutPresenceRequest) Encode() ([]byte, error)

type PutPresenceRequestCapn

type PutPresenceRequestCapn struct{ capnp.Struct }

func NewPutPresenceRequestCapn

func NewPutPresenceRequestCapn(s *capnp.Segment) (PutPresenceRequestCapn, error)

func NewRootPutPresenceRequestCapn

func NewRootPutPresenceRequestCapn(s *capnp.Segment) (PutPresenceRequestCapn, error)

func ReadRootPutPresenceRequestCapn

func ReadRootPutPresenceRequestCapn(msg *capnp.Message) (PutPresenceRequestCapn, error)

func (PutPresenceRequestCapn) ExtStatusMsg

func (s PutPresenceRequestCapn) ExtStatusMsg() (string, error)

func (PutPresenceRequestCapn) ExtStatusMsgBytes

func (s PutPresenceRequestCapn) ExtStatusMsgBytes() ([]byte, error)

func (PutPresenceRequestCapn) HasExtStatusMsg

func (s PutPresenceRequestCapn) HasExtStatusMsg() bool

func (PutPresenceRequestCapn) HasPresence

func (s PutPresenceRequestCapn) HasPresence() bool

func (PutPresenceRequestCapn) HasStatusMsg

func (s PutPresenceRequestCapn) HasStatusMsg() bool

func (PutPresenceRequestCapn) HasUserID

func (s PutPresenceRequestCapn) HasUserID() bool

func (PutPresenceRequestCapn) Presence

func (s PutPresenceRequestCapn) Presence() (string, error)

func (PutPresenceRequestCapn) PresenceBytes

func (s PutPresenceRequestCapn) PresenceBytes() ([]byte, error)

func (PutPresenceRequestCapn) SetExtStatusMsg

func (s PutPresenceRequestCapn) SetExtStatusMsg(v string) error

func (PutPresenceRequestCapn) SetPresence

func (s PutPresenceRequestCapn) SetPresence(v string) error

func (PutPresenceRequestCapn) SetStatusMsg

func (s PutPresenceRequestCapn) SetStatusMsg(v string) error

func (PutPresenceRequestCapn) SetUserID

func (s PutPresenceRequestCapn) SetUserID(v string) error

func (PutPresenceRequestCapn) StatusMsg

func (s PutPresenceRequestCapn) StatusMsg() (string, error)

func (PutPresenceRequestCapn) StatusMsgBytes

func (s PutPresenceRequestCapn) StatusMsgBytes() ([]byte, error)

func (PutPresenceRequestCapn) String

func (s PutPresenceRequestCapn) String() string

func (PutPresenceRequestCapn) UserID

func (s PutPresenceRequestCapn) UserID() (string, error)

func (PutPresenceRequestCapn) UserIDBytes

func (s PutPresenceRequestCapn) UserIDBytes() ([]byte, error)

type PutPresenceRequestCapn_List

type PutPresenceRequestCapn_List struct{ capnp.List }

PutPresenceRequestCapn_List is a list of PutPresenceRequestCapn.

func NewPutPresenceRequestCapn_List

func NewPutPresenceRequestCapn_List(s *capnp.Segment, sz int32) (PutPresenceRequestCapn_List, error)

NewPutPresenceRequestCapn creates a new list of PutPresenceRequestCapn.

func (PutPresenceRequestCapn_List) At

func (PutPresenceRequestCapn_List) Set

func (PutPresenceRequestCapn_List) String

type PutPresenceRequestCapn_Promise

type PutPresenceRequestCapn_Promise struct{ *capnp.Pipeline }

PutPresenceRequestCapn_Promise is a wrapper for a PutPresenceRequestCapn promised by a client call.

func (PutPresenceRequestCapn_Promise) Struct

type PutPushrulesActionsByIDRequest

type PutPushrulesActionsByIDRequest struct {
	Scope   string   `json:"scope"`
	Kind    string   `json:"kind"`
	RuleID  string   `json:"ruleId"`
	Actions []string `json:"actions"`
}

PUT /_matrix/client/r0/pushrules/{scope}/{kind}/{ruleId}/actions

func (*PutPushrulesActionsByIDRequest) Decode

func (externalReq *PutPushrulesActionsByIDRequest) Decode(input []byte) error

func (*PutPushrulesActionsByIDRequest) Encode

func (externalReq *PutPushrulesActionsByIDRequest) Encode() ([]byte, error)

type PutPushrulesActionsByIDRequestCapn

type PutPushrulesActionsByIDRequestCapn struct{ capnp.Struct }

func NewPutPushrulesActionsByIDRequestCapn

func NewPutPushrulesActionsByIDRequestCapn(s *capnp.Segment) (PutPushrulesActionsByIDRequestCapn, error)

func NewRootPutPushrulesActionsByIDRequestCapn

func NewRootPutPushrulesActionsByIDRequestCapn(s *capnp.Segment) (PutPushrulesActionsByIDRequestCapn, error)

func ReadRootPutPushrulesActionsByIDRequestCapn

func ReadRootPutPushrulesActionsByIDRequestCapn(msg *capnp.Message) (PutPushrulesActionsByIDRequestCapn, error)

func (PutPushrulesActionsByIDRequestCapn) Actions

func (PutPushrulesActionsByIDRequestCapn) HasActions

func (PutPushrulesActionsByIDRequestCapn) HasKind

func (PutPushrulesActionsByIDRequestCapn) HasRuleID

func (PutPushrulesActionsByIDRequestCapn) HasScope

func (PutPushrulesActionsByIDRequestCapn) Kind

func (PutPushrulesActionsByIDRequestCapn) KindBytes

func (s PutPushrulesActionsByIDRequestCapn) KindBytes() ([]byte, error)

func (PutPushrulesActionsByIDRequestCapn) NewActions

NewActions sets the actions field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (PutPushrulesActionsByIDRequestCapn) RuleID

func (PutPushrulesActionsByIDRequestCapn) RuleIDBytes

func (s PutPushrulesActionsByIDRequestCapn) RuleIDBytes() ([]byte, error)

func (PutPushrulesActionsByIDRequestCapn) Scope

func (PutPushrulesActionsByIDRequestCapn) ScopeBytes

func (s PutPushrulesActionsByIDRequestCapn) ScopeBytes() ([]byte, error)

func (PutPushrulesActionsByIDRequestCapn) SetActions

func (PutPushrulesActionsByIDRequestCapn) SetKind

func (PutPushrulesActionsByIDRequestCapn) SetRuleID

func (PutPushrulesActionsByIDRequestCapn) SetScope

func (PutPushrulesActionsByIDRequestCapn) String

type PutPushrulesActionsByIDRequestCapn_List

type PutPushrulesActionsByIDRequestCapn_List struct{ capnp.List }

PutPushrulesActionsByIDRequestCapn_List is a list of PutPushrulesActionsByIDRequestCapn.

func NewPutPushrulesActionsByIDRequestCapn_List

func NewPutPushrulesActionsByIDRequestCapn_List(s *capnp.Segment, sz int32) (PutPushrulesActionsByIDRequestCapn_List, error)

NewPutPushrulesActionsByIDRequestCapn creates a new list of PutPushrulesActionsByIDRequestCapn.

func (PutPushrulesActionsByIDRequestCapn_List) At

func (PutPushrulesActionsByIDRequestCapn_List) Set

func (PutPushrulesActionsByIDRequestCapn_List) String

type PutPushrulesActionsByIDRequestCapn_Promise

type PutPushrulesActionsByIDRequestCapn_Promise struct{ *capnp.Pipeline }

PutPushrulesActionsByIDRequestCapn_Promise is a wrapper for a PutPushrulesActionsByIDRequestCapn promised by a client call.

func (PutPushrulesActionsByIDRequestCapn_Promise) Struct

type PutPushrulesByIDRequest

type PutPushrulesByIDRequest struct {
	Actions    []interface{}   `json:"actions"`
	Conditions []PushCondition `json:"conditions"`
	Pattern    string          `json:"pattern"`
	Scope      string          `json:"scope"`
	Kind       string          `json:"kind"`
	RuleID     string          `json:"ruleId"`
	Before     string          `json:"before"`
	After      string          `json:"after"`
}

PUT /_matrix/client/r0/pushrules/{scope}/{kind}/{ruleId}

func (*PutPushrulesByIDRequest) Decode

func (externalReq *PutPushrulesByIDRequest) Decode(input []byte) error

func (*PutPushrulesByIDRequest) Encode

func (externalReq *PutPushrulesByIDRequest) Encode() ([]byte, error)

type PutPushrulesByIDRequestCapn

type PutPushrulesByIDRequestCapn struct{ capnp.Struct }

func NewPutPushrulesByIDRequestCapn

func NewPutPushrulesByIDRequestCapn(s *capnp.Segment) (PutPushrulesByIDRequestCapn, error)

func NewRootPutPushrulesByIDRequestCapn

func NewRootPutPushrulesByIDRequestCapn(s *capnp.Segment) (PutPushrulesByIDRequestCapn, error)

func ReadRootPutPushrulesByIDRequestCapn

func ReadRootPutPushrulesByIDRequestCapn(msg *capnp.Message) (PutPushrulesByIDRequestCapn, error)

func (PutPushrulesByIDRequestCapn) Actions

func (PutPushrulesByIDRequestCapn) After

func (PutPushrulesByIDRequestCapn) AfterBytes

func (s PutPushrulesByIDRequestCapn) AfterBytes() ([]byte, error)

func (PutPushrulesByIDRequestCapn) Before

func (PutPushrulesByIDRequestCapn) BeforeBytes

func (s PutPushrulesByIDRequestCapn) BeforeBytes() ([]byte, error)

func (PutPushrulesByIDRequestCapn) Conditions

func (PutPushrulesByIDRequestCapn) HasActions

func (s PutPushrulesByIDRequestCapn) HasActions() bool

func (PutPushrulesByIDRequestCapn) HasAfter

func (s PutPushrulesByIDRequestCapn) HasAfter() bool

func (PutPushrulesByIDRequestCapn) HasBefore

func (s PutPushrulesByIDRequestCapn) HasBefore() bool

func (PutPushrulesByIDRequestCapn) HasConditions

func (s PutPushrulesByIDRequestCapn) HasConditions() bool

func (PutPushrulesByIDRequestCapn) HasKind

func (s PutPushrulesByIDRequestCapn) HasKind() bool

func (PutPushrulesByIDRequestCapn) HasPattern

func (s PutPushrulesByIDRequestCapn) HasPattern() bool

func (PutPushrulesByIDRequestCapn) HasRuleID

func (s PutPushrulesByIDRequestCapn) HasRuleID() bool

func (PutPushrulesByIDRequestCapn) HasScope

func (s PutPushrulesByIDRequestCapn) HasScope() bool

func (PutPushrulesByIDRequestCapn) Kind

func (PutPushrulesByIDRequestCapn) KindBytes

func (s PutPushrulesByIDRequestCapn) KindBytes() ([]byte, error)

func (PutPushrulesByIDRequestCapn) NewActions

NewActions sets the actions field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (PutPushrulesByIDRequestCapn) NewConditions

NewConditions sets the conditions field to a newly allocated PushConditionCapn_List, preferring placement in s's segment.

func (PutPushrulesByIDRequestCapn) Pattern

func (s PutPushrulesByIDRequestCapn) Pattern() (string, error)

func (PutPushrulesByIDRequestCapn) PatternBytes

func (s PutPushrulesByIDRequestCapn) PatternBytes() ([]byte, error)

func (PutPushrulesByIDRequestCapn) RuleID

func (PutPushrulesByIDRequestCapn) RuleIDBytes

func (s PutPushrulesByIDRequestCapn) RuleIDBytes() ([]byte, error)

func (PutPushrulesByIDRequestCapn) Scope

func (PutPushrulesByIDRequestCapn) ScopeBytes

func (s PutPushrulesByIDRequestCapn) ScopeBytes() ([]byte, error)

func (PutPushrulesByIDRequestCapn) SetActions

func (PutPushrulesByIDRequestCapn) SetAfter

func (PutPushrulesByIDRequestCapn) SetBefore

func (s PutPushrulesByIDRequestCapn) SetBefore(v string) error

func (PutPushrulesByIDRequestCapn) SetConditions

func (PutPushrulesByIDRequestCapn) SetKind

func (PutPushrulesByIDRequestCapn) SetPattern

func (s PutPushrulesByIDRequestCapn) SetPattern(v string) error

func (PutPushrulesByIDRequestCapn) SetRuleID

func (s PutPushrulesByIDRequestCapn) SetRuleID(v string) error

func (PutPushrulesByIDRequestCapn) SetScope

func (PutPushrulesByIDRequestCapn) String

type PutPushrulesByIDRequestCapn_List

type PutPushrulesByIDRequestCapn_List struct{ capnp.List }

PutPushrulesByIDRequestCapn_List is a list of PutPushrulesByIDRequestCapn.

func NewPutPushrulesByIDRequestCapn_List

func NewPutPushrulesByIDRequestCapn_List(s *capnp.Segment, sz int32) (PutPushrulesByIDRequestCapn_List, error)

NewPutPushrulesByIDRequestCapn creates a new list of PutPushrulesByIDRequestCapn.

func (PutPushrulesByIDRequestCapn_List) At

func (PutPushrulesByIDRequestCapn_List) Set

func (PutPushrulesByIDRequestCapn_List) String

type PutPushrulesByIDRequestCapn_Promise

type PutPushrulesByIDRequestCapn_Promise struct{ *capnp.Pipeline }

PutPushrulesByIDRequestCapn_Promise is a wrapper for a PutPushrulesByIDRequestCapn promised by a client call.

func (PutPushrulesByIDRequestCapn_Promise) Struct

type PutPushrulesEnabledByIDRequest

type PutPushrulesEnabledByIDRequest struct {
	Scope   string `json:"scope"`
	Kind    string `json:"kind"`
	RuleID  string `json:"ruleId"`
	Enabled bool   `json:"enabled"`
}

PUT /_matrix/client/r0/pushrules/{scope}/{kind}/{ruleId}/enabled

func (*PutPushrulesEnabledByIDRequest) Decode

func (externalReq *PutPushrulesEnabledByIDRequest) Decode(input []byte) error

func (*PutPushrulesEnabledByIDRequest) Encode

func (externalReq *PutPushrulesEnabledByIDRequest) Encode() ([]byte, error)

type PutPushrulesEnabledByIDRequestCapn

type PutPushrulesEnabledByIDRequestCapn struct{ capnp.Struct }

func NewPutPushrulesEnabledByIDRequestCapn

func NewPutPushrulesEnabledByIDRequestCapn(s *capnp.Segment) (PutPushrulesEnabledByIDRequestCapn, error)

func NewRootPutPushrulesEnabledByIDRequestCapn

func NewRootPutPushrulesEnabledByIDRequestCapn(s *capnp.Segment) (PutPushrulesEnabledByIDRequestCapn, error)

func ReadRootPutPushrulesEnabledByIDRequestCapn

func ReadRootPutPushrulesEnabledByIDRequestCapn(msg *capnp.Message) (PutPushrulesEnabledByIDRequestCapn, error)

func (PutPushrulesEnabledByIDRequestCapn) Enabled

func (PutPushrulesEnabledByIDRequestCapn) HasKind

func (PutPushrulesEnabledByIDRequestCapn) HasRuleID

func (PutPushrulesEnabledByIDRequestCapn) HasScope

func (PutPushrulesEnabledByIDRequestCapn) Kind

func (PutPushrulesEnabledByIDRequestCapn) KindBytes

func (s PutPushrulesEnabledByIDRequestCapn) KindBytes() ([]byte, error)

func (PutPushrulesEnabledByIDRequestCapn) RuleID

func (PutPushrulesEnabledByIDRequestCapn) RuleIDBytes

func (s PutPushrulesEnabledByIDRequestCapn) RuleIDBytes() ([]byte, error)

func (PutPushrulesEnabledByIDRequestCapn) Scope

func (PutPushrulesEnabledByIDRequestCapn) ScopeBytes

func (s PutPushrulesEnabledByIDRequestCapn) ScopeBytes() ([]byte, error)

func (PutPushrulesEnabledByIDRequestCapn) SetEnabled

func (s PutPushrulesEnabledByIDRequestCapn) SetEnabled(v bool)

func (PutPushrulesEnabledByIDRequestCapn) SetKind

func (PutPushrulesEnabledByIDRequestCapn) SetRuleID

func (PutPushrulesEnabledByIDRequestCapn) SetScope

func (PutPushrulesEnabledByIDRequestCapn) String

type PutPushrulesEnabledByIDRequestCapn_List

type PutPushrulesEnabledByIDRequestCapn_List struct{ capnp.List }

PutPushrulesEnabledByIDRequestCapn_List is a list of PutPushrulesEnabledByIDRequestCapn.

func NewPutPushrulesEnabledByIDRequestCapn_List

func NewPutPushrulesEnabledByIDRequestCapn_List(s *capnp.Segment, sz int32) (PutPushrulesEnabledByIDRequestCapn_List, error)

NewPutPushrulesEnabledByIDRequestCapn creates a new list of PutPushrulesEnabledByIDRequestCapn.

func (PutPushrulesEnabledByIDRequestCapn_List) At

func (PutPushrulesEnabledByIDRequestCapn_List) Set

func (PutPushrulesEnabledByIDRequestCapn_List) String

type PutPushrulesEnabledByIDRequestCapn_Promise

type PutPushrulesEnabledByIDRequestCapn_Promise struct{ *capnp.Pipeline }

PutPushrulesEnabledByIDRequestCapn_Promise is a wrapper for a PutPushrulesEnabledByIDRequestCapn promised by a client call.

func (PutPushrulesEnabledByIDRequestCapn_Promise) Struct

type PutRedactEventRequest

type PutRedactEventRequest struct {
	RoomID  string `json:"roomId,omitempty"`
	EventID string `json:"eventId,omitempty"`
	Reason  string `json:"reason,omitempty"`
	Content []byte `json:"content,omitempty"`
}

PUT /_matrix/client/r0/rooms/{roomId}/redact/{eventId}/

func (*PutRedactEventRequest) Decode

func (externalReq *PutRedactEventRequest) Decode(input []byte) error

func (*PutRedactEventRequest) Encode

func (externalReq *PutRedactEventRequest) Encode() ([]byte, error)

type PutRedactEventRequestCapn

type PutRedactEventRequestCapn struct{ capnp.Struct }

func NewPutRedactEventRequestCapn

func NewPutRedactEventRequestCapn(s *capnp.Segment) (PutRedactEventRequestCapn, error)

func NewRootPutRedactEventRequestCapn

func NewRootPutRedactEventRequestCapn(s *capnp.Segment) (PutRedactEventRequestCapn, error)

func ReadRootPutRedactEventRequestCapn

func ReadRootPutRedactEventRequestCapn(msg *capnp.Message) (PutRedactEventRequestCapn, error)

func (PutRedactEventRequestCapn) Content

func (s PutRedactEventRequestCapn) Content() ([]byte, error)

func (PutRedactEventRequestCapn) EventID

func (s PutRedactEventRequestCapn) EventID() (string, error)

func (PutRedactEventRequestCapn) EventIDBytes

func (s PutRedactEventRequestCapn) EventIDBytes() ([]byte, error)

func (PutRedactEventRequestCapn) HasContent

func (s PutRedactEventRequestCapn) HasContent() bool

func (PutRedactEventRequestCapn) HasEventID

func (s PutRedactEventRequestCapn) HasEventID() bool

func (PutRedactEventRequestCapn) HasReason

func (s PutRedactEventRequestCapn) HasReason() bool

func (PutRedactEventRequestCapn) HasRoomID

func (s PutRedactEventRequestCapn) HasRoomID() bool

func (PutRedactEventRequestCapn) Reason

func (s PutRedactEventRequestCapn) Reason() (string, error)

func (PutRedactEventRequestCapn) ReasonBytes

func (s PutRedactEventRequestCapn) ReasonBytes() ([]byte, error)

func (PutRedactEventRequestCapn) RoomID

func (s PutRedactEventRequestCapn) RoomID() (string, error)

func (PutRedactEventRequestCapn) RoomIDBytes

func (s PutRedactEventRequestCapn) RoomIDBytes() ([]byte, error)

func (PutRedactEventRequestCapn) SetContent

func (s PutRedactEventRequestCapn) SetContent(v []byte) error

func (PutRedactEventRequestCapn) SetEventID

func (s PutRedactEventRequestCapn) SetEventID(v string) error

func (PutRedactEventRequestCapn) SetReason

func (s PutRedactEventRequestCapn) SetReason(v string) error

func (PutRedactEventRequestCapn) SetRoomID

func (s PutRedactEventRequestCapn) SetRoomID(v string) error

func (PutRedactEventRequestCapn) String

func (s PutRedactEventRequestCapn) String() string

type PutRedactEventRequestCapn_List

type PutRedactEventRequestCapn_List struct{ capnp.List }

PutRedactEventRequestCapn_List is a list of PutRedactEventRequestCapn.

func NewPutRedactEventRequestCapn_List

func NewPutRedactEventRequestCapn_List(s *capnp.Segment, sz int32) (PutRedactEventRequestCapn_List, error)

NewPutRedactEventRequestCapn creates a new list of PutRedactEventRequestCapn.

func (PutRedactEventRequestCapn_List) At

func (PutRedactEventRequestCapn_List) Set

func (PutRedactEventRequestCapn_List) String

type PutRedactEventRequestCapn_Promise

type PutRedactEventRequestCapn_Promise struct{ *capnp.Pipeline }

PutRedactEventRequestCapn_Promise is a wrapper for a PutRedactEventRequestCapn promised by a client call.

func (PutRedactEventRequestCapn_Promise) Struct

type PutRedactEventResponse

type PutRedactEventResponse struct {
	EventID string `json:"event_id"`
}

response

func (*PutRedactEventResponse) Decode

func (res *PutRedactEventResponse) Decode(input []byte) error

func (*PutRedactEventResponse) Encode

func (res *PutRedactEventResponse) Encode() ([]byte, error)

type PutRedactEventResponseCapn

type PutRedactEventResponseCapn struct{ capnp.Struct }

func NewPutRedactEventResponseCapn

func NewPutRedactEventResponseCapn(s *capnp.Segment) (PutRedactEventResponseCapn, error)

func NewRootPutRedactEventResponseCapn

func NewRootPutRedactEventResponseCapn(s *capnp.Segment) (PutRedactEventResponseCapn, error)

func ReadRootPutRedactEventResponseCapn

func ReadRootPutRedactEventResponseCapn(msg *capnp.Message) (PutRedactEventResponseCapn, error)

func (PutRedactEventResponseCapn) EventID

func (s PutRedactEventResponseCapn) EventID() (string, error)

func (PutRedactEventResponseCapn) EventIDBytes

func (s PutRedactEventResponseCapn) EventIDBytes() ([]byte, error)

func (PutRedactEventResponseCapn) HasEventID

func (s PutRedactEventResponseCapn) HasEventID() bool

func (PutRedactEventResponseCapn) SetEventID

func (s PutRedactEventResponseCapn) SetEventID(v string) error

func (PutRedactEventResponseCapn) String

type PutRedactEventResponseCapn_List

type PutRedactEventResponseCapn_List struct{ capnp.List }

PutRedactEventResponseCapn_List is a list of PutRedactEventResponseCapn.

func NewPutRedactEventResponseCapn_List

func NewPutRedactEventResponseCapn_List(s *capnp.Segment, sz int32) (PutRedactEventResponseCapn_List, error)

NewPutRedactEventResponseCapn creates a new list of PutRedactEventResponseCapn.

func (PutRedactEventResponseCapn_List) At

func (PutRedactEventResponseCapn_List) Set

func (PutRedactEventResponseCapn_List) String

type PutRedactEventResponseCapn_Promise

type PutRedactEventResponseCapn_Promise struct{ *capnp.Pipeline }

PutRedactEventResponseCapn_Promise is a wrapper for a PutRedactEventResponseCapn promised by a client call.

func (PutRedactEventResponseCapn_Promise) Struct

type PutRedactWithTxnIDEventRequest

type PutRedactWithTxnIDEventRequest struct {
	RoomID  string `json:"roomId,omitempty"`
	EventID string `json:"eventId,omitempty"`
	TxnID   string `json:"txnId,omitempty"`
	Reason  string `json:"reason,omitempty"`
	Content []byte `json:"content,omitempty"`
}

PUT /_matrix/client/r0/rooms/{roomId}/redact/{eventId}/{txnId}

func (*PutRedactWithTxnIDEventRequest) Decode

func (externalReq *PutRedactWithTxnIDEventRequest) Decode(input []byte) error

func (*PutRedactWithTxnIDEventRequest) Encode

func (externalReq *PutRedactWithTxnIDEventRequest) Encode() ([]byte, error)

type PutRedactWithTxnIDEventRequestCapn

type PutRedactWithTxnIDEventRequestCapn struct{ capnp.Struct }

func NewPutRedactWithTxnIDEventRequestCapn

func NewPutRedactWithTxnIDEventRequestCapn(s *capnp.Segment) (PutRedactWithTxnIDEventRequestCapn, error)

func NewRootPutRedactWithTxnIDEventRequestCapn

func NewRootPutRedactWithTxnIDEventRequestCapn(s *capnp.Segment) (PutRedactWithTxnIDEventRequestCapn, error)

func ReadRootPutRedactWithTxnIDEventRequestCapn

func ReadRootPutRedactWithTxnIDEventRequestCapn(msg *capnp.Message) (PutRedactWithTxnIDEventRequestCapn, error)

func (PutRedactWithTxnIDEventRequestCapn) Content

func (PutRedactWithTxnIDEventRequestCapn) EventID

func (PutRedactWithTxnIDEventRequestCapn) EventIDBytes

func (s PutRedactWithTxnIDEventRequestCapn) EventIDBytes() ([]byte, error)

func (PutRedactWithTxnIDEventRequestCapn) HasContent

func (PutRedactWithTxnIDEventRequestCapn) HasEventID

func (PutRedactWithTxnIDEventRequestCapn) HasReason

func (PutRedactWithTxnIDEventRequestCapn) HasRoomID

func (PutRedactWithTxnIDEventRequestCapn) HasTxnID

func (PutRedactWithTxnIDEventRequestCapn) Reason

func (PutRedactWithTxnIDEventRequestCapn) ReasonBytes

func (s PutRedactWithTxnIDEventRequestCapn) ReasonBytes() ([]byte, error)

func (PutRedactWithTxnIDEventRequestCapn) RoomID

func (PutRedactWithTxnIDEventRequestCapn) RoomIDBytes

func (s PutRedactWithTxnIDEventRequestCapn) RoomIDBytes() ([]byte, error)

func (PutRedactWithTxnIDEventRequestCapn) SetContent

func (s PutRedactWithTxnIDEventRequestCapn) SetContent(v []byte) error

func (PutRedactWithTxnIDEventRequestCapn) SetEventID

func (PutRedactWithTxnIDEventRequestCapn) SetReason

func (PutRedactWithTxnIDEventRequestCapn) SetRoomID

func (PutRedactWithTxnIDEventRequestCapn) SetTxnID

func (PutRedactWithTxnIDEventRequestCapn) String

func (PutRedactWithTxnIDEventRequestCapn) TxnID

func (PutRedactWithTxnIDEventRequestCapn) TxnIDBytes

func (s PutRedactWithTxnIDEventRequestCapn) TxnIDBytes() ([]byte, error)

type PutRedactWithTxnIDEventRequestCapn_List

type PutRedactWithTxnIDEventRequestCapn_List struct{ capnp.List }

PutRedactWithTxnIDEventRequestCapn_List is a list of PutRedactWithTxnIDEventRequestCapn.

func NewPutRedactWithTxnIDEventRequestCapn_List

func NewPutRedactWithTxnIDEventRequestCapn_List(s *capnp.Segment, sz int32) (PutRedactWithTxnIDEventRequestCapn_List, error)

NewPutRedactWithTxnIDEventRequestCapn creates a new list of PutRedactWithTxnIDEventRequestCapn.

func (PutRedactWithTxnIDEventRequestCapn_List) At

func (PutRedactWithTxnIDEventRequestCapn_List) Set

func (PutRedactWithTxnIDEventRequestCapn_List) String

type PutRedactWithTxnIDEventRequestCapn_Promise

type PutRedactWithTxnIDEventRequestCapn_Promise struct{ *capnp.Pipeline }

PutRedactWithTxnIDEventRequestCapn_Promise is a wrapper for a PutRedactWithTxnIDEventRequestCapn promised by a client call.

func (PutRedactWithTxnIDEventRequestCapn_Promise) Struct

type PutRoomAccountDataRequest

type PutRoomAccountDataRequest struct {
	UserId  string `json:"userId"`
	RoomID  string `json:"roomId"`
	Type    string `json:"type"`
	Content []byte `json:"content"`
}

PUT /_matrix/client/r0/user/{userId}/rooms/{roomId}/account_data/{type}

func (*PutRoomAccountDataRequest) Decode

func (externalReq *PutRoomAccountDataRequest) Decode(input []byte) error

func (*PutRoomAccountDataRequest) Encode

func (externalReq *PutRoomAccountDataRequest) Encode() ([]byte, error)

type PutRoomAccountDataRequestCapn

type PutRoomAccountDataRequestCapn struct{ capnp.Struct }

func NewPutRoomAccountDataRequestCapn

func NewPutRoomAccountDataRequestCapn(s *capnp.Segment) (PutRoomAccountDataRequestCapn, error)

func NewRootPutRoomAccountDataRequestCapn

func NewRootPutRoomAccountDataRequestCapn(s *capnp.Segment) (PutRoomAccountDataRequestCapn, error)

func ReadRootPutRoomAccountDataRequestCapn

func ReadRootPutRoomAccountDataRequestCapn(msg *capnp.Message) (PutRoomAccountDataRequestCapn, error)

func (PutRoomAccountDataRequestCapn) Content

func (s PutRoomAccountDataRequestCapn) Content() ([]byte, error)

func (PutRoomAccountDataRequestCapn) HasContent

func (s PutRoomAccountDataRequestCapn) HasContent() bool

func (PutRoomAccountDataRequestCapn) HasRoomID

func (s PutRoomAccountDataRequestCapn) HasRoomID() bool

func (PutRoomAccountDataRequestCapn) HasType

func (s PutRoomAccountDataRequestCapn) HasType() bool

func (PutRoomAccountDataRequestCapn) HasUserId

func (s PutRoomAccountDataRequestCapn) HasUserId() bool

func (PutRoomAccountDataRequestCapn) RoomID

func (PutRoomAccountDataRequestCapn) RoomIDBytes

func (s PutRoomAccountDataRequestCapn) RoomIDBytes() ([]byte, error)

func (PutRoomAccountDataRequestCapn) SetContent

func (s PutRoomAccountDataRequestCapn) SetContent(v []byte) error

func (PutRoomAccountDataRequestCapn) SetRoomID

func (PutRoomAccountDataRequestCapn) SetType

func (PutRoomAccountDataRequestCapn) SetUserId

func (PutRoomAccountDataRequestCapn) String

func (PutRoomAccountDataRequestCapn) Type

func (PutRoomAccountDataRequestCapn) TypeBytes

func (s PutRoomAccountDataRequestCapn) TypeBytes() ([]byte, error)

func (PutRoomAccountDataRequestCapn) UserId

func (PutRoomAccountDataRequestCapn) UserIdBytes

func (s PutRoomAccountDataRequestCapn) UserIdBytes() ([]byte, error)

type PutRoomAccountDataRequestCapn_List

type PutRoomAccountDataRequestCapn_List struct{ capnp.List }

PutRoomAccountDataRequestCapn_List is a list of PutRoomAccountDataRequestCapn.

func NewPutRoomAccountDataRequestCapn_List

func NewPutRoomAccountDataRequestCapn_List(s *capnp.Segment, sz int32) (PutRoomAccountDataRequestCapn_List, error)

NewPutRoomAccountDataRequestCapn creates a new list of PutRoomAccountDataRequestCapn.

func (PutRoomAccountDataRequestCapn_List) At

func (PutRoomAccountDataRequestCapn_List) Set

func (PutRoomAccountDataRequestCapn_List) String

type PutRoomAccountDataRequestCapn_Promise

type PutRoomAccountDataRequestCapn_Promise struct{ *capnp.Pipeline }

PutRoomAccountDataRequestCapn_Promise is a wrapper for a PutRoomAccountDataRequestCapn promised by a client call.

func (PutRoomAccountDataRequestCapn_Promise) Struct

type PutRoomStateByType

type PutRoomStateByType struct {
	RoomID    string `json:"roomId,omitempty"`
	EventType string `json:"eventType,omitempty"`
	Content   []byte `json:"content,omitempty"`
}

PUT /_matrix/client/r0/rooms/{roomId}/state/{eventType}

func (*PutRoomStateByType) Decode

func (externalReq *PutRoomStateByType) Decode(input []byte) error

func (*PutRoomStateByType) Encode

func (externalReq *PutRoomStateByType) Encode() ([]byte, error)

type PutRoomStateByTypeAndStateKey

type PutRoomStateByTypeAndStateKey struct {
	RoomID    string `json:"roomId,omitempty"`
	EventType string `json:"eventType,omitempty"`
	StateKey  string `json:"stateKey,omitempty"`
	Content   []byte `json:"content,omitempty"`
}

PUT /_matrix/client/r0/rooms/{roomId}/state/{eventType}/{stateKey}

func (*PutRoomStateByTypeAndStateKey) Decode

func (externalReq *PutRoomStateByTypeAndStateKey) Decode(input []byte) error

func (*PutRoomStateByTypeAndStateKey) Encode

func (externalReq *PutRoomStateByTypeAndStateKey) Encode() ([]byte, error)

type PutRoomStateByTypeAndStateKeyCapn

type PutRoomStateByTypeAndStateKeyCapn struct{ capnp.Struct }

func NewPutRoomStateByTypeAndStateKeyCapn

func NewPutRoomStateByTypeAndStateKeyCapn(s *capnp.Segment) (PutRoomStateByTypeAndStateKeyCapn, error)

func NewRootPutRoomStateByTypeAndStateKeyCapn

func NewRootPutRoomStateByTypeAndStateKeyCapn(s *capnp.Segment) (PutRoomStateByTypeAndStateKeyCapn, error)

func ReadRootPutRoomStateByTypeAndStateKeyCapn

func ReadRootPutRoomStateByTypeAndStateKeyCapn(msg *capnp.Message) (PutRoomStateByTypeAndStateKeyCapn, error)

func (PutRoomStateByTypeAndStateKeyCapn) Content

func (s PutRoomStateByTypeAndStateKeyCapn) Content() ([]byte, error)

func (PutRoomStateByTypeAndStateKeyCapn) EventType

func (PutRoomStateByTypeAndStateKeyCapn) EventTypeBytes

func (s PutRoomStateByTypeAndStateKeyCapn) EventTypeBytes() ([]byte, error)

func (PutRoomStateByTypeAndStateKeyCapn) HasContent

func (s PutRoomStateByTypeAndStateKeyCapn) HasContent() bool

func (PutRoomStateByTypeAndStateKeyCapn) HasEventType

func (s PutRoomStateByTypeAndStateKeyCapn) HasEventType() bool

func (PutRoomStateByTypeAndStateKeyCapn) HasRoomID

func (PutRoomStateByTypeAndStateKeyCapn) HasStateKey

func (s PutRoomStateByTypeAndStateKeyCapn) HasStateKey() bool

func (PutRoomStateByTypeAndStateKeyCapn) RoomID

func (PutRoomStateByTypeAndStateKeyCapn) RoomIDBytes

func (s PutRoomStateByTypeAndStateKeyCapn) RoomIDBytes() ([]byte, error)

func (PutRoomStateByTypeAndStateKeyCapn) SetContent

func (s PutRoomStateByTypeAndStateKeyCapn) SetContent(v []byte) error

func (PutRoomStateByTypeAndStateKeyCapn) SetEventType

func (PutRoomStateByTypeAndStateKeyCapn) SetRoomID

func (PutRoomStateByTypeAndStateKeyCapn) SetStateKey

func (PutRoomStateByTypeAndStateKeyCapn) StateKey

func (PutRoomStateByTypeAndStateKeyCapn) StateKeyBytes

func (s PutRoomStateByTypeAndStateKeyCapn) StateKeyBytes() ([]byte, error)

func (PutRoomStateByTypeAndStateKeyCapn) String

type PutRoomStateByTypeAndStateKeyCapn_List

type PutRoomStateByTypeAndStateKeyCapn_List struct{ capnp.List }

PutRoomStateByTypeAndStateKeyCapn_List is a list of PutRoomStateByTypeAndStateKeyCapn.

func NewPutRoomStateByTypeAndStateKeyCapn_List

func NewPutRoomStateByTypeAndStateKeyCapn_List(s *capnp.Segment, sz int32) (PutRoomStateByTypeAndStateKeyCapn_List, error)

NewPutRoomStateByTypeAndStateKeyCapn creates a new list of PutRoomStateByTypeAndStateKeyCapn.

func (PutRoomStateByTypeAndStateKeyCapn_List) At

func (PutRoomStateByTypeAndStateKeyCapn_List) Set

func (PutRoomStateByTypeAndStateKeyCapn_List) String

type PutRoomStateByTypeAndStateKeyCapn_Promise

type PutRoomStateByTypeAndStateKeyCapn_Promise struct{ *capnp.Pipeline }

PutRoomStateByTypeAndStateKeyCapn_Promise is a wrapper for a PutRoomStateByTypeAndStateKeyCapn promised by a client call.

func (PutRoomStateByTypeAndStateKeyCapn_Promise) Struct

type PutRoomStateByTypeCapn

type PutRoomStateByTypeCapn struct{ capnp.Struct }

func NewPutRoomStateByTypeCapn

func NewPutRoomStateByTypeCapn(s *capnp.Segment) (PutRoomStateByTypeCapn, error)

func NewRootPutRoomStateByTypeCapn

func NewRootPutRoomStateByTypeCapn(s *capnp.Segment) (PutRoomStateByTypeCapn, error)

func ReadRootPutRoomStateByTypeCapn

func ReadRootPutRoomStateByTypeCapn(msg *capnp.Message) (PutRoomStateByTypeCapn, error)

func (PutRoomStateByTypeCapn) Content

func (s PutRoomStateByTypeCapn) Content() ([]byte, error)

func (PutRoomStateByTypeCapn) EventType

func (s PutRoomStateByTypeCapn) EventType() (string, error)

func (PutRoomStateByTypeCapn) EventTypeBytes

func (s PutRoomStateByTypeCapn) EventTypeBytes() ([]byte, error)

func (PutRoomStateByTypeCapn) HasContent

func (s PutRoomStateByTypeCapn) HasContent() bool

func (PutRoomStateByTypeCapn) HasEventType

func (s PutRoomStateByTypeCapn) HasEventType() bool

func (PutRoomStateByTypeCapn) HasRoomID

func (s PutRoomStateByTypeCapn) HasRoomID() bool

func (PutRoomStateByTypeCapn) RoomID

func (s PutRoomStateByTypeCapn) RoomID() (string, error)

func (PutRoomStateByTypeCapn) RoomIDBytes

func (s PutRoomStateByTypeCapn) RoomIDBytes() ([]byte, error)

func (PutRoomStateByTypeCapn) SetContent

func (s PutRoomStateByTypeCapn) SetContent(v []byte) error

func (PutRoomStateByTypeCapn) SetEventType

func (s PutRoomStateByTypeCapn) SetEventType(v string) error

func (PutRoomStateByTypeCapn) SetRoomID

func (s PutRoomStateByTypeCapn) SetRoomID(v string) error

func (PutRoomStateByTypeCapn) String

func (s PutRoomStateByTypeCapn) String() string

type PutRoomStateByTypeCapn_List

type PutRoomStateByTypeCapn_List struct{ capnp.List }

PutRoomStateByTypeCapn_List is a list of PutRoomStateByTypeCapn.

func NewPutRoomStateByTypeCapn_List

func NewPutRoomStateByTypeCapn_List(s *capnp.Segment, sz int32) (PutRoomStateByTypeCapn_List, error)

NewPutRoomStateByTypeCapn creates a new list of PutRoomStateByTypeCapn.

func (PutRoomStateByTypeCapn_List) At

func (PutRoomStateByTypeCapn_List) Set

func (PutRoomStateByTypeCapn_List) String

type PutRoomStateByTypeCapn_Promise

type PutRoomStateByTypeCapn_Promise struct{ *capnp.Pipeline }

PutRoomStateByTypeCapn_Promise is a wrapper for a PutRoomStateByTypeCapn promised by a client call.

func (PutRoomStateByTypeCapn_Promise) Struct

type PutRoomStateByTypeResponse

type PutRoomStateByTypeResponse struct {
	EventID string `json:"event_id"`
}

respoonse

func (*PutRoomStateByTypeResponse) Decode

func (res *PutRoomStateByTypeResponse) Decode(input []byte) error

func (*PutRoomStateByTypeResponse) Encode

func (res *PutRoomStateByTypeResponse) Encode() ([]byte, error)

type PutRoomStateByTypeResponseCapn

type PutRoomStateByTypeResponseCapn struct{ capnp.Struct }

func NewPutRoomStateByTypeResponseCapn

func NewPutRoomStateByTypeResponseCapn(s *capnp.Segment) (PutRoomStateByTypeResponseCapn, error)

func NewRootPutRoomStateByTypeResponseCapn

func NewRootPutRoomStateByTypeResponseCapn(s *capnp.Segment) (PutRoomStateByTypeResponseCapn, error)

func ReadRootPutRoomStateByTypeResponseCapn

func ReadRootPutRoomStateByTypeResponseCapn(msg *capnp.Message) (PutRoomStateByTypeResponseCapn, error)

func (PutRoomStateByTypeResponseCapn) EventID

func (PutRoomStateByTypeResponseCapn) EventIDBytes

func (s PutRoomStateByTypeResponseCapn) EventIDBytes() ([]byte, error)

func (PutRoomStateByTypeResponseCapn) HasEventID

func (s PutRoomStateByTypeResponseCapn) HasEventID() bool

func (PutRoomStateByTypeResponseCapn) SetEventID

func (PutRoomStateByTypeResponseCapn) String

type PutRoomStateByTypeResponseCapn_List

type PutRoomStateByTypeResponseCapn_List struct{ capnp.List }

PutRoomStateByTypeResponseCapn_List is a list of PutRoomStateByTypeResponseCapn.

func NewPutRoomStateByTypeResponseCapn_List

func NewPutRoomStateByTypeResponseCapn_List(s *capnp.Segment, sz int32) (PutRoomStateByTypeResponseCapn_List, error)

NewPutRoomStateByTypeResponseCapn creates a new list of PutRoomStateByTypeResponseCapn.

func (PutRoomStateByTypeResponseCapn_List) At

func (PutRoomStateByTypeResponseCapn_List) Set

func (PutRoomStateByTypeResponseCapn_List) String

type PutRoomStateByTypeResponseCapn_Promise

type PutRoomStateByTypeResponseCapn_Promise struct{ *capnp.Pipeline }

PutRoomStateByTypeResponseCapn_Promise is a wrapper for a PutRoomStateByTypeResponseCapn promised by a client call.

func (PutRoomStateByTypeResponseCapn_Promise) Struct

type PutRoomStateByTypeWithTxnID

type PutRoomStateByTypeWithTxnID struct {
	RoomID    string `json:"roomId,omitempty"`
	EventType string `json:"eventType,omitempty"`
	StateKey  string `json:"stateKey,omitempty"`
	TxnID     string `json:"txnId,omitempty"`
	Content   []byte `json:"content,omitempty"`
	IP        string `json:"ip,omitempty"`
}

PUT /_matrix/client/r0/rooms/{roomId}/send/{eventType}/{txnId}

func (*PutRoomStateByTypeWithTxnID) Decode

func (externalReq *PutRoomStateByTypeWithTxnID) Decode(input []byte) error

func (*PutRoomStateByTypeWithTxnID) Encode

func (externalReq *PutRoomStateByTypeWithTxnID) Encode() ([]byte, error)

type PutRoomStateByTypeWithTxnIDCapn

type PutRoomStateByTypeWithTxnIDCapn struct{ capnp.Struct }

func NewPutRoomStateByTypeWithTxnIDCapn

func NewPutRoomStateByTypeWithTxnIDCapn(s *capnp.Segment) (PutRoomStateByTypeWithTxnIDCapn, error)

func NewRootPutRoomStateByTypeWithTxnIDCapn

func NewRootPutRoomStateByTypeWithTxnIDCapn(s *capnp.Segment) (PutRoomStateByTypeWithTxnIDCapn, error)

func ReadRootPutRoomStateByTypeWithTxnIDCapn

func ReadRootPutRoomStateByTypeWithTxnIDCapn(msg *capnp.Message) (PutRoomStateByTypeWithTxnIDCapn, error)

func (PutRoomStateByTypeWithTxnIDCapn) Content

func (s PutRoomStateByTypeWithTxnIDCapn) Content() ([]byte, error)

func (PutRoomStateByTypeWithTxnIDCapn) EventType

func (s PutRoomStateByTypeWithTxnIDCapn) EventType() (string, error)

func (PutRoomStateByTypeWithTxnIDCapn) EventTypeBytes

func (s PutRoomStateByTypeWithTxnIDCapn) EventTypeBytes() ([]byte, error)

func (PutRoomStateByTypeWithTxnIDCapn) HasContent

func (s PutRoomStateByTypeWithTxnIDCapn) HasContent() bool

func (PutRoomStateByTypeWithTxnIDCapn) HasEventType

func (s PutRoomStateByTypeWithTxnIDCapn) HasEventType() bool

func (PutRoomStateByTypeWithTxnIDCapn) HasIp

func (PutRoomStateByTypeWithTxnIDCapn) HasRoomID

func (s PutRoomStateByTypeWithTxnIDCapn) HasRoomID() bool

func (PutRoomStateByTypeWithTxnIDCapn) HasStateKey

func (s PutRoomStateByTypeWithTxnIDCapn) HasStateKey() bool

func (PutRoomStateByTypeWithTxnIDCapn) HasTxnID

func (PutRoomStateByTypeWithTxnIDCapn) Ip

func (PutRoomStateByTypeWithTxnIDCapn) IpBytes

func (s PutRoomStateByTypeWithTxnIDCapn) IpBytes() ([]byte, error)

func (PutRoomStateByTypeWithTxnIDCapn) RoomID

func (PutRoomStateByTypeWithTxnIDCapn) RoomIDBytes

func (s PutRoomStateByTypeWithTxnIDCapn) RoomIDBytes() ([]byte, error)

func (PutRoomStateByTypeWithTxnIDCapn) SetContent

func (s PutRoomStateByTypeWithTxnIDCapn) SetContent(v []byte) error

func (PutRoomStateByTypeWithTxnIDCapn) SetEventType

func (s PutRoomStateByTypeWithTxnIDCapn) SetEventType(v string) error

func (PutRoomStateByTypeWithTxnIDCapn) SetIp

func (PutRoomStateByTypeWithTxnIDCapn) SetRoomID

func (PutRoomStateByTypeWithTxnIDCapn) SetStateKey

func (s PutRoomStateByTypeWithTxnIDCapn) SetStateKey(v string) error

func (PutRoomStateByTypeWithTxnIDCapn) SetTxnID

func (PutRoomStateByTypeWithTxnIDCapn) StateKey

func (PutRoomStateByTypeWithTxnIDCapn) StateKeyBytes

func (s PutRoomStateByTypeWithTxnIDCapn) StateKeyBytes() ([]byte, error)

func (PutRoomStateByTypeWithTxnIDCapn) String

func (PutRoomStateByTypeWithTxnIDCapn) TxnID

func (PutRoomStateByTypeWithTxnIDCapn) TxnIDBytes

func (s PutRoomStateByTypeWithTxnIDCapn) TxnIDBytes() ([]byte, error)

type PutRoomStateByTypeWithTxnIDCapn_List

type PutRoomStateByTypeWithTxnIDCapn_List struct{ capnp.List }

PutRoomStateByTypeWithTxnIDCapn_List is a list of PutRoomStateByTypeWithTxnIDCapn.

func NewPutRoomStateByTypeWithTxnIDCapn_List

func NewPutRoomStateByTypeWithTxnIDCapn_List(s *capnp.Segment, sz int32) (PutRoomStateByTypeWithTxnIDCapn_List, error)

NewPutRoomStateByTypeWithTxnIDCapn creates a new list of PutRoomStateByTypeWithTxnIDCapn.

func (PutRoomStateByTypeWithTxnIDCapn_List) At

func (PutRoomStateByTypeWithTxnIDCapn_List) Set

func (PutRoomStateByTypeWithTxnIDCapn_List) String

type PutRoomStateByTypeWithTxnIDCapn_Promise

type PutRoomStateByTypeWithTxnIDCapn_Promise struct{ *capnp.Pipeline }

PutRoomStateByTypeWithTxnIDCapn_Promise is a wrapper for a PutRoomStateByTypeWithTxnIDCapn promised by a client call.

func (PutRoomStateByTypeWithTxnIDCapn_Promise) Struct

type PutRoomStateByTypeWithTxnIDResponse

type PutRoomStateByTypeWithTxnIDResponse struct {
	EventID string `json:"event_id"`
}

response

func (*PutRoomStateByTypeWithTxnIDResponse) Decode

func (res *PutRoomStateByTypeWithTxnIDResponse) Decode(input []byte) error

func (*PutRoomStateByTypeWithTxnIDResponse) Encode

func (res *PutRoomStateByTypeWithTxnIDResponse) Encode() ([]byte, error)

type PutRoomStateByTypeWithTxnIDResponseCapn

type PutRoomStateByTypeWithTxnIDResponseCapn struct{ capnp.Struct }

func NewPutRoomStateByTypeWithTxnIDResponseCapn

func NewPutRoomStateByTypeWithTxnIDResponseCapn(s *capnp.Segment) (PutRoomStateByTypeWithTxnIDResponseCapn, error)

func NewRootPutRoomStateByTypeWithTxnIDResponseCapn

func NewRootPutRoomStateByTypeWithTxnIDResponseCapn(s *capnp.Segment) (PutRoomStateByTypeWithTxnIDResponseCapn, error)

func ReadRootPutRoomStateByTypeWithTxnIDResponseCapn

func ReadRootPutRoomStateByTypeWithTxnIDResponseCapn(msg *capnp.Message) (PutRoomStateByTypeWithTxnIDResponseCapn, error)

func (PutRoomStateByTypeWithTxnIDResponseCapn) EventID

func (PutRoomStateByTypeWithTxnIDResponseCapn) EventIDBytes

func (s PutRoomStateByTypeWithTxnIDResponseCapn) EventIDBytes() ([]byte, error)

func (PutRoomStateByTypeWithTxnIDResponseCapn) HasEventID

func (PutRoomStateByTypeWithTxnIDResponseCapn) SetEventID

func (PutRoomStateByTypeWithTxnIDResponseCapn) String

type PutRoomStateByTypeWithTxnIDResponseCapn_List

type PutRoomStateByTypeWithTxnIDResponseCapn_List struct{ capnp.List }

PutRoomStateByTypeWithTxnIDResponseCapn_List is a list of PutRoomStateByTypeWithTxnIDResponseCapn.

func NewPutRoomStateByTypeWithTxnIDResponseCapn_List

func NewPutRoomStateByTypeWithTxnIDResponseCapn_List(s *capnp.Segment, sz int32) (PutRoomStateByTypeWithTxnIDResponseCapn_List, error)

NewPutRoomStateByTypeWithTxnIDResponseCapn creates a new list of PutRoomStateByTypeWithTxnIDResponseCapn.

func (PutRoomStateByTypeWithTxnIDResponseCapn_List) At

func (PutRoomStateByTypeWithTxnIDResponseCapn_List) Set

func (PutRoomStateByTypeWithTxnIDResponseCapn_List) String

type PutRoomStateByTypeWithTxnIDResponseCapn_Promise

type PutRoomStateByTypeWithTxnIDResponseCapn_Promise struct{ *capnp.Pipeline }

PutRoomStateByTypeWithTxnIDResponseCapn_Promise is a wrapper for a PutRoomStateByTypeWithTxnIDResponseCapn promised by a client call.

func (PutRoomStateByTypeWithTxnIDResponseCapn_Promise) Struct

type PutRoomStateResponse

type PutRoomStateResponse struct {
	EventID string `json:"event_id,omitempty"`
}

func (*PutRoomStateResponse) Decode

func (res *PutRoomStateResponse) Decode(input []byte) error

func (*PutRoomStateResponse) Encode

func (res *PutRoomStateResponse) Encode() ([]byte, error)

type PutRoomStateResponseCapn

type PutRoomStateResponseCapn struct{ capnp.Struct }

func NewPutRoomStateResponseCapn

func NewPutRoomStateResponseCapn(s *capnp.Segment) (PutRoomStateResponseCapn, error)

func NewRootPutRoomStateResponseCapn

func NewRootPutRoomStateResponseCapn(s *capnp.Segment) (PutRoomStateResponseCapn, error)

func ReadRootPutRoomStateResponseCapn

func ReadRootPutRoomStateResponseCapn(msg *capnp.Message) (PutRoomStateResponseCapn, error)

func (PutRoomStateResponseCapn) EventID

func (s PutRoomStateResponseCapn) EventID() (string, error)

func (PutRoomStateResponseCapn) EventIDBytes

func (s PutRoomStateResponseCapn) EventIDBytes() ([]byte, error)

func (PutRoomStateResponseCapn) HasEventID

func (s PutRoomStateResponseCapn) HasEventID() bool

func (PutRoomStateResponseCapn) SetEventID

func (s PutRoomStateResponseCapn) SetEventID(v string) error

func (PutRoomStateResponseCapn) String

func (s PutRoomStateResponseCapn) String() string

type PutRoomStateResponseCapn_List

type PutRoomStateResponseCapn_List struct{ capnp.List }

PutRoomStateResponseCapn_List is a list of PutRoomStateResponseCapn.

func NewPutRoomStateResponseCapn_List

func NewPutRoomStateResponseCapn_List(s *capnp.Segment, sz int32) (PutRoomStateResponseCapn_List, error)

NewPutRoomStateResponseCapn creates a new list of PutRoomStateResponseCapn.

func (PutRoomStateResponseCapn_List) At

func (PutRoomStateResponseCapn_List) Set

func (PutRoomStateResponseCapn_List) String

type PutRoomStateResponseCapn_Promise

type PutRoomStateResponseCapn_Promise struct{ *capnp.Pipeline }

PutRoomStateResponseCapn_Promise is a wrapper for a PutRoomStateResponseCapn promised by a client call.

func (PutRoomStateResponseCapn_Promise) Struct

type PutRoomUserTypingRequest

type PutRoomUserTypingRequest struct {
	UserID  string `json:"userId"`
	RoomID  string `json:"roomId"`
	Typing  bool   `json:"typing"`
	TimeOut int    `json:"timeout"`
}

PUT /_matrix/client/r0/rooms/{roomId}/typing/{userId}

func (*PutRoomUserTypingRequest) Decode

func (externalReq *PutRoomUserTypingRequest) Decode(input []byte) error

func (*PutRoomUserTypingRequest) Encode

func (externalReq *PutRoomUserTypingRequest) Encode() ([]byte, error)

type PutRoomUserTypingRequestCapn

type PutRoomUserTypingRequestCapn struct{ capnp.Struct }

func NewPutRoomUserTypingRequestCapn

func NewPutRoomUserTypingRequestCapn(s *capnp.Segment) (PutRoomUserTypingRequestCapn, error)

func NewRootPutRoomUserTypingRequestCapn

func NewRootPutRoomUserTypingRequestCapn(s *capnp.Segment) (PutRoomUserTypingRequestCapn, error)

func ReadRootPutRoomUserTypingRequestCapn

func ReadRootPutRoomUserTypingRequestCapn(msg *capnp.Message) (PutRoomUserTypingRequestCapn, error)

func (PutRoomUserTypingRequestCapn) HasRoomID

func (s PutRoomUserTypingRequestCapn) HasRoomID() bool

func (PutRoomUserTypingRequestCapn) HasUserID

func (s PutRoomUserTypingRequestCapn) HasUserID() bool

func (PutRoomUserTypingRequestCapn) RoomID

func (PutRoomUserTypingRequestCapn) RoomIDBytes

func (s PutRoomUserTypingRequestCapn) RoomIDBytes() ([]byte, error)

func (PutRoomUserTypingRequestCapn) SetRoomID

func (s PutRoomUserTypingRequestCapn) SetRoomID(v string) error

func (PutRoomUserTypingRequestCapn) SetTimeOut

func (s PutRoomUserTypingRequestCapn) SetTimeOut(v int64)

func (PutRoomUserTypingRequestCapn) SetTyping

func (s PutRoomUserTypingRequestCapn) SetTyping(v bool)

func (PutRoomUserTypingRequestCapn) SetUserID

func (s PutRoomUserTypingRequestCapn) SetUserID(v string) error

func (PutRoomUserTypingRequestCapn) String

func (PutRoomUserTypingRequestCapn) TimeOut

func (s PutRoomUserTypingRequestCapn) TimeOut() int64

func (PutRoomUserTypingRequestCapn) Typing

func (PutRoomUserTypingRequestCapn) UserID

func (PutRoomUserTypingRequestCapn) UserIDBytes

func (s PutRoomUserTypingRequestCapn) UserIDBytes() ([]byte, error)

type PutRoomUserTypingRequestCapn_List

type PutRoomUserTypingRequestCapn_List struct{ capnp.List }

PutRoomUserTypingRequestCapn_List is a list of PutRoomUserTypingRequestCapn.

func NewPutRoomUserTypingRequestCapn_List

func NewPutRoomUserTypingRequestCapn_List(s *capnp.Segment, sz int32) (PutRoomUserTypingRequestCapn_List, error)

NewPutRoomUserTypingRequestCapn creates a new list of PutRoomUserTypingRequestCapn.

func (PutRoomUserTypingRequestCapn_List) At

func (PutRoomUserTypingRequestCapn_List) Set

func (PutRoomUserTypingRequestCapn_List) String

type PutRoomUserTypingRequestCapn_Promise

type PutRoomUserTypingRequestCapn_Promise struct{ *capnp.Pipeline }

PutRoomUserTypingRequestCapn_Promise is a wrapper for a PutRoomUserTypingRequestCapn promised by a client call.

func (PutRoomUserTypingRequestCapn_Promise) Struct

type PutRoomsTagsByIDRequest

type PutRoomsTagsByIDRequest struct {
	UserId string `json:"userId"`
	RoomId string `json:"roomId"`
	Tag    string `json:"tag"`
	//Order   string `json:"order"`
	Content []byte `json:"contentBytes"`
}

PUT /_matrix/client/r0/user/{userId}/rooms/{roomId}/tags/{tag}

func (*PutRoomsTagsByIDRequest) Decode

func (externalReq *PutRoomsTagsByIDRequest) Decode(input []byte) error

func (*PutRoomsTagsByIDRequest) Encode

func (externalReq *PutRoomsTagsByIDRequest) Encode() ([]byte, error)

type PutRoomsTagsByIDRequestCapn

type PutRoomsTagsByIDRequestCapn struct{ capnp.Struct }

func NewPutRoomsTagsByIDRequestCapn

func NewPutRoomsTagsByIDRequestCapn(s *capnp.Segment) (PutRoomsTagsByIDRequestCapn, error)

func NewRootPutRoomsTagsByIDRequestCapn

func NewRootPutRoomsTagsByIDRequestCapn(s *capnp.Segment) (PutRoomsTagsByIDRequestCapn, error)

func ReadRootPutRoomsTagsByIDRequestCapn

func ReadRootPutRoomsTagsByIDRequestCapn(msg *capnp.Message) (PutRoomsTagsByIDRequestCapn, error)

func (PutRoomsTagsByIDRequestCapn) Content

func (s PutRoomsTagsByIDRequestCapn) Content() ([]byte, error)

func (PutRoomsTagsByIDRequestCapn) HasContent

func (s PutRoomsTagsByIDRequestCapn) HasContent() bool

func (PutRoomsTagsByIDRequestCapn) HasRoomId

func (s PutRoomsTagsByIDRequestCapn) HasRoomId() bool

func (PutRoomsTagsByIDRequestCapn) HasTag

func (s PutRoomsTagsByIDRequestCapn) HasTag() bool

func (PutRoomsTagsByIDRequestCapn) HasUserId

func (s PutRoomsTagsByIDRequestCapn) HasUserId() bool

func (PutRoomsTagsByIDRequestCapn) Order

func (PutRoomsTagsByIDRequestCapn) RoomId

func (PutRoomsTagsByIDRequestCapn) RoomIdBytes

func (s PutRoomsTagsByIDRequestCapn) RoomIdBytes() ([]byte, error)

func (PutRoomsTagsByIDRequestCapn) SetContent

func (s PutRoomsTagsByIDRequestCapn) SetContent(v []byte) error

func (PutRoomsTagsByIDRequestCapn) SetOrder

func (s PutRoomsTagsByIDRequestCapn) SetOrder(v float32)

func (PutRoomsTagsByIDRequestCapn) SetRoomId

func (s PutRoomsTagsByIDRequestCapn) SetRoomId(v string) error

func (PutRoomsTagsByIDRequestCapn) SetTag

func (PutRoomsTagsByIDRequestCapn) SetUserId

func (s PutRoomsTagsByIDRequestCapn) SetUserId(v string) error

func (PutRoomsTagsByIDRequestCapn) String

func (PutRoomsTagsByIDRequestCapn) Tag

func (PutRoomsTagsByIDRequestCapn) TagBytes

func (s PutRoomsTagsByIDRequestCapn) TagBytes() ([]byte, error)

func (PutRoomsTagsByIDRequestCapn) UserId

func (PutRoomsTagsByIDRequestCapn) UserIdBytes

func (s PutRoomsTagsByIDRequestCapn) UserIdBytes() ([]byte, error)

type PutRoomsTagsByIDRequestCapn_List

type PutRoomsTagsByIDRequestCapn_List struct{ capnp.List }

PutRoomsTagsByIDRequestCapn_List is a list of PutRoomsTagsByIDRequestCapn.

func NewPutRoomsTagsByIDRequestCapn_List

func NewPutRoomsTagsByIDRequestCapn_List(s *capnp.Segment, sz int32) (PutRoomsTagsByIDRequestCapn_List, error)

NewPutRoomsTagsByIDRequestCapn creates a new list of PutRoomsTagsByIDRequestCapn.

func (PutRoomsTagsByIDRequestCapn_List) At

func (PutRoomsTagsByIDRequestCapn_List) Set

func (PutRoomsTagsByIDRequestCapn_List) String

type PutRoomsTagsByIDRequestCapn_Promise

type PutRoomsTagsByIDRequestCapn_Promise struct{ *capnp.Pipeline }

PutRoomsTagsByIDRequestCapn_Promise is a wrapper for a PutRoomsTagsByIDRequestCapn promised by a client call.

func (PutRoomsTagsByIDRequestCapn_Promise) Struct

type PutSendJoinRequest

type PutSendJoinRequest struct {
	RoomID  string                  `json:"roomId"`
	EventID string                  `json:"eventId"`
	Event   gomatrixserverlib.Event `json:"event"`
}

func (*PutSendJoinRequest) Decode

func (externalReq *PutSendJoinRequest) Decode(data []byte) error

func (*PutSendJoinRequest) Encode

func (externalReq *PutSendJoinRequest) Encode() ([]byte, error)

type PutSendJoinResponseRoomState

type PutSendJoinResponseRoomState struct {
	Origin    string                    `json:"origin"`
	AuthChain []gomatrixserverlib.Event `json:"auth_chain"`
	State     []gomatrixserverlib.Event `json:"state"`
}

type PutSendLeaveRequest

type PutSendLeaveRequest struct {
	RoomID  string                  `json:"roomId"`
	EventID string                  `json:"eventId"`
	Event   gomatrixserverlib.Event `json:"event"`
}

func (*PutSendLeaveRequest) Decode

func (externalReq *PutSendLeaveRequest) Decode(data []byte) error

func (*PutSendLeaveRequest) Encode

func (externalReq *PutSendLeaveRequest) Encode() ([]byte, error)

type PutSendToDeviceRequest

type PutSendToDeviceRequest struct {
	EventType string `json:"eventType"`
	TxnId     string `json:"txnId"`
	//Messages  map[string]map[string]interface{} `json:"messages"`
	Content []byte `json:"content"`
}

PUT /_matrix/client/r0/sendToDevice/{eventType}/{txnId}

func (*PutSendToDeviceRequest) Decode

func (externalReq *PutSendToDeviceRequest) Decode(input []byte) error

func (*PutSendToDeviceRequest) Encode

func (externalReq *PutSendToDeviceRequest) Encode() ([]byte, error)

type PutUserAccountDataRequest

type PutUserAccountDataRequest struct {
	UserId  string `json:"userId"`
	Type    string `json:"type"`
	Content []byte `json:"content"`
}

PUT /_matrix/client/r0/user/{userId}/account_data/{type}

func (*PutUserAccountDataRequest) Decode

func (externalReq *PutUserAccountDataRequest) Decode(input []byte) error

func (*PutUserAccountDataRequest) Encode

func (externalReq *PutUserAccountDataRequest) Encode() ([]byte, error)

type PutUserAccountDataRequestCapn

type PutUserAccountDataRequestCapn struct{ capnp.Struct }

func NewPutUserAccountDataRequestCapn

func NewPutUserAccountDataRequestCapn(s *capnp.Segment) (PutUserAccountDataRequestCapn, error)

func NewRootPutUserAccountDataRequestCapn

func NewRootPutUserAccountDataRequestCapn(s *capnp.Segment) (PutUserAccountDataRequestCapn, error)

func ReadRootPutUserAccountDataRequestCapn

func ReadRootPutUserAccountDataRequestCapn(msg *capnp.Message) (PutUserAccountDataRequestCapn, error)

func (PutUserAccountDataRequestCapn) Content

func (s PutUserAccountDataRequestCapn) Content() ([]byte, error)

func (PutUserAccountDataRequestCapn) HasContent

func (s PutUserAccountDataRequestCapn) HasContent() bool

func (PutUserAccountDataRequestCapn) HasType

func (s PutUserAccountDataRequestCapn) HasType() bool

func (PutUserAccountDataRequestCapn) HasUserId

func (s PutUserAccountDataRequestCapn) HasUserId() bool

func (PutUserAccountDataRequestCapn) SetContent

func (s PutUserAccountDataRequestCapn) SetContent(v []byte) error

func (PutUserAccountDataRequestCapn) SetType

func (PutUserAccountDataRequestCapn) SetUserId

func (PutUserAccountDataRequestCapn) String

func (PutUserAccountDataRequestCapn) Type

func (PutUserAccountDataRequestCapn) TypeBytes

func (s PutUserAccountDataRequestCapn) TypeBytes() ([]byte, error)

func (PutUserAccountDataRequestCapn) UserId

func (PutUserAccountDataRequestCapn) UserIdBytes

func (s PutUserAccountDataRequestCapn) UserIdBytes() ([]byte, error)

type PutUserAccountDataRequestCapn_List

type PutUserAccountDataRequestCapn_List struct{ capnp.List }

PutUserAccountDataRequestCapn_List is a list of PutUserAccountDataRequestCapn.

func NewPutUserAccountDataRequestCapn_List

func NewPutUserAccountDataRequestCapn_List(s *capnp.Segment, sz int32) (PutUserAccountDataRequestCapn_List, error)

NewPutUserAccountDataRequestCapn creates a new list of PutUserAccountDataRequestCapn.

func (PutUserAccountDataRequestCapn_List) At

func (PutUserAccountDataRequestCapn_List) Set

func (PutUserAccountDataRequestCapn_List) String

type PutUserAccountDataRequestCapn_Promise

type PutUserAccountDataRequestCapn_Promise struct{ *capnp.Pipeline }

PutUserAccountDataRequestCapn_Promise is a wrapper for a PutUserAccountDataRequestCapn promised by a client call.

func (PutUserAccountDataRequestCapn_Promise) Struct

type PutUserInfoRequest

type PutUserInfoRequest 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"`
}

PUT /_matrix/client/r0/user_info/{userID}

func (*PutUserInfoRequest) Decode

func (externalReq *PutUserInfoRequest) Decode(data []byte) error

func (*PutUserInfoRequest) Encode

func (externalReq *PutUserInfoRequest) Encode() ([]byte, error)

type PutUserPresenceRequest

type PutUserPresenceRequest struct {
	UserID   string `json:"userId"`
	Presence string `json:"presence"`
	Status   string `json:"status_msg"`
}

PUT /_matrix/client/r0/presence/{userId}/status

type PutUserPresenceRequestCapn

type PutUserPresenceRequestCapn struct{ capnp.Struct }

func NewPutUserPresenceRequestCapn

func NewPutUserPresenceRequestCapn(s *capnp.Segment) (PutUserPresenceRequestCapn, error)

func NewRootPutUserPresenceRequestCapn

func NewRootPutUserPresenceRequestCapn(s *capnp.Segment) (PutUserPresenceRequestCapn, error)

func ReadRootPutUserPresenceRequestCapn

func ReadRootPutUserPresenceRequestCapn(msg *capnp.Message) (PutUserPresenceRequestCapn, error)

func (PutUserPresenceRequestCapn) HasPresence

func (s PutUserPresenceRequestCapn) HasPresence() bool

func (PutUserPresenceRequestCapn) HasStatus

func (s PutUserPresenceRequestCapn) HasStatus() bool

func (PutUserPresenceRequestCapn) HasUserID

func (s PutUserPresenceRequestCapn) HasUserID() bool

func (PutUserPresenceRequestCapn) Presence

func (s PutUserPresenceRequestCapn) Presence() (string, error)

func (PutUserPresenceRequestCapn) PresenceBytes

func (s PutUserPresenceRequestCapn) PresenceBytes() ([]byte, error)

func (PutUserPresenceRequestCapn) SetPresence

func (s PutUserPresenceRequestCapn) SetPresence(v string) error

func (PutUserPresenceRequestCapn) SetStatus

func (s PutUserPresenceRequestCapn) SetStatus(v string) error

func (PutUserPresenceRequestCapn) SetUserID

func (s PutUserPresenceRequestCapn) SetUserID(v string) error

func (PutUserPresenceRequestCapn) Status

func (s PutUserPresenceRequestCapn) Status() (string, error)

func (PutUserPresenceRequestCapn) StatusBytes

func (s PutUserPresenceRequestCapn) StatusBytes() ([]byte, error)

func (PutUserPresenceRequestCapn) String

func (PutUserPresenceRequestCapn) UserID

func (s PutUserPresenceRequestCapn) UserID() (string, error)

func (PutUserPresenceRequestCapn) UserIDBytes

func (s PutUserPresenceRequestCapn) UserIDBytes() ([]byte, error)

type PutUserPresenceRequestCapn_List

type PutUserPresenceRequestCapn_List struct{ capnp.List }

PutUserPresenceRequestCapn_List is a list of PutUserPresenceRequestCapn.

func NewPutUserPresenceRequestCapn_List

func NewPutUserPresenceRequestCapn_List(s *capnp.Segment, sz int32) (PutUserPresenceRequestCapn_List, error)

NewPutUserPresenceRequestCapn creates a new list of PutUserPresenceRequestCapn.

func (PutUserPresenceRequestCapn_List) At

func (PutUserPresenceRequestCapn_List) Set

func (PutUserPresenceRequestCapn_List) String

type PutUserPresenceRequestCapn_Promise

type PutUserPresenceRequestCapn_Promise struct{ *capnp.Pipeline }

PutUserPresenceRequestCapn_Promise is a wrapper for a PutUserPresenceRequestCapn promised by a client call.

func (PutUserPresenceRequestCapn_Promise) Struct

type PutUserProfileAvatarURLRequest

type PutUserProfileAvatarURLRequest struct {
	UserID    string `json:"user_id"`
	AvatarURL string `json:"avatar_url"`
}

PUT /_matrix/client/r0/profile/{userId}/avatar_url

type PutUserProfileAvatarURLRequestCapn

type PutUserProfileAvatarURLRequestCapn struct{ capnp.Struct }

func NewPutUserProfileAvatarURLRequestCapn

func NewPutUserProfileAvatarURLRequestCapn(s *capnp.Segment) (PutUserProfileAvatarURLRequestCapn, error)

func NewRootPutUserProfileAvatarURLRequestCapn

func NewRootPutUserProfileAvatarURLRequestCapn(s *capnp.Segment) (PutUserProfileAvatarURLRequestCapn, error)

func ReadRootPutUserProfileAvatarURLRequestCapn

func ReadRootPutUserProfileAvatarURLRequestCapn(msg *capnp.Message) (PutUserProfileAvatarURLRequestCapn, error)

func (PutUserProfileAvatarURLRequestCapn) AvatarURL

func (PutUserProfileAvatarURLRequestCapn) AvatarURLBytes

func (s PutUserProfileAvatarURLRequestCapn) AvatarURLBytes() ([]byte, error)

func (PutUserProfileAvatarURLRequestCapn) HasAvatarURL

func (s PutUserProfileAvatarURLRequestCapn) HasAvatarURL() bool

func (PutUserProfileAvatarURLRequestCapn) HasUserID

func (PutUserProfileAvatarURLRequestCapn) SetAvatarURL

func (PutUserProfileAvatarURLRequestCapn) SetUserID

func (PutUserProfileAvatarURLRequestCapn) String

func (PutUserProfileAvatarURLRequestCapn) UserID

func (PutUserProfileAvatarURLRequestCapn) UserIDBytes

func (s PutUserProfileAvatarURLRequestCapn) UserIDBytes() ([]byte, error)

type PutUserProfileAvatarURLRequestCapn_List

type PutUserProfileAvatarURLRequestCapn_List struct{ capnp.List }

PutUserProfileAvatarURLRequestCapn_List is a list of PutUserProfileAvatarURLRequestCapn.

func NewPutUserProfileAvatarURLRequestCapn_List

func NewPutUserProfileAvatarURLRequestCapn_List(s *capnp.Segment, sz int32) (PutUserProfileAvatarURLRequestCapn_List, error)

NewPutUserProfileAvatarURLRequestCapn creates a new list of PutUserProfileAvatarURLRequestCapn.

func (PutUserProfileAvatarURLRequestCapn_List) At

func (PutUserProfileAvatarURLRequestCapn_List) Set

func (PutUserProfileAvatarURLRequestCapn_List) String

type PutUserProfileAvatarURLRequestCapn_Promise

type PutUserProfileAvatarURLRequestCapn_Promise struct{ *capnp.Pipeline }

PutUserProfileAvatarURLRequestCapn_Promise is a wrapper for a PutUserProfileAvatarURLRequestCapn promised by a client call.

func (PutUserProfileAvatarURLRequestCapn_Promise) Struct

type PutUserProfileDisplayNameRequest

type PutUserProfileDisplayNameRequest struct {
	UserID      string `json:"user_id"`
	DisplayName string `json:"display_name"`
}

PUT /_matrix/client/r0/profile/{userId}/displayname

type PutUserProfileDisplayNameRequestCapn

type PutUserProfileDisplayNameRequestCapn struct{ capnp.Struct }

func NewPutUserProfileDisplayNameRequestCapn

func NewPutUserProfileDisplayNameRequestCapn(s *capnp.Segment) (PutUserProfileDisplayNameRequestCapn, error)

func NewRootPutUserProfileDisplayNameRequestCapn

func NewRootPutUserProfileDisplayNameRequestCapn(s *capnp.Segment) (PutUserProfileDisplayNameRequestCapn, error)

func ReadRootPutUserProfileDisplayNameRequestCapn

func ReadRootPutUserProfileDisplayNameRequestCapn(msg *capnp.Message) (PutUserProfileDisplayNameRequestCapn, error)

func (PutUserProfileDisplayNameRequestCapn) DisplayName

func (PutUserProfileDisplayNameRequestCapn) DisplayNameBytes

func (s PutUserProfileDisplayNameRequestCapn) DisplayNameBytes() ([]byte, error)

func (PutUserProfileDisplayNameRequestCapn) HasDisplayName

func (s PutUserProfileDisplayNameRequestCapn) HasDisplayName() bool

func (PutUserProfileDisplayNameRequestCapn) HasUserID

func (PutUserProfileDisplayNameRequestCapn) SetDisplayName

func (PutUserProfileDisplayNameRequestCapn) SetUserID

func (PutUserProfileDisplayNameRequestCapn) String

func (PutUserProfileDisplayNameRequestCapn) UserID

func (PutUserProfileDisplayNameRequestCapn) UserIDBytes

func (s PutUserProfileDisplayNameRequestCapn) UserIDBytes() ([]byte, error)

type PutUserProfileDisplayNameRequestCapn_List

type PutUserProfileDisplayNameRequestCapn_List struct{ capnp.List }

PutUserProfileDisplayNameRequestCapn_List is a list of PutUserProfileDisplayNameRequestCapn.

func NewPutUserProfileDisplayNameRequestCapn_List

func NewPutUserProfileDisplayNameRequestCapn_List(s *capnp.Segment, sz int32) (PutUserProfileDisplayNameRequestCapn_List, error)

NewPutUserProfileDisplayNameRequestCapn creates a new list of PutUserProfileDisplayNameRequestCapn.

func (PutUserProfileDisplayNameRequestCapn_List) At

func (PutUserProfileDisplayNameRequestCapn_List) Set

func (PutUserProfileDisplayNameRequestCapn_List) String

type PutUserProfileDisplayNameRequestCapn_Promise

type PutUserProfileDisplayNameRequestCapn_Promise struct{ *capnp.Pipeline }

PutUserProfileDisplayNameRequestCapn_Promise is a wrapper for a PutUserProfileDisplayNameRequestCapn promised by a client call.

func (PutUserProfileDisplayNameRequestCapn_Promise) Struct

type RegisterResponse

type RegisterResponse struct {
	UserID      string `json:"user_id"`
	AccessToken string `json:"access_token"`
	HomeServer  string `json:"home_server"`
	DeviceID    string `json:"device_id"`
}

response

func (*RegisterResponse) Decode

func (res *RegisterResponse) Decode(input []byte) error

func (*RegisterResponse) Encode

func (res *RegisterResponse) Encode() ([]byte, error)

type RegisterResponseCapn

type RegisterResponseCapn struct{ capnp.Struct }

func NewRegisterResponseCapn

func NewRegisterResponseCapn(s *capnp.Segment) (RegisterResponseCapn, error)

func NewRootRegisterResponseCapn

func NewRootRegisterResponseCapn(s *capnp.Segment) (RegisterResponseCapn, error)

func ReadRootRegisterResponseCapn

func ReadRootRegisterResponseCapn(msg *capnp.Message) (RegisterResponseCapn, error)

func (RegisterResponseCapn) AccessToken

func (s RegisterResponseCapn) AccessToken() (string, error)

func (RegisterResponseCapn) AccessTokenBytes

func (s RegisterResponseCapn) AccessTokenBytes() ([]byte, error)

func (RegisterResponseCapn) DeviceID

func (s RegisterResponseCapn) DeviceID() (string, error)

func (RegisterResponseCapn) DeviceIDBytes

func (s RegisterResponseCapn) DeviceIDBytes() ([]byte, error)

func (RegisterResponseCapn) HasAccessToken

func (s RegisterResponseCapn) HasAccessToken() bool

func (RegisterResponseCapn) HasDeviceID

func (s RegisterResponseCapn) HasDeviceID() bool

func (RegisterResponseCapn) HasHomeServer

func (s RegisterResponseCapn) HasHomeServer() bool

func (RegisterResponseCapn) HasUserID

func (s RegisterResponseCapn) HasUserID() bool

func (RegisterResponseCapn) HomeServer

func (s RegisterResponseCapn) HomeServer() (string, error)

func (RegisterResponseCapn) HomeServerBytes

func (s RegisterResponseCapn) HomeServerBytes() ([]byte, error)

func (RegisterResponseCapn) SetAccessToken

func (s RegisterResponseCapn) SetAccessToken(v string) error

func (RegisterResponseCapn) SetDeviceID

func (s RegisterResponseCapn) SetDeviceID(v string) error

func (RegisterResponseCapn) SetHomeServer

func (s RegisterResponseCapn) SetHomeServer(v string) error

func (RegisterResponseCapn) SetUserID

func (s RegisterResponseCapn) SetUserID(v string) error

func (RegisterResponseCapn) String

func (s RegisterResponseCapn) String() string

func (RegisterResponseCapn) UserID

func (s RegisterResponseCapn) UserID() (string, error)

func (RegisterResponseCapn) UserIDBytes

func (s RegisterResponseCapn) UserIDBytes() ([]byte, error)

type RegisterResponseCapn_List

type RegisterResponseCapn_List struct{ capnp.List }

RegisterResponseCapn_List is a list of RegisterResponseCapn.

func NewRegisterResponseCapn_List

func NewRegisterResponseCapn_List(s *capnp.Segment, sz int32) (RegisterResponseCapn_List, error)

NewRegisterResponseCapn creates a new list of RegisterResponseCapn.

func (RegisterResponseCapn_List) At

func (RegisterResponseCapn_List) Set

func (RegisterResponseCapn_List) String

func (s RegisterResponseCapn_List) String() string

type RegisterResponseCapn_Promise

type RegisterResponseCapn_Promise struct{ *capnp.Pipeline }

RegisterResponseCapn_Promise is a wrapper for a RegisterResponseCapn promised by a client call.

func (RegisterResponseCapn_Promise) Struct

type ReqGetSettingRequest

type ReqGetSettingRequest struct {
	SettingKey string `json:"settingKey"`
}

func (*ReqGetSettingRequest) Decode

func (externalReq *ReqGetSettingRequest) Decode(data []byte) error

func (*ReqGetSettingRequest) Encode

func (externalReq *ReqGetSettingRequest) Encode() ([]byte, error)

type ReqPostNotaryNoticeRequest

type ReqPostNotaryNoticeRequest struct {
	Action       string `json:"action"`
	TargetDomain string `json:"target_domain"`
}

POST /notary/

func (*ReqPostNotaryNoticeRequest) Decode

func (externalReq *ReqPostNotaryNoticeRequest) Decode(data []byte) error

func (*ReqPostNotaryNoticeRequest) Encode

func (externalReq *ReqPostNotaryNoticeRequest) Encode() ([]byte, error)

type ReqPostNotaryNoticeResponse

type ReqPostNotaryNoticeResponse struct {
	Ack int `json:"ack"`
}

func (*ReqPostNotaryNoticeResponse) Decode

func (res *ReqPostNotaryNoticeResponse) Decode(input []byte) error

func (*ReqPostNotaryNoticeResponse) Encode

func (r *ReqPostNotaryNoticeResponse) Encode() ([]byte, error)

type ReqPutSettingRequest

type ReqPutSettingRequest struct {
	SettingKey string
	Content    string
}

func (*ReqPutSettingRequest) Decode

func (externalReq *ReqPutSettingRequest) Decode(data []byte) error

func (*ReqPutSettingRequest) Encode

func (externalReq *ReqPutSettingRequest) Encode() ([]byte, error)

type RoomEvent

type RoomEvent struct {
	Content        []byte       `json:"content,omitempty"`
	Type           string       `json:"type,omitempty"`
	EventID        string       `json:"event_id,omitempty"`
	Sender         string       `json:"sender,omitempty"`
	OriginServerTS int64        `json:"origin_server_ts,omitempty"`
	Unsigned       UnsignedData `json:"unsigned,omitempty"`
	RoomID         string       `json:"room_id,omitempty"`
}

type RoomEventCapn

type RoomEventCapn struct{ capnp.Struct }

func NewRoomEventCapn

func NewRoomEventCapn(s *capnp.Segment) (RoomEventCapn, error)

func NewRootRoomEventCapn

func NewRootRoomEventCapn(s *capnp.Segment) (RoomEventCapn, error)

func ReadRootRoomEventCapn

func ReadRootRoomEventCapn(msg *capnp.Message) (RoomEventCapn, error)

func (RoomEventCapn) Content

func (s RoomEventCapn) Content() ([]byte, error)

func (RoomEventCapn) EventID

func (s RoomEventCapn) EventID() (string, error)

func (RoomEventCapn) EventIDBytes

func (s RoomEventCapn) EventIDBytes() ([]byte, error)

func (RoomEventCapn) HasContent

func (s RoomEventCapn) HasContent() bool

func (RoomEventCapn) HasEventID

func (s RoomEventCapn) HasEventID() bool

func (RoomEventCapn) HasRoomID

func (s RoomEventCapn) HasRoomID() bool

func (RoomEventCapn) HasSender

func (s RoomEventCapn) HasSender() bool

func (RoomEventCapn) HasType

func (s RoomEventCapn) HasType() bool

func (RoomEventCapn) HasUnsigned

func (s RoomEventCapn) HasUnsigned() bool

func (RoomEventCapn) NewUnsigned

func (s RoomEventCapn) NewUnsigned() (UnsignedDataCapn, error)

NewUnsigned sets the unsigned field to a newly allocated UnsignedDataCapn struct, preferring placement in s's segment.

func (RoomEventCapn) OriginServerTS

func (s RoomEventCapn) OriginServerTS() int64

func (RoomEventCapn) RoomID

func (s RoomEventCapn) RoomID() (string, error)

func (RoomEventCapn) RoomIDBytes

func (s RoomEventCapn) RoomIDBytes() ([]byte, error)

func (RoomEventCapn) Sender

func (s RoomEventCapn) Sender() (string, error)

func (RoomEventCapn) SenderBytes

func (s RoomEventCapn) SenderBytes() ([]byte, error)

func (RoomEventCapn) SetContent

func (s RoomEventCapn) SetContent(v []byte) error

func (RoomEventCapn) SetEventID

func (s RoomEventCapn) SetEventID(v string) error

func (RoomEventCapn) SetOriginServerTS

func (s RoomEventCapn) SetOriginServerTS(v int64)

func (RoomEventCapn) SetRoomID

func (s RoomEventCapn) SetRoomID(v string) error

func (RoomEventCapn) SetSender

func (s RoomEventCapn) SetSender(v string) error

func (RoomEventCapn) SetType

func (s RoomEventCapn) SetType(v string) error

func (RoomEventCapn) SetUnsigned

func (s RoomEventCapn) SetUnsigned(v UnsignedDataCapn) error

func (RoomEventCapn) String

func (s RoomEventCapn) String() string

func (RoomEventCapn) Type

func (s RoomEventCapn) Type() (string, error)

func (RoomEventCapn) TypeBytes

func (s RoomEventCapn) TypeBytes() ([]byte, error)

func (RoomEventCapn) Unsigned

func (s RoomEventCapn) Unsigned() (UnsignedDataCapn, error)

type RoomEventCapn_List

type RoomEventCapn_List struct{ capnp.List }

RoomEventCapn_List is a list of RoomEventCapn.

func NewRoomEventCapn_List

func NewRoomEventCapn_List(s *capnp.Segment, sz int32) (RoomEventCapn_List, error)

NewRoomEventCapn creates a new list of RoomEventCapn.

func (RoomEventCapn_List) At

func (RoomEventCapn_List) Set

func (RoomEventCapn_List) String

func (s RoomEventCapn_List) String() string

type RoomEventCapn_Promise

type RoomEventCapn_Promise struct{ *capnp.Pipeline }

RoomEventCapn_Promise is a wrapper for a RoomEventCapn promised by a client call.

func (RoomEventCapn_Promise) Struct

func (RoomEventCapn_Promise) Unsigned

type RoomEventFilter

type RoomEventFilter struct {
	EventFilter
	NotRooms    []string `json:"not_rooms,omitempty"`
	Rooms       []string `json:"rooms,omitempty"`
	ContainsURL bool     `json:"contains_url,omitempty"`
}

type RoomEventFilterCapn

type RoomEventFilterCapn struct{ capnp.Struct }

func NewRoomEventFilterCapn

func NewRoomEventFilterCapn(s *capnp.Segment) (RoomEventFilterCapn, error)

func NewRootRoomEventFilterCapn

func NewRootRoomEventFilterCapn(s *capnp.Segment) (RoomEventFilterCapn, error)

func ReadRootRoomEventFilterCapn

func ReadRootRoomEventFilterCapn(msg *capnp.Message) (RoomEventFilterCapn, error)

func (RoomEventFilterCapn) ContainsURL

func (s RoomEventFilterCapn) ContainsURL() bool

func (RoomEventFilterCapn) EventFilter

func (s RoomEventFilterCapn) EventFilter() (EventFilterCapn, error)

func (RoomEventFilterCapn) HasEventFilter

func (s RoomEventFilterCapn) HasEventFilter() bool

func (RoomEventFilterCapn) HasNotRooms

func (s RoomEventFilterCapn) HasNotRooms() bool

func (RoomEventFilterCapn) HasRooms

func (s RoomEventFilterCapn) HasRooms() bool

func (RoomEventFilterCapn) NewEventFilter

func (s RoomEventFilterCapn) NewEventFilter() (EventFilterCapn, error)

NewEventFilter sets the eventFilter field to a newly allocated EventFilterCapn struct, preferring placement in s's segment.

func (RoomEventFilterCapn) NewNotRooms

func (s RoomEventFilterCapn) NewNotRooms(n int32) (capnp.TextList, error)

NewNotRooms sets the notRooms field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (RoomEventFilterCapn) NewRooms

func (s RoomEventFilterCapn) NewRooms(n int32) (capnp.TextList, error)

NewRooms sets the rooms field to a newly allocated capnp.TextList, preferring placement in s's segment.

func (RoomEventFilterCapn) NotRooms

func (s RoomEventFilterCapn) NotRooms() (capnp.TextList, error)

func (RoomEventFilterCapn) Rooms

func (s RoomEventFilterCapn) Rooms() (capnp.TextList, error)

func (RoomEventFilterCapn) SetContainsURL

func (s RoomEventFilterCapn) SetContainsURL(v bool)

func (RoomEventFilterCapn) SetEventFilter

func (s RoomEventFilterCapn) SetEventFilter(v EventFilterCapn) error

func (RoomEventFilterCapn) SetNotRooms

func (s RoomEventFilterCapn) SetNotRooms(v capnp.TextList) error

func (RoomEventFilterCapn) SetRooms

func (s RoomEventFilterCapn) SetRooms(v capnp.TextList) error

func (RoomEventFilterCapn) String

func (s RoomEventFilterCapn) String() string

type RoomEventFilterCapn_List

type RoomEventFilterCapn_List struct{ capnp.List }

RoomEventFilterCapn_List is a list of RoomEventFilterCapn.

func NewRoomEventFilterCapn_List

func NewRoomEventFilterCapn_List(s *capnp.Segment, sz int32) (RoomEventFilterCapn_List, error)

NewRoomEventFilterCapn creates a new list of RoomEventFilterCapn.

func (RoomEventFilterCapn_List) At

func (RoomEventFilterCapn_List) Set

func (RoomEventFilterCapn_List) String

func (s RoomEventFilterCapn_List) String() string

type RoomEventFilterCapn_Promise

type RoomEventFilterCapn_Promise struct{ *capnp.Pipeline }

RoomEventFilterCapn_Promise is a wrapper for a RoomEventFilterCapn promised by a client call.

func (RoomEventFilterCapn_Promise) EventFilter

func (RoomEventFilterCapn_Promise) Struct

type RoomInfo

type RoomInfo struct {
	RoomID     string `json:"room_id"`
	Membership string `json:"membership"`

	//Invite      InviteEvent     `json:"invite,omitempty"`
	Messages    PaginationChunk `json:"messages"`
	State       []StateEvent    `json:"state"`
	Visibility  string          `json:"visibility"`
	AccountData []Event         `json:"account_data"`
}

type RoomMember

type RoomMember struct {
	AvatarURL   string  `json:"avatar_url,omitempty"`
	DisplayName *string `json:"displayname,omitempty"`
}

type Ruleset

type Ruleset struct {
	Content   []PushRule `json:"content"`
	Override  []PushRule `json:"override"`
	Room      []PushRule `json:"room"`
	Sender    []PushRule `json:"sender"`
	Underride []PushRule `json:"underride"`
}

type ServerNameCfgRequest

type ServerNameCfgRequest struct {
	Type        string   `json:"type"`
	ServerNames []string `json:"server_names"`
}

func (*ServerNameCfgRequest) Decode

func (externalReq *ServerNameCfgRequest) Decode(input []byte) error

func (*ServerNameCfgRequest) Encode

func (externalReq *ServerNameCfgRequest) Encode() ([]byte, error)

type SessionInfo

type SessionInfo struct {
	Connections []ConnectionInfo `json:"connections`
}

type Signatures

type Signatures struct {
	Signatures map[string]map[string]string
}

type Signed

type Signed struct {
	MxID       string `json:"mxid,omitempty"`
	Signatures string `json:"signatures,omitempty"`
	Token      string `json:"token,omitempty"`
}

type SignedCapn

type SignedCapn struct{ capnp.Struct }

func NewRootSignedCapn

func NewRootSignedCapn(s *capnp.Segment) (SignedCapn, error)

func NewSignedCapn

func NewSignedCapn(s *capnp.Segment) (SignedCapn, error)

func ReadRootSignedCapn

func ReadRootSignedCapn(msg *capnp.Message) (SignedCapn, error)

func (SignedCapn) HasMxID

func (s SignedCapn) HasMxID() bool

func (SignedCapn) HasSignatures

func (s SignedCapn) HasSignatures() bool

func (SignedCapn) HasToken

func (s SignedCapn) HasToken() bool

func (SignedCapn) MxID

func (s SignedCapn) MxID() (string, error)

func (SignedCapn) MxIDBytes

func (s SignedCapn) MxIDBytes() ([]byte, error)

func (SignedCapn) SetMxID

func (s SignedCapn) SetMxID(v string) error

func (SignedCapn) SetSignatures

func (s SignedCapn) SetSignatures(v string) error

func (SignedCapn) SetToken

func (s SignedCapn) SetToken(v string) error

func (SignedCapn) Signatures

func (s SignedCapn) Signatures() (string, error)

func (SignedCapn) SignaturesBytes

func (s SignedCapn) SignaturesBytes() ([]byte, error)

func (SignedCapn) String

func (s SignedCapn) String() string

func (SignedCapn) Token

func (s SignedCapn) Token() (string, error)

func (SignedCapn) TokenBytes

func (s SignedCapn) TokenBytes() ([]byte, error)

type SignedCapn_List

type SignedCapn_List struct{ capnp.List }

SignedCapn_List is a list of SignedCapn.

func NewSignedCapn_List

func NewSignedCapn_List(s *capnp.Segment, sz int32) (SignedCapn_List, error)

NewSignedCapn creates a new list of SignedCapn.

func (SignedCapn_List) At

func (s SignedCapn_List) At(i int) SignedCapn

func (SignedCapn_List) Set

func (s SignedCapn_List) Set(i int, v SignedCapn) error

func (SignedCapn_List) String

func (s SignedCapn_List) String() string

type SignedCapn_Promise

type SignedCapn_Promise struct{ *capnp.Pipeline }

SignedCapn_Promise is a wrapper for a SignedCapn promised by a client call.

func (SignedCapn_Promise) Struct

func (p SignedCapn_Promise) Struct() (SignedCapn, error)

type State

type State struct {
	Events []StateEvent `json:"events"`
}

type StateEvent

type StateEvent struct {
	Type           string       `json:"type,omitempty"`
	StateKey       string       `json:"state_key,omitempty"`
	Content        interface{}  `json:"content,omitempty"`
	EventID        string       `json:"event_id,omitempty"`
	Sender         string       `json:"sender,omitempty"`
	OriginServerTS int64        `json:"origin_server_ts,omitempty"`
	Unsigned       UnsignedData `json:"unsigned,omitempty"`
	PrevContent    EventContent `json:"prev_content,omitempty"`
	RoomID         string       `json:"room_id,omitempty"`
}

type StrippedState

type StrippedState struct {
	Content  EventContent `json:"content,omitempty"`
	StateKey string       `json:"state_key,omitempty"`
	Type     string       `json:"type,omitempty"`
	Sender   string       `json:"sender,omitempty"`
}

type TPInvite

type TPInvite struct {
	DisplayName string         `json:"display_name"`
	Signed      TPInviteSigned `json:"signed"`
}

TPInvite is the "Invite" structure defined at http://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-member

type TPInviteSigned

type TPInviteSigned struct {
	MXID       string                       `json:"mxid"`
	Signatures map[string]map[string]string `json:"signatures"`
	Token      string                       `json:"token"`
}

TPInviteSigned is the "signed" structure defined at http://matrix.org/docs/spec/client_server/r0.2.0.html#m-room-member

type Tag

type Tag struct {
	Order float32 `json:"order"`
}

type TagCapn

type TagCapn struct{ capnp.Struct }

func NewRootTagCapn

func NewRootTagCapn(s *capnp.Segment) (TagCapn, error)

func NewTagCapn

func NewTagCapn(s *capnp.Segment) (TagCapn, error)

func ReadRootTagCapn

func ReadRootTagCapn(msg *capnp.Message) (TagCapn, error)

func (TagCapn) Order

func (s TagCapn) Order() float32

func (TagCapn) SetOrder

func (s TagCapn) SetOrder(v float32)

func (TagCapn) String

func (s TagCapn) String() string

type TagCapn_List

type TagCapn_List struct{ capnp.List }

TagCapn_List is a list of TagCapn.

func NewTagCapn_List

func NewTagCapn_List(s *capnp.Segment, sz int32) (TagCapn_List, error)

NewTagCapn creates a new list of TagCapn.

func (TagCapn_List) At

func (s TagCapn_List) At(i int) TagCapn

func (TagCapn_List) Set

func (s TagCapn_List) Set(i int, v TagCapn) error

func (TagCapn_List) String

func (s TagCapn_List) String() string

type TagCapn_Promise

type TagCapn_Promise struct{ *capnp.Pipeline }

TagCapn_Promise is a wrapper for a TagCapn promised by a client call.

func (TagCapn_Promise) Struct

func (p TagCapn_Promise) Struct() (TagCapn, error)

type ThirdPartyIdentifier

type ThirdPartyIdentifier struct {
	Medium      string `json:"medium"`
	Address     string `json:"address"`
	ValidatedAt int    `json:"validated_at"`
	AddedAt     int    `json:"added_at"`
}

type ThirdPartyIdentifierCapn

type ThirdPartyIdentifierCapn struct{ capnp.Struct }

func NewRootThirdPartyIdentifierCapn

func NewRootThirdPartyIdentifierCapn(s *capnp.Segment) (ThirdPartyIdentifierCapn, error)

func NewThirdPartyIdentifierCapn

func NewThirdPartyIdentifierCapn(s *capnp.Segment) (ThirdPartyIdentifierCapn, error)

func ReadRootThirdPartyIdentifierCapn

func ReadRootThirdPartyIdentifierCapn(msg *capnp.Message) (ThirdPartyIdentifierCapn, error)

func (ThirdPartyIdentifierCapn) AddedAt

func (s ThirdPartyIdentifierCapn) AddedAt() int64

func (ThirdPartyIdentifierCapn) Address

func (s ThirdPartyIdentifierCapn) Address() (string, error)

func (ThirdPartyIdentifierCapn) AddressBytes

func (s ThirdPartyIdentifierCapn) AddressBytes() ([]byte, error)

func (ThirdPartyIdentifierCapn) HasAddress

func (s ThirdPartyIdentifierCapn) HasAddress() bool

func (ThirdPartyIdentifierCapn) HasMedium

func (s ThirdPartyIdentifierCapn) HasMedium() bool

func (ThirdPartyIdentifierCapn) Medium

func (s ThirdPartyIdentifierCapn) Medium() (string, error)

func (ThirdPartyIdentifierCapn) MediumBytes

func (s ThirdPartyIdentifierCapn) MediumBytes() ([]byte, error)

func (ThirdPartyIdentifierCapn) SetAddedAt

func (s ThirdPartyIdentifierCapn) SetAddedAt(v int64)

func (ThirdPartyIdentifierCapn) SetAddress

func (s ThirdPartyIdentifierCapn) SetAddress(v string) error

func (ThirdPartyIdentifierCapn) SetMedium

func (s ThirdPartyIdentifierCapn) SetMedium(v string) error

func (ThirdPartyIdentifierCapn) SetValidatedAt

func (s ThirdPartyIdentifierCapn) SetValidatedAt(v int64)

func (ThirdPartyIdentifierCapn) String

func (s ThirdPartyIdentifierCapn) String() string

func (ThirdPartyIdentifierCapn) ValidatedAt

func (s ThirdPartyIdentifierCapn) ValidatedAt() int64

type ThirdPartyIdentifierCapn_List

type ThirdPartyIdentifierCapn_List struct{ capnp.List }

ThirdPartyIdentifierCapn_List is a list of ThirdPartyIdentifierCapn.

func NewThirdPartyIdentifierCapn_List

func NewThirdPartyIdentifierCapn_List(s *capnp.Segment, sz int32) (ThirdPartyIdentifierCapn_List, error)

NewThirdPartyIdentifierCapn creates a new list of ThirdPartyIdentifierCapn.

func (ThirdPartyIdentifierCapn_List) At

func (ThirdPartyIdentifierCapn_List) Set

func (ThirdPartyIdentifierCapn_List) String

type ThirdPartyIdentifierCapn_Promise

type ThirdPartyIdentifierCapn_Promise struct{ *capnp.Pipeline }

ThirdPartyIdentifierCapn_Promise is a wrapper for a ThirdPartyIdentifierCapn promised by a client call.

func (ThirdPartyIdentifierCapn_Promise) Struct

type ThirdPartySigned

type ThirdPartySigned struct {
	MxID       string     `json:"mxid,omitempty"`
	Sender     string     `json:"sender,omitempty"`
	Token      string     `json:"token,omitempty"`
	Signatures Signatures `json:"signatures,omitempty"`
}

type ThirdPartyUser

type ThirdPartyUser struct {
	UserID   string      `json:"userid"`
	Protocol string      `json:"protocol"`
	Fields   interface{} `json:"fields"`
}

type ThreePID

type ThreePID struct {
	Address string `json:"address"`
	Medium  string `json:"medium"`
}

ThreePID represents a third-party identifier

type ThreePidCredentials

type ThreePidCredentials struct {
	ClientSecret string `json:"client_secret"`
	IdServer     string `json:"id_server"`
	Sid          string `json:"sid"`
}

type ThreePidCredentialsCapn

type ThreePidCredentialsCapn struct{ capnp.Struct }

func NewRootThreePidCredentialsCapn

func NewRootThreePidCredentialsCapn(s *capnp.Segment) (ThreePidCredentialsCapn, error)

func NewThreePidCredentialsCapn

func NewThreePidCredentialsCapn(s *capnp.Segment) (ThreePidCredentialsCapn, error)

func ReadRootThreePidCredentialsCapn

func ReadRootThreePidCredentialsCapn(msg *capnp.Message) (ThreePidCredentialsCapn, error)

func (ThreePidCredentialsCapn) ClientSecret

func (s ThreePidCredentialsCapn) ClientSecret() (string, error)

func (ThreePidCredentialsCapn) ClientSecretBytes

func (s ThreePidCredentialsCapn) ClientSecretBytes() ([]byte, error)

func (ThreePidCredentialsCapn) HasClientSecret

func (s ThreePidCredentialsCapn) HasClientSecret() bool

func (ThreePidCredentialsCapn) HasIdServer

func (s ThreePidCredentialsCapn) HasIdServer() bool

func (ThreePidCredentialsCapn) HasSid

func (s ThreePidCredentialsCapn) HasSid() bool

func (ThreePidCredentialsCapn) IdServer

func (s ThreePidCredentialsCapn) IdServer() (string, error)

func (ThreePidCredentialsCapn) IdServerBytes

func (s ThreePidCredentialsCapn) IdServerBytes() ([]byte, error)

func (ThreePidCredentialsCapn) SetClientSecret

func (s ThreePidCredentialsCapn) SetClientSecret(v string) error

func (ThreePidCredentialsCapn) SetIdServer

func (s ThreePidCredentialsCapn) SetIdServer(v string) error

func (ThreePidCredentialsCapn) SetSid

func (s ThreePidCredentialsCapn) SetSid(v string) error

func (ThreePidCredentialsCapn) Sid

func (ThreePidCredentialsCapn) SidBytes

func (s ThreePidCredentialsCapn) SidBytes() ([]byte, error)

func (ThreePidCredentialsCapn) String

func (s ThreePidCredentialsCapn) String() string

type ThreePidCredentialsCapn_List

type ThreePidCredentialsCapn_List struct{ capnp.List }

ThreePidCredentialsCapn_List is a list of ThreePidCredentialsCapn.

func NewThreePidCredentialsCapn_List

func NewThreePidCredentialsCapn_List(s *capnp.Segment, sz int32) (ThreePidCredentialsCapn_List, error)

NewThreePidCredentialsCapn creates a new list of ThreePidCredentialsCapn.

func (ThreePidCredentialsCapn_List) At

func (ThreePidCredentialsCapn_List) Set

func (ThreePidCredentialsCapn_List) String

type ThreePidCredentialsCapn_Promise

type ThreePidCredentialsCapn_Promise struct{ *capnp.Pipeline }

ThreePidCredentialsCapn_Promise is a wrapper for a ThreePidCredentialsCapn promised by a client call.

func (ThreePidCredentialsCapn_Promise) Struct

type Timeline

type Timeline struct {
	Events    []RoomEvent `json:"events"`
	Limited   bool        `json:"limited"`
	PrevBatch string      `json:"prev_batch"`
}

type TimelineCapn

type TimelineCapn struct{ capnp.Struct }

func NewRootTimelineCapn

func NewRootTimelineCapn(s *capnp.Segment) (TimelineCapn, error)

func NewTimelineCapn

func NewTimelineCapn(s *capnp.Segment) (TimelineCapn, error)

func ReadRootTimelineCapn

func ReadRootTimelineCapn(msg *capnp.Message) (TimelineCapn, error)

func (TimelineCapn) Events

func (s TimelineCapn) Events() (RoomEventCapn_List, error)

func (TimelineCapn) HasEvents

func (s TimelineCapn) HasEvents() bool

func (TimelineCapn) HasPrevBatch

func (s TimelineCapn) HasPrevBatch() bool

func (TimelineCapn) Limited

func (s TimelineCapn) Limited() bool

func (TimelineCapn) NewEvents

func (s TimelineCapn) NewEvents(n int32) (RoomEventCapn_List, error)

NewEvents sets the events field to a newly allocated RoomEventCapn_List, preferring placement in s's segment.

func (TimelineCapn) PrevBatch

func (s TimelineCapn) PrevBatch() (string, error)

func (TimelineCapn) PrevBatchBytes

func (s TimelineCapn) PrevBatchBytes() ([]byte, error)

func (TimelineCapn) SetEvents

func (s TimelineCapn) SetEvents(v RoomEventCapn_List) error

func (TimelineCapn) SetLimited

func (s TimelineCapn) SetLimited(v bool)

func (TimelineCapn) SetPrevBatch

func (s TimelineCapn) SetPrevBatch(v string) error

func (TimelineCapn) String

func (s TimelineCapn) String() string

type TimelineCapn_List

type TimelineCapn_List struct{ capnp.List }

TimelineCapn_List is a list of TimelineCapn.

func NewTimelineCapn_List

func NewTimelineCapn_List(s *capnp.Segment, sz int32) (TimelineCapn_List, error)

NewTimelineCapn creates a new list of TimelineCapn.

func (TimelineCapn_List) At

func (TimelineCapn_List) Set

func (TimelineCapn_List) String

func (s TimelineCapn_List) String() string

type TimelineCapn_Promise

type TimelineCapn_Promise struct{ *capnp.Pipeline }

TimelineCapn_Promise is a wrapper for a TimelineCapn promised by a client call.

func (TimelineCapn_Promise) Struct

func (p TimelineCapn_Promise) Struct() (TimelineCapn, error)

type ToDevice

type ToDevice struct {
	Events []Event `json:"events"`
}

type ToDeviceCapn

type ToDeviceCapn struct{ capnp.Struct }

func NewRootToDeviceCapn

func NewRootToDeviceCapn(s *capnp.Segment) (ToDeviceCapn, error)

func NewToDeviceCapn

func NewToDeviceCapn(s *capnp.Segment) (ToDeviceCapn, error)

func ReadRootToDeviceCapn

func ReadRootToDeviceCapn(msg *capnp.Message) (ToDeviceCapn, error)

func (ToDeviceCapn) Events

func (s ToDeviceCapn) Events() (EventCapn_List, error)

func (ToDeviceCapn) HasEvents

func (s ToDeviceCapn) HasEvents() bool

func (ToDeviceCapn) NewEvents

func (s ToDeviceCapn) NewEvents(n int32) (EventCapn_List, error)

NewEvents sets the events field to a newly allocated EventCapn_List, preferring placement in s's segment.

func (ToDeviceCapn) SetEvents

func (s ToDeviceCapn) SetEvents(v EventCapn_List) error

func (ToDeviceCapn) String

func (s ToDeviceCapn) String() string

type ToDeviceCapn_List

type ToDeviceCapn_List struct{ capnp.List }

ToDeviceCapn_List is a list of ToDeviceCapn.

func NewToDeviceCapn_List

func NewToDeviceCapn_List(s *capnp.Segment, sz int32) (ToDeviceCapn_List, error)

NewToDeviceCapn creates a new list of ToDeviceCapn.

func (ToDeviceCapn_List) At

func (ToDeviceCapn_List) Set

func (ToDeviceCapn_List) String

func (s ToDeviceCapn_List) String() string

type ToDeviceCapn_Promise

type ToDeviceCapn_Promise struct{ *capnp.Pipeline }

ToDeviceCapn_Promise is a wrapper for a ToDeviceCapn promised by a client call.

func (ToDeviceCapn_Promise) Struct

func (p ToDeviceCapn_Promise) Struct() (ToDeviceCapn, error)

type UnreadNotifications

type UnreadNotifications struct {
	HighLightCount    int64 `json:"highlight_count"`
	NotificationCount int64 `json:"notification_count"`
}

type UnreadNotificationsCapn

type UnreadNotificationsCapn struct{ capnp.Struct }

func NewRootUnreadNotificationsCapn

func NewRootUnreadNotificationsCapn(s *capnp.Segment) (UnreadNotificationsCapn, error)

func NewUnreadNotificationsCapn

func NewUnreadNotificationsCapn(s *capnp.Segment) (UnreadNotificationsCapn, error)

func ReadRootUnreadNotificationsCapn

func ReadRootUnreadNotificationsCapn(msg *capnp.Message) (UnreadNotificationsCapn, error)

func (UnreadNotificationsCapn) HighLightCount

func (s UnreadNotificationsCapn) HighLightCount() int64

func (UnreadNotificationsCapn) NotificationCount

func (s UnreadNotificationsCapn) NotificationCount() int64

func (UnreadNotificationsCapn) SetHighLightCount

func (s UnreadNotificationsCapn) SetHighLightCount(v int64)

func (UnreadNotificationsCapn) SetNotificationCount

func (s UnreadNotificationsCapn) SetNotificationCount(v int64)

func (UnreadNotificationsCapn) String

func (s UnreadNotificationsCapn) String() string

type UnreadNotificationsCapn_List

type UnreadNotificationsCapn_List struct{ capnp.List }

UnreadNotificationsCapn_List is a list of UnreadNotificationsCapn.

func NewUnreadNotificationsCapn_List

func NewUnreadNotificationsCapn_List(s *capnp.Segment, sz int32) (UnreadNotificationsCapn_List, error)

NewUnreadNotificationsCapn creates a new list of UnreadNotificationsCapn.

func (UnreadNotificationsCapn_List) At

func (UnreadNotificationsCapn_List) Set

func (UnreadNotificationsCapn_List) String

type UnreadNotificationsCapn_Promise

type UnreadNotificationsCapn_Promise struct{ *capnp.Pipeline }

UnreadNotificationsCapn_Promise is a wrapper for a UnreadNotificationsCapn promised by a client call.

func (UnreadNotificationsCapn_Promise) Struct

type UnsignedData

type UnsignedData struct {
	Age             int    `json:"age,omitempty"`
	RedactedBecause Event  `json:"redacted_because,omitempty"`
	TransactionID   string `json:"transaction_id,omitempty"`
}

type UnsignedDataCapn

type UnsignedDataCapn struct{ capnp.Struct }

func NewRootUnsignedDataCapn

func NewRootUnsignedDataCapn(s *capnp.Segment) (UnsignedDataCapn, error)

func NewUnsignedDataCapn

func NewUnsignedDataCapn(s *capnp.Segment) (UnsignedDataCapn, error)

func ReadRootUnsignedDataCapn

func ReadRootUnsignedDataCapn(msg *capnp.Message) (UnsignedDataCapn, error)

func (UnsignedDataCapn) Age

func (s UnsignedDataCapn) Age() int64

func (UnsignedDataCapn) HasRedactedBecause

func (s UnsignedDataCapn) HasRedactedBecause() bool

func (UnsignedDataCapn) HasTransactionID

func (s UnsignedDataCapn) HasTransactionID() bool

func (UnsignedDataCapn) NewRedactedBecause

func (s UnsignedDataCapn) NewRedactedBecause() (EventCapn, error)

NewRedactedBecause sets the redactedBecause field to a newly allocated EventCapn struct, preferring placement in s's segment.

func (UnsignedDataCapn) RedactedBecause

func (s UnsignedDataCapn) RedactedBecause() (EventCapn, error)

func (UnsignedDataCapn) SetAge

func (s UnsignedDataCapn) SetAge(v int64)

func (UnsignedDataCapn) SetRedactedBecause

func (s UnsignedDataCapn) SetRedactedBecause(v EventCapn) error

func (UnsignedDataCapn) SetTransactionID

func (s UnsignedDataCapn) SetTransactionID(v string) error

func (UnsignedDataCapn) String

func (s UnsignedDataCapn) String() string

func (UnsignedDataCapn) TransactionID

func (s UnsignedDataCapn) TransactionID() (string, error)

func (UnsignedDataCapn) TransactionIDBytes

func (s UnsignedDataCapn) TransactionIDBytes() ([]byte, error)

type UnsignedDataCapn_List

type UnsignedDataCapn_List struct{ capnp.List }

UnsignedDataCapn_List is a list of UnsignedDataCapn.

func NewUnsignedDataCapn_List

func NewUnsignedDataCapn_List(s *capnp.Segment, sz int32) (UnsignedDataCapn_List, error)

NewUnsignedDataCapn creates a new list of UnsignedDataCapn.

func (UnsignedDataCapn_List) At

func (UnsignedDataCapn_List) Set

func (UnsignedDataCapn_List) String

func (s UnsignedDataCapn_List) String() string

type UnsignedDataCapn_Promise

type UnsignedDataCapn_Promise struct{ *capnp.Pipeline }

UnsignedDataCapn_Promise is a wrapper for a UnsignedDataCapn promised by a client call.

func (UnsignedDataCapn_Promise) RedactedBecause

func (p UnsignedDataCapn_Promise) RedactedBecause() EventCapn_Promise

func (UnsignedDataCapn_Promise) Struct

type UnsignedDeviceInfo

type UnsignedDeviceInfo struct {
	DeviceDisplayName string `json:"device_display_name"`
}

type UnsignedDeviceInfoCapn

type UnsignedDeviceInfoCapn struct{ capnp.Struct }

func NewRootUnsignedDeviceInfoCapn

func NewRootUnsignedDeviceInfoCapn(s *capnp.Segment) (UnsignedDeviceInfoCapn, error)

func NewUnsignedDeviceInfoCapn

func NewUnsignedDeviceInfoCapn(s *capnp.Segment) (UnsignedDeviceInfoCapn, error)

func ReadRootUnsignedDeviceInfoCapn

func ReadRootUnsignedDeviceInfoCapn(msg *capnp.Message) (UnsignedDeviceInfoCapn, error)

func (UnsignedDeviceInfoCapn) DeviceDisplayName

func (s UnsignedDeviceInfoCapn) DeviceDisplayName() (string, error)

func (UnsignedDeviceInfoCapn) DeviceDisplayNameBytes

func (s UnsignedDeviceInfoCapn) DeviceDisplayNameBytes() ([]byte, error)

func (UnsignedDeviceInfoCapn) HasDeviceDisplayName

func (s UnsignedDeviceInfoCapn) HasDeviceDisplayName() bool

func (UnsignedDeviceInfoCapn) SetDeviceDisplayName

func (s UnsignedDeviceInfoCapn) SetDeviceDisplayName(v string) error

func (UnsignedDeviceInfoCapn) String

func (s UnsignedDeviceInfoCapn) String() string

type UnsignedDeviceInfoCapn_List

type UnsignedDeviceInfoCapn_List struct{ capnp.List }

UnsignedDeviceInfoCapn_List is a list of UnsignedDeviceInfoCapn.

func NewUnsignedDeviceInfoCapn_List

func NewUnsignedDeviceInfoCapn_List(s *capnp.Segment, sz int32) (UnsignedDeviceInfoCapn_List, error)

NewUnsignedDeviceInfoCapn creates a new list of UnsignedDeviceInfoCapn.

func (UnsignedDeviceInfoCapn_List) At

func (UnsignedDeviceInfoCapn_List) Set

func (UnsignedDeviceInfoCapn_List) String

type UnsignedDeviceInfoCapn_Promise

type UnsignedDeviceInfoCapn_Promise struct{ *capnp.Pipeline }

UnsignedDeviceInfoCapn_Promise is a wrapper for a UnsignedDeviceInfoCapn promised by a client call.

func (UnsignedDeviceInfoCapn_Promise) Struct

type User

type User struct {
	UserID      string `json:"user_id,omitempty"`
	DisplayName string `json:"display_name"`
	AvatarURL   string `json:"avatar_url"`
}

type UserCapn

type UserCapn struct{ capnp.Struct }

func NewRootUserCapn

func NewRootUserCapn(s *capnp.Segment) (UserCapn, error)

func NewUserCapn

func NewUserCapn(s *capnp.Segment) (UserCapn, error)

func ReadRootUserCapn

func ReadRootUserCapn(msg *capnp.Message) (UserCapn, error)

func (UserCapn) AvatarURL

func (s UserCapn) AvatarURL() (string, error)

func (UserCapn) AvatarURLBytes

func (s UserCapn) AvatarURLBytes() ([]byte, error)

func (UserCapn) DisplayName

func (s UserCapn) DisplayName() (string, error)

func (UserCapn) DisplayNameBytes

func (s UserCapn) DisplayNameBytes() ([]byte, error)

func (UserCapn) HasAvatarURL

func (s UserCapn) HasAvatarURL() bool

func (UserCapn) HasDisplayName

func (s UserCapn) HasDisplayName() bool

func (UserCapn) HasUserID

func (s UserCapn) HasUserID() bool

func (UserCapn) SetAvatarURL

func (s UserCapn) SetAvatarURL(v string) error

func (UserCapn) SetDisplayName

func (s UserCapn) SetDisplayName(v string) error

func (UserCapn) SetUserID

func (s UserCapn) SetUserID(v string) error

func (UserCapn) String

func (s UserCapn) String() string

func (UserCapn) UserID

func (s UserCapn) UserID() (string, error)

func (UserCapn) UserIDBytes

func (s UserCapn) UserIDBytes() ([]byte, error)

type UserCapn_List

type UserCapn_List struct{ capnp.List }

UserCapn_List is a list of UserCapn.

func NewUserCapn_List

func NewUserCapn_List(s *capnp.Segment, sz int32) (UserCapn_List, error)

NewUserCapn creates a new list of UserCapn.

func (UserCapn_List) At

func (s UserCapn_List) At(i int) UserCapn

func (UserCapn_List) Set

func (s UserCapn_List) Set(i int, v UserCapn) error

func (UserCapn_List) String

func (s UserCapn_List) String() string

type UserCapn_Promise

type UserCapn_Promise struct{ *capnp.Pipeline }

UserCapn_Promise is a wrapper for a UserCapn promised by a client call.

func (UserCapn_Promise) Struct

func (p UserCapn_Promise) Struct() (UserCapn, error)

type UserIdentifier

type UserIdentifier struct {
	// contains filtered or unexported fields
}

type UserIdentifierCapn

type UserIdentifierCapn struct{ capnp.Struct }

func NewRootUserIdentifierCapn

func NewRootUserIdentifierCapn(s *capnp.Segment) (UserIdentifierCapn, error)

func NewUserIdentifierCapn

func NewUserIdentifierCapn(s *capnp.Segment) (UserIdentifierCapn, error)

func ReadRootUserIdentifierCapn

func ReadRootUserIdentifierCapn(msg *capnp.Message) (UserIdentifierCapn, error)

func (UserIdentifierCapn) HasUserType

func (s UserIdentifierCapn) HasUserType() bool

func (UserIdentifierCapn) SetUserType

func (s UserIdentifierCapn) SetUserType(v string) error

func (UserIdentifierCapn) String

func (s UserIdentifierCapn) String() string

func (UserIdentifierCapn) UserType

func (s UserIdentifierCapn) UserType() (string, error)

func (UserIdentifierCapn) UserTypeBytes

func (s UserIdentifierCapn) UserTypeBytes() ([]byte, error)

type UserIdentifierCapn_List

type UserIdentifierCapn_List struct{ capnp.List }

UserIdentifierCapn_List is a list of UserIdentifierCapn.

func NewUserIdentifierCapn_List

func NewUserIdentifierCapn_List(s *capnp.Segment, sz int32) (UserIdentifierCapn_List, error)

NewUserIdentifierCapn creates a new list of UserIdentifierCapn.

func (UserIdentifierCapn_List) At

func (UserIdentifierCapn_List) Set

func (UserIdentifierCapn_List) String

func (s UserIdentifierCapn_List) String() string

type UserIdentifierCapn_Promise

type UserIdentifierCapn_Promise struct{ *capnp.Pipeline }

UserIdentifierCapn_Promise is a wrapper for a UserIdentifierCapn promised by a client call.

func (UserIdentifierCapn_Promise) Struct

type UserInfoItem

type UserInfoItem 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"`
}

type UserInteractiveResponse

type UserInteractiveResponse struct {
	Flows     []AuthFlow             `json:"flows"`
	Completed []string               `json:"completed"`
	Params    map[string]interface{} `json:"params"`
	Session   string                 `json:"session"`
}

http://matrix.org/speculator/spec/HEAD/client_server/unstable.html#user-interactive-authentication-api

func (*UserInteractiveResponse) Decode

func (res *UserInteractiveResponse) Decode(input []byte) error

func (*UserInteractiveResponse) Encode

func (res *UserInteractiveResponse) Encode() ([]byte, error)

Jump to

Keyboard shortcuts

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