Documentation ¶
Index ¶
- Constants
- Variables
- func ChatUiProtocol(i ChatUiInterface) rpc.Protocol
- func CommonProtocol(i CommonInterface) rpc.Protocol
- func ExpandTLFName(name string, finalizeInfo *ConversationFinalizeInfo) string
- func GregorProtocol(i GregorInterface) rpc.Protocol
- func LocalProtocol(i LocalInterface) rpc.Protocol
- func NotifyChatProtocol(i NotifyChatInterface) rpc.Protocol
- func RemoteProtocol(i RemoteInterface) rpc.Protocol
- type Asset
- type AssetMetadata
- type AssetMetadataAudio
- type AssetMetadataImage
- type AssetMetadataType
- type AssetMetadataVideo
- type AssetTag
- type BodyPlaintext
- func NewBodyPlaintextWithV1(v BodyPlaintextV1) BodyPlaintext
- func NewBodyPlaintextWithV10(v BodyPlaintextUnsupported) BodyPlaintext
- func NewBodyPlaintextWithV2(v BodyPlaintextUnsupported) BodyPlaintext
- func NewBodyPlaintextWithV3(v BodyPlaintextUnsupported) BodyPlaintext
- func NewBodyPlaintextWithV4(v BodyPlaintextUnsupported) BodyPlaintext
- func NewBodyPlaintextWithV5(v BodyPlaintextUnsupported) BodyPlaintext
- func NewBodyPlaintextWithV6(v BodyPlaintextUnsupported) BodyPlaintext
- func NewBodyPlaintextWithV7(v BodyPlaintextUnsupported) BodyPlaintext
- func NewBodyPlaintextWithV8(v BodyPlaintextUnsupported) BodyPlaintext
- func NewBodyPlaintextWithV9(v BodyPlaintextUnsupported) BodyPlaintext
- func (o BodyPlaintext) V1() BodyPlaintextV1
- func (o BodyPlaintext) V10() BodyPlaintextUnsupported
- func (o BodyPlaintext) V2() BodyPlaintextUnsupported
- func (o BodyPlaintext) V3() BodyPlaintextUnsupported
- func (o BodyPlaintext) V4() BodyPlaintextUnsupported
- func (o BodyPlaintext) V5() BodyPlaintextUnsupported
- func (o BodyPlaintext) V6() BodyPlaintextUnsupported
- func (o BodyPlaintext) V7() BodyPlaintextUnsupported
- func (o BodyPlaintext) V8() BodyPlaintextUnsupported
- func (o BodyPlaintext) V9() BodyPlaintextUnsupported
- func (o *BodyPlaintext) Version() (ret BodyPlaintextVersion, err error)
- type BodyPlaintextMetaInfo
- type BodyPlaintextUnsupported
- type BodyPlaintextV1
- type BodyPlaintextVersion
- type CancelPostArg
- type ChatActivity
- func NewChatActivityWithFailedMessage(v FailedMessageInfo) ChatActivity
- func NewChatActivityWithIncomingMessage(v IncomingMessage) ChatActivity
- func NewChatActivityWithNewConversation(v NewConversationInfo) ChatActivity
- func NewChatActivityWithReadMessage(v ReadMessageInfo) ChatActivity
- func NewChatActivityWithSetStatus(v SetStatusInfo) ChatActivity
- func (o *ChatActivity) ActivityType() (ret ChatActivityType, err error)
- func (o ChatActivity) FailedMessage() FailedMessageInfo
- func (o ChatActivity) IncomingMessage() IncomingMessage
- func (o ChatActivity) NewConversation() NewConversationInfo
- func (o ChatActivity) ReadMessage() ReadMessageInfo
- func (o ChatActivity) SetStatus() SetStatusInfo
- type ChatActivityType
- type ChatAttachmentDownloadDoneArg
- type ChatAttachmentDownloadProgressArg
- type ChatAttachmentDownloadStartArg
- type ChatAttachmentPreviewUploadDoneArg
- type ChatAttachmentPreviewUploadStartArg
- type ChatAttachmentUploadDoneArg
- type ChatAttachmentUploadProgressArg
- type ChatAttachmentUploadStartArg
- type ChatIdentifyUpdateArg
- type ChatInboxConversationArg
- type ChatInboxFailedArg
- type ChatInboxStaleArg
- type ChatInboxUnverifiedArg
- type ChatTLFFinalizeArg
- type ChatTLFResolveArg
- type ChatThreadsStaleArg
- type ChatUiClient
- func (c ChatUiClient) ChatAttachmentDownloadDone(ctx context.Context, sessionID int) (err error)
- func (c ChatUiClient) ChatAttachmentDownloadProgress(ctx context.Context, __arg ChatAttachmentDownloadProgressArg) (err error)
- func (c ChatUiClient) ChatAttachmentDownloadStart(ctx context.Context, sessionID int) (err error)
- func (c ChatUiClient) ChatAttachmentPreviewUploadDone(ctx context.Context, sessionID int) (err error)
- func (c ChatUiClient) ChatAttachmentPreviewUploadStart(ctx context.Context, __arg ChatAttachmentPreviewUploadStartArg) (err error)
- func (c ChatUiClient) ChatAttachmentUploadDone(ctx context.Context, sessionID int) (err error)
- func (c ChatUiClient) ChatAttachmentUploadProgress(ctx context.Context, __arg ChatAttachmentUploadProgressArg) (err error)
- func (c ChatUiClient) ChatAttachmentUploadStart(ctx context.Context, __arg ChatAttachmentUploadStartArg) (err error)
- func (c ChatUiClient) ChatInboxConversation(ctx context.Context, __arg ChatInboxConversationArg) (err error)
- func (c ChatUiClient) ChatInboxFailed(ctx context.Context, __arg ChatInboxFailedArg) (err error)
- func (c ChatUiClient) ChatInboxUnverified(ctx context.Context, __arg ChatInboxUnverifiedArg) (err error)
- type ChatUiInterface
- type CommonClient
- type CommonInterface
- type Conversation
- type ConversationErrorLocal
- type ConversationErrorRekey
- type ConversationErrorType
- type ConversationFinalizeInfo
- type ConversationID
- type ConversationIDTriple
- type ConversationInfoLocal
- type ConversationLocal
- type ConversationMetadata
- type ConversationReaderInfo
- type ConversationResolveInfo
- type ConversationStatus
- type DownloadAttachmentLocalArg
- type DownloadAttachmentLocalRes
- type DownloadFileAttachmentLocalArg
- type EncryptedData
- type FailedMessageInfo
- type FindConversationsLocalArg
- type FindConversationsLocalRes
- type GenericPayload
- type GetConversationForCLILocalArg
- type GetConversationForCLILocalQuery
- type GetConversationForCLILocalRes
- type GetConversationMetadataRemoteRes
- type GetInboxAndUnboxLocalArg
- type GetInboxAndUnboxLocalRes
- type GetInboxByTLFIDRemoteRes
- type GetInboxLocalQuery
- type GetInboxLocalRes
- type GetInboxNonblockLocalArg
- type GetInboxNonblockLocalRes
- type GetInboxQuery
- type GetInboxRemoteArg
- type GetInboxRemoteRes
- type GetInboxSummaryForCLILocalArg
- type GetInboxSummaryForCLILocalQuery
- type GetInboxSummaryForCLILocalRes
- type GetInboxVersionArg
- type GetMessagesLocalArg
- type GetMessagesLocalRes
- type GetMessagesRemoteArg
- type GetMessagesRemoteRes
- type GetPublicConversationsArg
- type GetPublicConversationsRes
- type GetS3ParamsArg
- type GetThreadLocalArg
- type GetThreadLocalRes
- type GetThreadQuery
- type GetThreadRemoteArg
- type GetThreadRemoteRes
- type GetUnreadUpdateFullArg
- type GregorClient
- type GregorInterface
- type Hash
- type HeaderPlaintext
- func NewHeaderPlaintextWithV1(v HeaderPlaintextV1) HeaderPlaintext
- func NewHeaderPlaintextWithV10(v HeaderPlaintextUnsupported) HeaderPlaintext
- func NewHeaderPlaintextWithV2(v HeaderPlaintextUnsupported) HeaderPlaintext
- func NewHeaderPlaintextWithV3(v HeaderPlaintextUnsupported) HeaderPlaintext
- func NewHeaderPlaintextWithV4(v HeaderPlaintextUnsupported) HeaderPlaintext
- func NewHeaderPlaintextWithV5(v HeaderPlaintextUnsupported) HeaderPlaintext
- func NewHeaderPlaintextWithV6(v HeaderPlaintextUnsupported) HeaderPlaintext
- func NewHeaderPlaintextWithV7(v HeaderPlaintextUnsupported) HeaderPlaintext
- func NewHeaderPlaintextWithV8(v HeaderPlaintextUnsupported) HeaderPlaintext
- func NewHeaderPlaintextWithV9(v HeaderPlaintextUnsupported) HeaderPlaintext
- func (o HeaderPlaintext) V1() HeaderPlaintextV1
- func (o HeaderPlaintext) V10() HeaderPlaintextUnsupported
- func (o HeaderPlaintext) V2() HeaderPlaintextUnsupported
- func (o HeaderPlaintext) V3() HeaderPlaintextUnsupported
- func (o HeaderPlaintext) V4() HeaderPlaintextUnsupported
- func (o HeaderPlaintext) V5() HeaderPlaintextUnsupported
- func (o HeaderPlaintext) V6() HeaderPlaintextUnsupported
- func (o HeaderPlaintext) V7() HeaderPlaintextUnsupported
- func (o HeaderPlaintext) V8() HeaderPlaintextUnsupported
- func (o HeaderPlaintext) V9() HeaderPlaintextUnsupported
- func (o *HeaderPlaintext) Version() (ret HeaderPlaintextVersion, err error)
- type HeaderPlaintextMetaInfo
- type HeaderPlaintextUnsupported
- type HeaderPlaintextV1
- type HeaderPlaintextVersion
- type Inbox
- type InboxResType
- type InboxVers
- type InboxView
- type InboxViewFull
- type IncomingMessage
- type LocalClient
- func (c LocalClient) CancelPost(ctx context.Context, outboxID OutboxID) (err error)
- func (c LocalClient) DownloadAttachmentLocal(ctx context.Context, __arg DownloadAttachmentLocalArg) (res DownloadAttachmentLocalRes, err error)
- func (c LocalClient) DownloadFileAttachmentLocal(ctx context.Context, __arg DownloadFileAttachmentLocalArg) (res DownloadAttachmentLocalRes, err error)
- func (c LocalClient) FindConversationsLocal(ctx context.Context, __arg FindConversationsLocalArg) (res FindConversationsLocalRes, err error)
- func (c LocalClient) GetConversationForCLILocal(ctx context.Context, query GetConversationForCLILocalQuery) (res GetConversationForCLILocalRes, err error)
- func (c LocalClient) GetInboxAndUnboxLocal(ctx context.Context, __arg GetInboxAndUnboxLocalArg) (res GetInboxAndUnboxLocalRes, err error)
- func (c LocalClient) GetInboxNonblockLocal(ctx context.Context, __arg GetInboxNonblockLocalArg) (res GetInboxNonblockLocalRes, err error)
- func (c LocalClient) GetInboxSummaryForCLILocal(ctx context.Context, query GetInboxSummaryForCLILocalQuery) (res GetInboxSummaryForCLILocalRes, err error)
- func (c LocalClient) GetMessagesLocal(ctx context.Context, __arg GetMessagesLocalArg) (res GetMessagesLocalRes, err error)
- func (c LocalClient) GetThreadLocal(ctx context.Context, __arg GetThreadLocalArg) (res GetThreadLocalRes, err error)
- func (c LocalClient) MarkAsReadLocal(ctx context.Context, __arg MarkAsReadLocalArg) (res MarkAsReadRes, err error)
- func (c LocalClient) NewConversationLocal(ctx context.Context, __arg NewConversationLocalArg) (res NewConversationLocalRes, err error)
- func (c LocalClient) PostAttachmentLocal(ctx context.Context, __arg PostAttachmentLocalArg) (res PostLocalRes, err error)
- func (c LocalClient) PostDeleteNonblock(ctx context.Context, __arg PostDeleteNonblockArg) (res PostLocalNonblockRes, err error)
- func (c LocalClient) PostEditNonblock(ctx context.Context, __arg PostEditNonblockArg) (res PostLocalNonblockRes, err error)
- func (c LocalClient) PostFileAttachmentLocal(ctx context.Context, __arg PostFileAttachmentLocalArg) (res PostLocalRes, err error)
- func (c LocalClient) PostLocal(ctx context.Context, __arg PostLocalArg) (res PostLocalRes, err error)
- func (c LocalClient) PostLocalNonblock(ctx context.Context, __arg PostLocalNonblockArg) (res PostLocalNonblockRes, err error)
- func (c LocalClient) PostTextNonblock(ctx context.Context, __arg PostTextNonblockArg) (res PostLocalNonblockRes, err error)
- func (c LocalClient) RetryPost(ctx context.Context, outboxID OutboxID) (err error)
- func (c LocalClient) SetConversationStatusLocal(ctx context.Context, __arg SetConversationStatusLocalArg) (res SetConversationStatusLocalRes, err error)
- type LocalFileSource
- type LocalInterface
- type LocalSource
- type MarkAsReadArg
- type MarkAsReadLocalArg
- type MarkAsReadRes
- type MerkleRoot
- type MessageAttachment
- type MessageAttachmentUploaded
- type MessageBody
- func NewMessageBodyWithAttachment(v MessageAttachment) MessageBody
- func NewMessageBodyWithAttachmentuploaded(v MessageAttachmentUploaded) MessageBody
- func NewMessageBodyWithDelete(v MessageDelete) MessageBody
- func NewMessageBodyWithEdit(v MessageEdit) MessageBody
- func NewMessageBodyWithHeadline(v MessageHeadline) MessageBody
- func NewMessageBodyWithMetadata(v MessageConversationMetadata) MessageBody
- func NewMessageBodyWithText(v MessageText) MessageBody
- func (o MessageBody) Attachment() MessageAttachment
- func (o MessageBody) Attachmentuploaded() MessageAttachmentUploaded
- func (o MessageBody) Delete() MessageDelete
- func (o MessageBody) Edit() MessageEdit
- func (o MessageBody) Headline() MessageHeadline
- func (o *MessageBody) MessageType() (ret MessageType, err error)
- func (o MessageBody) Metadata() MessageConversationMetadata
- func (o MessageBody) Text() MessageText
- type MessageBoxed
- type MessageBoxedVersion
- type MessageClientHeader
- type MessageClientHeaderVerified
- type MessageConversationMetadata
- type MessageDelete
- type MessageEdit
- type MessageHeadline
- type MessageID
- type MessagePlaintext
- type MessagePreviousPointer
- type MessageServerHeader
- type MessageText
- type MessageType
- type MessageUnboxed
- func (o MessageUnboxed) Error() MessageUnboxedError
- func (m MessageUnboxed) GetMessageID() MessageID
- func (m MessageUnboxed) GetMessageType() MessageType
- func (m MessageUnboxed) IsValid() bool
- func (o MessageUnboxed) Outbox() OutboxRecord
- func (o *MessageUnboxed) State() (ret MessageUnboxedState, err error)
- func (o MessageUnboxed) Valid() MessageUnboxedValid
- type MessageUnboxedError
- type MessageUnboxedErrorType
- type MessageUnboxedState
- type MessageUnboxedValid
- type NewChatActivityArg
- type NewConversationInfo
- type NewConversationLocalArg
- type NewConversationLocalRes
- type NewConversationPayload
- type NewConversationRemote2Arg
- type NewConversationRemoteArg
- type NewConversationRemoteRes
- type NewMessagePayload
- type NotifyChatClient
- func (c NotifyChatClient) ChatIdentifyUpdate(ctx context.Context, update keybase1.CanonicalTLFNameAndIDWithBreaks) (err error)
- func (c NotifyChatClient) ChatInboxStale(ctx context.Context, uid keybase1.UID) (err error)
- func (c NotifyChatClient) ChatTLFFinalize(ctx context.Context, __arg ChatTLFFinalizeArg) (err error)
- func (c NotifyChatClient) ChatTLFResolve(ctx context.Context, __arg ChatTLFResolveArg) (err error)
- func (c NotifyChatClient) ChatThreadsStale(ctx context.Context, __arg ChatThreadsStaleArg) (err error)
- func (c NotifyChatClient) NewChatActivity(ctx context.Context, __arg NewChatActivityArg) (err error)
- type NotifyChatInterface
- type OutboxErrorType
- type OutboxID
- type OutboxInfo
- type OutboxRecord
- type OutboxState
- type OutboxStateError
- type OutboxStateType
- type Pagination
- type PostAttachmentLocalArg
- type PostDeleteNonblockArg
- type PostEditNonblockArg
- type PostFileAttachmentLocalArg
- type PostLocalArg
- type PostLocalNonblockArg
- type PostLocalNonblockRes
- type PostLocalRes
- type PostRemoteArg
- type PostRemoteRes
- type PostTextNonblockArg
- type PublishReadMessageArg
- type PublishSetConversationStatusArg
- type RateLimit
- type ReadMessageInfo
- type ReadMessagePayload
- type RemoteClient
- func (c RemoteClient) GetInboxRemote(ctx context.Context, __arg GetInboxRemoteArg) (res GetInboxRemoteRes, err error)
- func (c RemoteClient) GetInboxVersion(ctx context.Context, uid gregor1.UID) (res InboxVers, err error)
- func (c RemoteClient) GetMessagesRemote(ctx context.Context, __arg GetMessagesRemoteArg) (res GetMessagesRemoteRes, err error)
- func (c RemoteClient) GetPublicConversations(ctx context.Context, __arg GetPublicConversationsArg) (res GetPublicConversationsRes, err error)
- func (c RemoteClient) GetS3Params(ctx context.Context, conversationID ConversationID) (res S3Params, err error)
- func (c RemoteClient) GetThreadRemote(ctx context.Context, __arg GetThreadRemoteArg) (res GetThreadRemoteRes, err error)
- func (c RemoteClient) GetUnreadUpdateFull(ctx context.Context, inboxVers InboxVers) (res UnreadUpdateFull, err error)
- func (c RemoteClient) MarkAsRead(ctx context.Context, __arg MarkAsReadArg) (res MarkAsReadRes, err error)
- func (c RemoteClient) NewConversationRemote(ctx context.Context, idTriple ConversationIDTriple) (res NewConversationRemoteRes, err error)
- func (c RemoteClient) NewConversationRemote2(ctx context.Context, __arg NewConversationRemote2Arg) (res NewConversationRemoteRes, err error)
- func (c RemoteClient) PostRemote(ctx context.Context, __arg PostRemoteArg) (res PostRemoteRes, err error)
- func (c RemoteClient) PublishReadMessage(ctx context.Context, __arg PublishReadMessageArg) (err error)
- func (c RemoteClient) PublishSetConversationStatus(ctx context.Context, __arg PublishSetConversationStatusArg) (err error)
- func (c RemoteClient) S3Sign(ctx context.Context, __arg S3SignArg) (res []byte, err error)
- func (c RemoteClient) SetConversationStatus(ctx context.Context, __arg SetConversationStatusArg) (res SetConversationStatusRes, err error)
- func (c RemoteClient) TlfFinalize(ctx context.Context, __arg TlfFinalizeArg) (err error)
- func (c RemoteClient) TlfResolve(ctx context.Context, __arg TlfResolveArg) (err error)
- type RemoteInterface
- type RetryPostArg
- type S3Params
- type S3SignArg
- type SealedData
- type SetConversationStatusArg
- type SetConversationStatusLocalArg
- type SetConversationStatusLocalRes
- type SetConversationStatusRes
- type SetStatusInfo
- type SetStatusPayload
- type SignEncryptedData
- type SignatureInfo
- type TLFFinalizeUpdate
- type TLFID
- type TLFResolveUpdate
- type TLFVisibility
- type ThreadID
- type ThreadView
- type ThreadViewBoxed
- type TlfFinalizeArg
- type TlfResolveArg
- type TopicID
- type TopicType
- type UnreadFirstNumLimit
- type UnreadUpdate
- type UnreadUpdateFull
Constants ¶
const DbShortFormLen = 10
Variables ¶
var AssetMetadataTypeMap = map[string]AssetMetadataType{
"NONE": 0,
"IMAGE": 1,
"VIDEO": 2,
"AUDIO": 3,
}
var AssetMetadataTypeRevMap = map[AssetMetadataType]string{
0: "NONE",
1: "IMAGE",
2: "VIDEO",
3: "AUDIO",
}
var AssetTagMap = map[string]AssetTag{
"PRIMARY": 0,
}
var AssetTagRevMap = map[AssetTag]string{
0: "PRIMARY",
}
var BodyPlaintextVersionMap = map[string]BodyPlaintextVersion{
"V1": 1,
"V2": 2,
"V3": 3,
"V4": 4,
"V5": 5,
"V6": 6,
"V7": 7,
"V8": 8,
"V9": 9,
"V10": 10,
}
var BodyPlaintextVersionRevMap = map[BodyPlaintextVersion]string{
1: "V1",
2: "V2",
3: "V3",
4: "V4",
5: "V5",
6: "V6",
7: "V7",
8: "V8",
9: "V9",
10: "V10",
}
var ChatActivityTypeMap = map[string]ChatActivityType{
"RESERVED": 0,
"INCOMING_MESSAGE": 1,
"READ_MESSAGE": 2,
"NEW_CONVERSATION": 3,
"SET_STATUS": 4,
"FAILED_MESSAGE": 5,
}
var ChatActivityTypeRevMap = map[ChatActivityType]string{
0: "RESERVED",
1: "INCOMING_MESSAGE",
2: "READ_MESSAGE",
3: "NEW_CONVERSATION",
4: "SET_STATUS",
5: "FAILED_MESSAGE",
}
var ConversationErrorTypeMap = map[string]ConversationErrorType{
"MISC": 0,
"MISSINGINFO": 1,
"SELFREKEYNEEDED": 2,
"OTHERREKEYNEEDED": 3,
"IDENTIFY": 4,
"LOCALMAXMESSAGENOTFOUND": 5,
}
var ConversationErrorTypeRevMap = map[ConversationErrorType]string{
0: "MISC",
1: "MISSINGINFO",
2: "SELFREKEYNEEDED",
3: "OTHERREKEYNEEDED",
4: "IDENTIFY",
5: "LOCALMAXMESSAGENOTFOUND",
}
var ConversationStatusGregorMap = map[ConversationStatus]string{
ConversationStatus_UNFILED: "unfiled",
ConversationStatus_FAVORITE: "favorite",
ConversationStatus_IGNORED: "ignored",
ConversationStatus_BLOCKED: "blocked",
ConversationStatus_MUTED: "muted",
}
var ConversationStatusGregorRevMap = map[string]ConversationStatus{ "unfiled": ConversationStatus_UNFILED, "favorite": ConversationStatus_FAVORITE, "ignored": ConversationStatus_IGNORED, "blocked": ConversationStatus_BLOCKED, "muted": ConversationStatus_MUTED, }
var ConversationStatusMap = map[string]ConversationStatus{
"UNFILED": 0,
"FAVORITE": 1,
"IGNORED": 2,
"BLOCKED": 3,
"MUTED": 4,
}
var ConversationStatusRevMap = map[ConversationStatus]string{
0: "UNFILED",
1: "FAVORITE",
2: "IGNORED",
3: "BLOCKED",
4: "MUTED",
}
var HeaderPlaintextVersionMap = map[string]HeaderPlaintextVersion{
"V1": 1,
"V2": 2,
"V3": 3,
"V4": 4,
"V5": 5,
"V6": 6,
"V7": 7,
"V8": 8,
"V9": 9,
"V10": 10,
}
var HeaderPlaintextVersionRevMap = map[HeaderPlaintextVersion]string{
1: "V1",
2: "V2",
3: "V3",
4: "V4",
5: "V5",
6: "V6",
7: "V7",
8: "V8",
9: "V9",
10: "V10",
}
var InboxResTypeMap = map[string]InboxResType{
"VERSIONHIT": 0,
"FULL": 1,
}
var InboxResTypeRevMap = map[InboxResType]string{
0: "VERSIONHIT",
1: "FULL",
}
var MessageBoxedVersionMap = map[string]MessageBoxedVersion{
"VNONE": 0,
"V1": 1,
"V2": 2,
}
var MessageBoxedVersionRevMap = map[MessageBoxedVersion]string{
0: "VNONE",
1: "V1",
2: "V2",
}
var MessageTypeMap = map[string]MessageType{
"NONE": 0,
"TEXT": 1,
"ATTACHMENT": 2,
"EDIT": 3,
"DELETE": 4,
"METADATA": 5,
"TLFNAME": 6,
"HEADLINE": 7,
"ATTACHMENTUPLOADED": 8,
}
var MessageTypeRevMap = map[MessageType]string{
0: "NONE",
1: "TEXT",
2: "ATTACHMENT",
3: "EDIT",
4: "DELETE",
5: "METADATA",
6: "TLFNAME",
7: "HEADLINE",
8: "ATTACHMENTUPLOADED",
}
var MessageUnboxedErrorTypeMap = map[string]MessageUnboxedErrorType{
"MISC": 0,
"BADVERSION_CRITICAL": 1,
"BADVERSION": 2,
"IDENTIFY": 3,
}
var MessageUnboxedErrorTypeRevMap = map[MessageUnboxedErrorType]string{
0: "MISC",
1: "BADVERSION_CRITICAL",
2: "BADVERSION",
3: "IDENTIFY",
}
var MessageUnboxedStateMap = map[string]MessageUnboxedState{
"VALID": 1,
"ERROR": 2,
"OUTBOX": 3,
}
var MessageUnboxedStateRevMap = map[MessageUnboxedState]string{
1: "VALID",
2: "ERROR",
3: "OUTBOX",
}
var OutboxErrorTypeMap = map[string]OutboxErrorType{
"MISC": 0,
"OFFLINE": 1,
"IDENTIFY": 2,
"TOOLONG": 3,
}
var OutboxErrorTypeRevMap = map[OutboxErrorType]string{
0: "MISC",
1: "OFFLINE",
2: "IDENTIFY",
3: "TOOLONG",
}
var OutboxStateTypeMap = map[string]OutboxStateType{
"SENDING": 0,
"ERROR": 1,
}
var OutboxStateTypeRevMap = map[OutboxStateType]string{
0: "SENDING",
1: "ERROR",
}
var TLFVisibilityMap = map[string]TLFVisibility{
"ANY": 0,
"PUBLIC": 1,
"PRIVATE": 2,
}
var TLFVisibilityRevMap = map[TLFVisibility]string{
0: "ANY",
1: "PUBLIC",
2: "PRIVATE",
}
var TopicTypeMap = map[string]TopicType{
"NONE": 0,
"CHAT": 1,
"DEV": 2,
}
var TopicTypeRevMap = map[TopicType]string{
0: "NONE",
1: "CHAT",
2: "DEV",
}
Functions ¶
func ChatUiProtocol ¶
func ChatUiProtocol(i ChatUiInterface) rpc.Protocol
func CommonProtocol ¶
func CommonProtocol(i CommonInterface) rpc.Protocol
func ExpandTLFName ¶ added in v1.0.19
func ExpandTLFName(name string, finalizeInfo *ConversationFinalizeInfo) string
ExpandTLFName returns a TLF name with a reset suffix if it exists. This version can be used in requests to lookup the TLF.
func GregorProtocol ¶
func GregorProtocol(i GregorInterface) rpc.Protocol
func LocalProtocol ¶
func LocalProtocol(i LocalInterface) rpc.Protocol
func NotifyChatProtocol ¶
func NotifyChatProtocol(i NotifyChatInterface) rpc.Protocol
func RemoteProtocol ¶
func RemoteProtocol(i RemoteInterface) rpc.Protocol
Types ¶
type Asset ¶
type Asset struct { Filename string `codec:"filename" json:"filename"` Region string `codec:"region" json:"region"` Endpoint string `codec:"endpoint" json:"endpoint"` Bucket string `codec:"bucket" json:"bucket"` Path string `codec:"path" json:"path"` Size int `codec:"size" json:"size"` MimeType string `codec:"mimeType" json:"mimeType"` EncHash Hash `codec:"encHash" json:"encHash"` Key []byte `codec:"key" json:"key"` VerifyKey []byte `codec:"verifyKey" json:"verifyKey"` Title string `codec:"title" json:"title"` Nonce []byte `codec:"nonce" json:"nonce"` Metadata AssetMetadata `codec:"metadata" json:"metadata"` Tag AssetTag `codec:"tag" json:"tag"` }
type AssetMetadata ¶ added in v1.0.19
type AssetMetadata struct { AssetType__ AssetMetadataType `codec:"assetType" json:"assetType"` Image__ *AssetMetadataImage `codec:"image,omitempty" json:"image,omitempty"` Video__ *AssetMetadataVideo `codec:"video,omitempty" json:"video,omitempty"` Audio__ *AssetMetadataAudio `codec:"audio,omitempty" json:"audio,omitempty"` }
func NewAssetMetadataWithAudio ¶ added in v1.0.19
func NewAssetMetadataWithAudio(v AssetMetadataAudio) AssetMetadata
func NewAssetMetadataWithImage ¶ added in v1.0.19
func NewAssetMetadataWithImage(v AssetMetadataImage) AssetMetadata
func NewAssetMetadataWithVideo ¶ added in v1.0.19
func NewAssetMetadataWithVideo(v AssetMetadataVideo) AssetMetadata
func (*AssetMetadata) AssetType ¶ added in v1.0.19
func (o *AssetMetadata) AssetType() (ret AssetMetadataType, err error)
func (AssetMetadata) Audio ¶ added in v1.0.19
func (o AssetMetadata) Audio() AssetMetadataAudio
func (AssetMetadata) Image ¶ added in v1.0.19
func (o AssetMetadata) Image() AssetMetadataImage
func (AssetMetadata) Video ¶ added in v1.0.19
func (o AssetMetadata) Video() AssetMetadataVideo
type AssetMetadataAudio ¶ added in v1.0.19
type AssetMetadataAudio struct {
DurationMs int `codec:"durationMs" json:"durationMs"`
}
type AssetMetadataImage ¶ added in v1.0.19
type AssetMetadataType ¶ added in v1.0.19
type AssetMetadataType int
const ( AssetMetadataType_NONE AssetMetadataType = 0 AssetMetadataType_IMAGE AssetMetadataType = 1 AssetMetadataType_VIDEO AssetMetadataType = 2 AssetMetadataType_AUDIO AssetMetadataType = 3 )
type AssetMetadataVideo ¶ added in v1.0.19
type BodyPlaintext ¶
type BodyPlaintext struct { Version__ BodyPlaintextVersion `codec:"version" json:"version"` V1__ *BodyPlaintextV1 `codec:"v1,omitempty" json:"v1,omitempty"` V2__ *BodyPlaintextUnsupported `codec:"v2,omitempty" json:"v2,omitempty"` V3__ *BodyPlaintextUnsupported `codec:"v3,omitempty" json:"v3,omitempty"` V4__ *BodyPlaintextUnsupported `codec:"v4,omitempty" json:"v4,omitempty"` V5__ *BodyPlaintextUnsupported `codec:"v5,omitempty" json:"v5,omitempty"` V6__ *BodyPlaintextUnsupported `codec:"v6,omitempty" json:"v6,omitempty"` V7__ *BodyPlaintextUnsupported `codec:"v7,omitempty" json:"v7,omitempty"` V8__ *BodyPlaintextUnsupported `codec:"v8,omitempty" json:"v8,omitempty"` V9__ *BodyPlaintextUnsupported `codec:"v9,omitempty" json:"v9,omitempty"` V10__ *BodyPlaintextUnsupported `codec:"v10,omitempty" json:"v10,omitempty"` }
func NewBodyPlaintextWithV1 ¶
func NewBodyPlaintextWithV1(v BodyPlaintextV1) BodyPlaintext
func NewBodyPlaintextWithV10 ¶ added in v1.0.19
func NewBodyPlaintextWithV10(v BodyPlaintextUnsupported) BodyPlaintext
func NewBodyPlaintextWithV2 ¶ added in v1.0.19
func NewBodyPlaintextWithV2(v BodyPlaintextUnsupported) BodyPlaintext
func NewBodyPlaintextWithV3 ¶ added in v1.0.19
func NewBodyPlaintextWithV3(v BodyPlaintextUnsupported) BodyPlaintext
func NewBodyPlaintextWithV4 ¶ added in v1.0.19
func NewBodyPlaintextWithV4(v BodyPlaintextUnsupported) BodyPlaintext
func NewBodyPlaintextWithV5 ¶ added in v1.0.19
func NewBodyPlaintextWithV5(v BodyPlaintextUnsupported) BodyPlaintext
func NewBodyPlaintextWithV6 ¶ added in v1.0.19
func NewBodyPlaintextWithV6(v BodyPlaintextUnsupported) BodyPlaintext
func NewBodyPlaintextWithV7 ¶ added in v1.0.19
func NewBodyPlaintextWithV7(v BodyPlaintextUnsupported) BodyPlaintext
func NewBodyPlaintextWithV8 ¶ added in v1.0.19
func NewBodyPlaintextWithV8(v BodyPlaintextUnsupported) BodyPlaintext
func NewBodyPlaintextWithV9 ¶ added in v1.0.19
func NewBodyPlaintextWithV9(v BodyPlaintextUnsupported) BodyPlaintext
func (BodyPlaintext) V1 ¶
func (o BodyPlaintext) V1() BodyPlaintextV1
func (BodyPlaintext) V10 ¶ added in v1.0.19
func (o BodyPlaintext) V10() BodyPlaintextUnsupported
func (BodyPlaintext) V2 ¶ added in v1.0.19
func (o BodyPlaintext) V2() BodyPlaintextUnsupported
func (BodyPlaintext) V3 ¶ added in v1.0.19
func (o BodyPlaintext) V3() BodyPlaintextUnsupported
func (BodyPlaintext) V4 ¶ added in v1.0.19
func (o BodyPlaintext) V4() BodyPlaintextUnsupported
func (BodyPlaintext) V5 ¶ added in v1.0.19
func (o BodyPlaintext) V5() BodyPlaintextUnsupported
func (BodyPlaintext) V6 ¶ added in v1.0.19
func (o BodyPlaintext) V6() BodyPlaintextUnsupported
func (BodyPlaintext) V7 ¶ added in v1.0.19
func (o BodyPlaintext) V7() BodyPlaintextUnsupported
func (BodyPlaintext) V8 ¶ added in v1.0.19
func (o BodyPlaintext) V8() BodyPlaintextUnsupported
func (BodyPlaintext) V9 ¶ added in v1.0.19
func (o BodyPlaintext) V9() BodyPlaintextUnsupported
func (*BodyPlaintext) Version ¶
func (o *BodyPlaintext) Version() (ret BodyPlaintextVersion, err error)
type BodyPlaintextMetaInfo ¶ added in v1.0.19
type BodyPlaintextMetaInfo struct {
Crit bool `codec:"crit" json:"crit"`
}
type BodyPlaintextUnsupported ¶ added in v1.0.19
type BodyPlaintextUnsupported struct {
Mi BodyPlaintextMetaInfo `codec:"mi" json:"mi"`
}
type BodyPlaintextV1 ¶
type BodyPlaintextV1 struct {
MessageBody MessageBody `codec:"messageBody" json:"messageBody"`
}
type BodyPlaintextVersion ¶
type BodyPlaintextVersion int
const ( BodyPlaintextVersion_V1 BodyPlaintextVersion = 1 BodyPlaintextVersion_V2 BodyPlaintextVersion = 2 BodyPlaintextVersion_V3 BodyPlaintextVersion = 3 BodyPlaintextVersion_V4 BodyPlaintextVersion = 4 BodyPlaintextVersion_V5 BodyPlaintextVersion = 5 BodyPlaintextVersion_V6 BodyPlaintextVersion = 6 BodyPlaintextVersion_V7 BodyPlaintextVersion = 7 BodyPlaintextVersion_V8 BodyPlaintextVersion = 8 BodyPlaintextVersion_V9 BodyPlaintextVersion = 9 BodyPlaintextVersion_V10 BodyPlaintextVersion = 10 )
func (BodyPlaintextVersion) String ¶ added in v1.0.19
func (e BodyPlaintextVersion) String() string
type CancelPostArg ¶ added in v1.0.19
type CancelPostArg struct {
OutboxID OutboxID `codec:"outboxID" json:"outboxID"`
}
type ChatActivity ¶
type ChatActivity struct { ActivityType__ ChatActivityType `codec:"activityType" json:"activityType"` IncomingMessage__ *IncomingMessage `codec:"incomingMessage,omitempty" json:"incomingMessage,omitempty"` ReadMessage__ *ReadMessageInfo `codec:"readMessage,omitempty" json:"readMessage,omitempty"` NewConversation__ *NewConversationInfo `codec:"newConversation,omitempty" json:"newConversation,omitempty"` SetStatus__ *SetStatusInfo `codec:"setStatus,omitempty" json:"setStatus,omitempty"` FailedMessage__ *FailedMessageInfo `codec:"failedMessage,omitempty" json:"failedMessage,omitempty"` }
func NewChatActivityWithFailedMessage ¶ added in v1.0.19
func NewChatActivityWithFailedMessage(v FailedMessageInfo) ChatActivity
func NewChatActivityWithIncomingMessage ¶ added in v1.0.19
func NewChatActivityWithIncomingMessage(v IncomingMessage) ChatActivity
func NewChatActivityWithNewConversation ¶ added in v1.0.19
func NewChatActivityWithNewConversation(v NewConversationInfo) ChatActivity
func NewChatActivityWithReadMessage ¶ added in v1.0.19
func NewChatActivityWithReadMessage(v ReadMessageInfo) ChatActivity
func NewChatActivityWithSetStatus ¶ added in v1.0.19
func NewChatActivityWithSetStatus(v SetStatusInfo) ChatActivity
func (*ChatActivity) ActivityType ¶
func (o *ChatActivity) ActivityType() (ret ChatActivityType, err error)
func (ChatActivity) FailedMessage ¶ added in v1.0.19
func (o ChatActivity) FailedMessage() FailedMessageInfo
func (ChatActivity) IncomingMessage ¶
func (o ChatActivity) IncomingMessage() IncomingMessage
func (ChatActivity) NewConversation ¶ added in v1.0.19
func (o ChatActivity) NewConversation() NewConversationInfo
func (ChatActivity) ReadMessage ¶ added in v1.0.19
func (o ChatActivity) ReadMessage() ReadMessageInfo
func (ChatActivity) SetStatus ¶ added in v1.0.19
func (o ChatActivity) SetStatus() SetStatusInfo
type ChatActivityType ¶
type ChatActivityType int
const ( ChatActivityType_RESERVED ChatActivityType = 0 ChatActivityType_INCOMING_MESSAGE ChatActivityType = 1 ChatActivityType_READ_MESSAGE ChatActivityType = 2 ChatActivityType_NEW_CONVERSATION ChatActivityType = 3 ChatActivityType_SET_STATUS ChatActivityType = 4 ChatActivityType_FAILED_MESSAGE ChatActivityType = 5 )
func (ChatActivityType) String ¶ added in v1.0.19
func (e ChatActivityType) String() string
type ChatAttachmentDownloadDoneArg ¶
type ChatAttachmentDownloadDoneArg struct {
SessionID int `codec:"sessionID" json:"sessionID"`
}
type ChatAttachmentDownloadStartArg ¶
type ChatAttachmentDownloadStartArg struct {
SessionID int `codec:"sessionID" json:"sessionID"`
}
type ChatAttachmentPreviewUploadDoneArg ¶
type ChatAttachmentPreviewUploadDoneArg struct {
SessionID int `codec:"sessionID" json:"sessionID"`
}
type ChatAttachmentPreviewUploadStartArg ¶
type ChatAttachmentPreviewUploadStartArg struct { SessionID int `codec:"sessionID" json:"sessionID"` Metadata AssetMetadata `codec:"metadata" json:"metadata"` }
type ChatAttachmentUploadDoneArg ¶
type ChatAttachmentUploadDoneArg struct {
SessionID int `codec:"sessionID" json:"sessionID"`
}
type ChatAttachmentUploadStartArg ¶
type ChatAttachmentUploadStartArg struct { SessionID int `codec:"sessionID" json:"sessionID"` Metadata AssetMetadata `codec:"metadata" json:"metadata"` PlaceholderMsgID MessageID `codec:"placeholderMsgID" json:"placeholderMsgID"` }
type ChatIdentifyUpdateArg ¶ added in v1.0.19
type ChatIdentifyUpdateArg struct {
Update keybase1.CanonicalTLFNameAndIDWithBreaks `codec:"update" json:"update"`
}
type ChatInboxConversationArg ¶ added in v1.0.19
type ChatInboxConversationArg struct { SessionID int `codec:"sessionID" json:"sessionID"` Conv ConversationLocal `codec:"conv" json:"conv"` }
type ChatInboxFailedArg ¶ added in v1.0.19
type ChatInboxFailedArg struct { SessionID int `codec:"sessionID" json:"sessionID"` ConvID ConversationID `codec:"convID" json:"convID"` Error ConversationErrorLocal `codec:"error" json:"error"` }
type ChatInboxStaleArg ¶ added in v1.0.19
type ChatInboxUnverifiedArg ¶ added in v1.0.19
type ChatInboxUnverifiedArg struct { SessionID int `codec:"sessionID" json:"sessionID"` Inbox GetInboxLocalRes `codec:"inbox" json:"inbox"` }
type ChatTLFFinalizeArg ¶ added in v1.0.19
type ChatTLFFinalizeArg struct { Uid keybase1.UID `codec:"uid" json:"uid"` ConvID ConversationID `codec:"convID" json:"convID"` FinalizeInfo ConversationFinalizeInfo `codec:"finalizeInfo" json:"finalizeInfo"` Conv *ConversationLocal `codec:"conv,omitempty" json:"conv,omitempty"` }
type ChatTLFResolveArg ¶ added in v1.0.19
type ChatTLFResolveArg struct { Uid keybase1.UID `codec:"uid" json:"uid"` ConvID ConversationID `codec:"convID" json:"convID"` ResolveInfo ConversationResolveInfo `codec:"resolveInfo" json:"resolveInfo"` }
type ChatThreadsStaleArg ¶ added in v1.0.19
type ChatThreadsStaleArg struct { Uid keybase1.UID `codec:"uid" json:"uid"` ConvIDs []ConversationID `codec:"convIDs" json:"convIDs"` }
type ChatUiClient ¶
type ChatUiClient struct {
Cli rpc.GenericClient
}
func (ChatUiClient) ChatAttachmentDownloadDone ¶
func (c ChatUiClient) ChatAttachmentDownloadDone(ctx context.Context, sessionID int) (err error)
func (ChatUiClient) ChatAttachmentDownloadProgress ¶
func (c ChatUiClient) ChatAttachmentDownloadProgress(ctx context.Context, __arg ChatAttachmentDownloadProgressArg) (err error)
func (ChatUiClient) ChatAttachmentDownloadStart ¶
func (c ChatUiClient) ChatAttachmentDownloadStart(ctx context.Context, sessionID int) (err error)
func (ChatUiClient) ChatAttachmentPreviewUploadDone ¶
func (c ChatUiClient) ChatAttachmentPreviewUploadDone(ctx context.Context, sessionID int) (err error)
func (ChatUiClient) ChatAttachmentPreviewUploadStart ¶
func (c ChatUiClient) ChatAttachmentPreviewUploadStart(ctx context.Context, __arg ChatAttachmentPreviewUploadStartArg) (err error)
func (ChatUiClient) ChatAttachmentUploadDone ¶
func (c ChatUiClient) ChatAttachmentUploadDone(ctx context.Context, sessionID int) (err error)
func (ChatUiClient) ChatAttachmentUploadProgress ¶
func (c ChatUiClient) ChatAttachmentUploadProgress(ctx context.Context, __arg ChatAttachmentUploadProgressArg) (err error)
func (ChatUiClient) ChatAttachmentUploadStart ¶
func (c ChatUiClient) ChatAttachmentUploadStart(ctx context.Context, __arg ChatAttachmentUploadStartArg) (err error)
func (ChatUiClient) ChatInboxConversation ¶ added in v1.0.19
func (c ChatUiClient) ChatInboxConversation(ctx context.Context, __arg ChatInboxConversationArg) (err error)
func (ChatUiClient) ChatInboxFailed ¶ added in v1.0.19
func (c ChatUiClient) ChatInboxFailed(ctx context.Context, __arg ChatInboxFailedArg) (err error)
func (ChatUiClient) ChatInboxUnverified ¶ added in v1.0.19
func (c ChatUiClient) ChatInboxUnverified(ctx context.Context, __arg ChatInboxUnverifiedArg) (err error)
type ChatUiInterface ¶
type ChatUiInterface interface { ChatAttachmentUploadStart(context.Context, ChatAttachmentUploadStartArg) error ChatAttachmentUploadProgress(context.Context, ChatAttachmentUploadProgressArg) error ChatAttachmentUploadDone(context.Context, int) error ChatAttachmentPreviewUploadStart(context.Context, ChatAttachmentPreviewUploadStartArg) error ChatAttachmentPreviewUploadDone(context.Context, int) error ChatAttachmentDownloadStart(context.Context, int) error ChatAttachmentDownloadProgress(context.Context, ChatAttachmentDownloadProgressArg) error ChatAttachmentDownloadDone(context.Context, int) error ChatInboxUnverified(context.Context, ChatInboxUnverifiedArg) error ChatInboxConversation(context.Context, ChatInboxConversationArg) error ChatInboxFailed(context.Context, ChatInboxFailedArg) error }
type CommonClient ¶
type CommonClient struct {
Cli rpc.GenericClient
}
type CommonInterface ¶
type CommonInterface interface { }
type Conversation ¶
type Conversation struct { Metadata ConversationMetadata `codec:"metadata" json:"metadata"` ReaderInfo *ConversationReaderInfo `codec:"readerInfo,omitempty" json:"readerInfo,omitempty"` MaxMsgs []MessageBoxed `codec:"maxMsgs" json:"maxMsgs"` }
func (Conversation) GetConvID ¶ added in v1.0.19
func (c Conversation) GetConvID() ConversationID
func (Conversation) GetMaxMessage ¶ added in v1.0.19
func (c Conversation) GetMaxMessage(typ MessageType) (MessageBoxed, error)
func (Conversation) GetMtime ¶ added in v1.0.19
func (c Conversation) GetMtime() gregor1.Time
type ConversationErrorLocal ¶ added in v1.0.19
type ConversationErrorLocal struct { Typ ConversationErrorType `codec:"typ" json:"typ"` Message string `codec:"message" json:"message"` RemoteConv Conversation `codec:"remoteConv" json:"remoteConv"` Permanent bool `codec:"permanent" json:"permanent"` UnverifiedTLFName string `codec:"unverifiedTLFName" json:"unverifiedTLFName"` RekeyInfo *ConversationErrorRekey `codec:"rekeyInfo,omitempty" json:"rekeyInfo,omitempty"` }
func NewConversationErrorLocal ¶ added in v1.0.19
func NewConversationErrorLocal( message string, remoteConv Conversation, permanent bool, unverifiedTLFName string, typ ConversationErrorType, rekeyInfo *ConversationErrorRekey, ) *ConversationErrorLocal
type ConversationErrorRekey ¶ added in v1.0.19
type ConversationErrorRekey struct { TlfName string `codec:"tlfName" json:"tlfName"` TlfPublic bool `codec:"tlfPublic" json:"tlfPublic"` Rekeyers []string `codec:"rekeyers" json:"rekeyers"` WriterNames []string `codec:"writerNames" json:"writerNames"` ReaderNames []string `codec:"readerNames" json:"readerNames"` }
type ConversationErrorType ¶ added in v1.0.19
type ConversationErrorType int
const ( ConversationErrorType_MISC ConversationErrorType = 0 ConversationErrorType_MISSINGINFO ConversationErrorType = 1 ConversationErrorType_SELFREKEYNEEDED ConversationErrorType = 2 ConversationErrorType_OTHERREKEYNEEDED ConversationErrorType = 3 ConversationErrorType_IDENTIFY ConversationErrorType = 4 ConversationErrorType_LOCALMAXMESSAGENOTFOUND ConversationErrorType = 5 )
func (ConversationErrorType) String ¶ added in v1.0.19
func (e ConversationErrorType) String() string
type ConversationFinalizeInfo ¶ added in v1.0.19
type ConversationFinalizeInfo struct { ResetUser string `codec:"resetUser" json:"resetUser"` ResetDate string `codec:"resetDate" json:"resetDate"` ResetFull string `codec:"resetFull" json:"resetFull"` ResetTimestamp gregor1.Time `codec:"resetTimestamp" json:"resetTimestamp"` }
func (*ConversationFinalizeInfo) BeforeSummary ¶ added in v1.0.19
func (f *ConversationFinalizeInfo) BeforeSummary() string
BeforeSummary returns a summary of the finalize without "files" in it. The canonical name for a TLF after reset has a "(files before ... account reset...)" suffix which doesn't make much sense in other uses (like chat).
type ConversationID ¶
type ConversationID []byte
func MakeConvID ¶
func MakeConvID(val string) (ConversationID, error)
func (ConversationID) DbShortForm ¶ added in v1.0.19
func (cid ConversationID) DbShortForm() []byte
DbShortForm should only be used when interacting with the database, and should never leave Gregor
func (ConversationID) Eq ¶
func (cid ConversationID) Eq(c ConversationID) bool
func (ConversationID) IsNil ¶
func (cid ConversationID) IsNil() bool
func (ConversationID) Less ¶
func (cid ConversationID) Less(c ConversationID) bool
func (ConversationID) String ¶
func (cid ConversationID) String() string
type ConversationIDTriple ¶
type ConversationIDTriple struct { Tlfid TLFID `codec:"tlfid" json:"tlfid"` TopicType TopicType `codec:"topicType" json:"topicType"` TopicID TopicID `codec:"topicID" json:"topicID"` }
func (ConversationIDTriple) Derivable ¶ added in v1.0.19
func (t ConversationIDTriple) Derivable(cid ConversationID) bool
func (ConversationIDTriple) Eq ¶
func (t ConversationIDTriple) Eq(other ConversationIDTriple) bool
func (ConversationIDTriple) Hash ¶ added in v1.0.19
func (t ConversationIDTriple) Hash() []byte
func (ConversationIDTriple) ToConversationID ¶ added in v1.0.19
func (t ConversationIDTriple) ToConversationID(shardID [2]byte) ConversationID
type ConversationInfoLocal ¶
type ConversationInfoLocal struct { Id ConversationID `codec:"id" json:"id"` Triple ConversationIDTriple `codec:"triple" json:"triple"` TlfName string `codec:"tlfName" json:"tlfName"` TopicName string `codec:"topicName" json:"topicName"` Visibility TLFVisibility `codec:"visibility" json:"visibility"` Status ConversationStatus `codec:"status" json:"status"` WriterNames []string `codec:"writerNames" json:"writerNames"` ReaderNames []string `codec:"readerNames" json:"readerNames"` FinalizeInfo *ConversationFinalizeInfo `codec:"finalizeInfo,omitempty" json:"finalizeInfo,omitempty"` }
func (ConversationInfoLocal) TLFNameExpanded ¶ added in v1.0.19
func (c ConversationInfoLocal) TLFNameExpanded() string
TLFNameExpanded returns a TLF name with a reset suffix if it exists. This version can be used in requests to lookup the TLF.
func (ConversationInfoLocal) TLFNameExpandedSummary ¶ added in v1.0.19
func (c ConversationInfoLocal) TLFNameExpandedSummary() string
TLFNameExpandedSummary returns a TLF name with a summary of the account reset if there was one. This version is for display purposes only and connot be used to lookup the TLF.
type ConversationLocal ¶
type ConversationLocal struct { Error *ConversationErrorLocal `codec:"error,omitempty" json:"error,omitempty"` Info ConversationInfoLocal `codec:"info" json:"info"` ReaderInfo ConversationReaderInfo `codec:"readerInfo" json:"readerInfo"` Supersedes []ConversationMetadata `codec:"supersedes" json:"supersedes"` SupersededBy []ConversationMetadata `codec:"supersededBy" json:"supersededBy"` MaxMessages []MessageUnboxed `codec:"maxMessages" json:"maxMessages"` IsEmpty bool `codec:"isEmpty" json:"isEmpty"` IdentifyFailures []keybase1.TLFIdentifyFailure `codec:"identifyFailures" json:"identifyFailures"` }
func (ConversationLocal) GetConvID ¶ added in v1.0.19
func (c ConversationLocal) GetConvID() ConversationID
func (ConversationLocal) GetMtime ¶ added in v1.0.19
func (c ConversationLocal) GetMtime() gregor1.Time
type ConversationMetadata ¶
type ConversationMetadata struct { IdTriple ConversationIDTriple `codec:"idTriple" json:"idTriple"` ConversationID ConversationID `codec:"conversationID" json:"conversationID"` Visibility TLFVisibility `codec:"visibility" json:"visibility"` Status ConversationStatus `codec:"status" json:"status"` FinalizeInfo *ConversationFinalizeInfo `codec:"finalizeInfo,omitempty" json:"finalizeInfo,omitempty"` Supersedes []ConversationMetadata `codec:"supersedes" json:"supersedes"` SupersededBy []ConversationMetadata `codec:"supersededBy" json:"supersededBy"` ActiveList []gregor1.UID `codec:"activeList" json:"activeList"` }
type ConversationReaderInfo ¶
type ConversationResolveInfo ¶ added in v1.0.19
type ConversationResolveInfo struct {
NewTLFName string `codec:"newTLFName" json:"newTLFName"`
}
type ConversationStatus ¶
type ConversationStatus int
const ( ConversationStatus_UNFILED ConversationStatus = 0 ConversationStatus_FAVORITE ConversationStatus = 1 ConversationStatus_IGNORED ConversationStatus = 2 ConversationStatus_BLOCKED ConversationStatus = 3 ConversationStatus_MUTED ConversationStatus = 4 )
func (ConversationStatus) String ¶ added in v1.0.19
func (e ConversationStatus) String() string
type DownloadAttachmentLocalArg ¶
type DownloadAttachmentLocalArg struct { SessionID int `codec:"sessionID" json:"sessionID"` ConversationID ConversationID `codec:"conversationID" json:"conversationID"` MessageID MessageID `codec:"messageID" json:"messageID"` Sink keybase1.Stream `codec:"sink" json:"sink"` Preview bool `codec:"preview" json:"preview"` IdentifyBehavior keybase1.TLFIdentifyBehavior `codec:"identifyBehavior" json:"identifyBehavior"` }
type DownloadAttachmentLocalRes ¶
type DownloadAttachmentLocalRes struct { RateLimits []RateLimit `codec:"rateLimits" json:"rateLimits"` IdentifyFailures []keybase1.TLFIdentifyFailure `codec:"identifyFailures" json:"identifyFailures"` }
type DownloadFileAttachmentLocalArg ¶ added in v1.0.19
type DownloadFileAttachmentLocalArg struct { SessionID int `codec:"sessionID" json:"sessionID"` ConversationID ConversationID `codec:"conversationID" json:"conversationID"` MessageID MessageID `codec:"messageID" json:"messageID"` Filename string `codec:"filename" json:"filename"` Preview bool `codec:"preview" json:"preview"` IdentifyBehavior keybase1.TLFIdentifyBehavior `codec:"identifyBehavior" json:"identifyBehavior"` }
type EncryptedData ¶
type EncryptedData struct { V int `codec:"v" json:"v"` E []byte `codec:"e" json:"e"` N []byte `codec:"n" json:"n"` }
func (*EncryptedData) AsSealed ¶ added in v1.0.19
func (d *EncryptedData) AsSealed() SealedData
type FailedMessageInfo ¶ added in v1.0.19
type FailedMessageInfo struct {
OutboxRecords []OutboxRecord `codec:"outboxRecords" json:"outboxRecords"`
}
type FindConversationsLocalArg ¶ added in v1.0.19
type FindConversationsLocalArg struct { TlfName string `codec:"tlfName" json:"tlfName"` Visibility TLFVisibility `codec:"visibility" json:"visibility"` TopicType TopicType `codec:"topicType" json:"topicType"` TopicName string `codec:"topicName" json:"topicName"` OneChatPerTLF *bool `codec:"oneChatPerTLF,omitempty" json:"oneChatPerTLF,omitempty"` IdentifyBehavior keybase1.TLFIdentifyBehavior `codec:"identifyBehavior" json:"identifyBehavior"` }
type FindConversationsLocalRes ¶ added in v1.0.19
type FindConversationsLocalRes struct { Conversations []ConversationLocal `codec:"conversations" json:"conversations"` Offline bool `codec:"offline" json:"offline"` RateLimits []RateLimit `codec:"rateLimits" json:"rateLimits"` IdentifyFailures []keybase1.TLFIdentifyFailure `codec:"identifyFailures" json:"identifyFailures"` }
type GenericPayload ¶
type GenericPayload struct {
Action string `codec:"Action" json:"Action"`
}
type GetConversationForCLILocalArg ¶
type GetConversationForCLILocalArg struct {
Query GetConversationForCLILocalQuery `codec:"query" json:"query"`
}
type GetConversationForCLILocalQuery ¶
type GetConversationForCLILocalQuery struct { MarkAsRead bool `codec:"markAsRead" json:"markAsRead"` MessageTypes []MessageType `codec:"MessageTypes" json:"MessageTypes"` Since *string `codec:"Since,omitempty" json:"Since,omitempty"` Limit UnreadFirstNumLimit `codec:"limit" json:"limit"` Conv ConversationLocal `codec:"conv" json:"conv"` }
type GetConversationForCLILocalRes ¶
type GetConversationForCLILocalRes struct { Conversation ConversationLocal `codec:"conversation" json:"conversation"` Messages []MessageUnboxed `codec:"messages" json:"messages"` Offline bool `codec:"offline" json:"offline"` RateLimits []RateLimit `codec:"rateLimits" json:"rateLimits"` }
type GetConversationMetadataRemoteRes ¶
type GetConversationMetadataRemoteRes struct { Conv Conversation `codec:"conv" json:"conv"` RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"` }
type GetInboxAndUnboxLocalArg ¶
type GetInboxAndUnboxLocalArg struct { Query *GetInboxLocalQuery `codec:"query,omitempty" json:"query,omitempty"` Pagination *Pagination `codec:"pagination,omitempty" json:"pagination,omitempty"` IdentifyBehavior keybase1.TLFIdentifyBehavior `codec:"identifyBehavior" json:"identifyBehavior"` }
type GetInboxAndUnboxLocalRes ¶
type GetInboxAndUnboxLocalRes struct { Conversations []ConversationLocal `codec:"conversations" json:"conversations"` Pagination *Pagination `codec:"pagination,omitempty" json:"pagination,omitempty"` Offline bool `codec:"offline" json:"offline"` RateLimits []RateLimit `codec:"rateLimits" json:"rateLimits"` IdentifyFailures []keybase1.TLFIdentifyFailure `codec:"identifyFailures" json:"identifyFailures"` }
type GetInboxByTLFIDRemoteRes ¶
type GetInboxByTLFIDRemoteRes struct { Convs []Conversation `codec:"convs" json:"convs"` RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"` }
type GetInboxLocalQuery ¶
type GetInboxLocalQuery struct { TlfName *string `codec:"tlfName,omitempty" json:"tlfName,omitempty"` TopicName *string `codec:"topicName,omitempty" json:"topicName,omitempty"` ConvID *ConversationID `codec:"convID,omitempty" json:"convID,omitempty"` TopicType *TopicType `codec:"topicType,omitempty" json:"topicType,omitempty"` TlfVisibility *TLFVisibility `codec:"tlfVisibility,omitempty" json:"tlfVisibility,omitempty"` Before *gregor1.Time `codec:"before,omitempty" json:"before,omitempty"` After *gregor1.Time `codec:"after,omitempty" json:"after,omitempty"` OneChatTypePerTLF *bool `codec:"oneChatTypePerTLF,omitempty" json:"oneChatTypePerTLF,omitempty"` Status []ConversationStatus `codec:"status" json:"status"` UnreadOnly bool `codec:"unreadOnly" json:"unreadOnly"` ReadOnly bool `codec:"readOnly" json:"readOnly"` ComputeActiveList bool `codec:"computeActiveList" json:"computeActiveList"` }
func (*GetInboxLocalQuery) Visibility ¶ added in v1.0.19
func (q *GetInboxLocalQuery) Visibility() TLFVisibility
Visibility is a helper to get around a nil pointer for visibility, and to get around TLFVisibility_ANY. The default is PRIVATE. Note: not sure why visibility is a pointer, or what TLFVisibility_ANY is for, but don't want to change the API.
type GetInboxLocalRes ¶
type GetInboxLocalRes struct { ConversationsUnverified []Conversation `codec:"conversationsUnverified" json:"conversationsUnverified"` Pagination *Pagination `codec:"pagination,omitempty" json:"pagination,omitempty"` Offline bool `codec:"offline" json:"offline"` RateLimits []RateLimit `codec:"rateLimits" json:"rateLimits"` IdentifyFailures []keybase1.TLFIdentifyFailure `codec:"identifyFailures" json:"identifyFailures"` }
type GetInboxNonblockLocalArg ¶ added in v1.0.19
type GetInboxNonblockLocalArg struct { SessionID int `codec:"sessionID" json:"sessionID"` Query *GetInboxLocalQuery `codec:"query,omitempty" json:"query,omitempty"` Pagination *Pagination `codec:"pagination,omitempty" json:"pagination,omitempty"` IdentifyBehavior keybase1.TLFIdentifyBehavior `codec:"identifyBehavior" json:"identifyBehavior"` }
type GetInboxNonblockLocalRes ¶ added in v1.0.19
type GetInboxNonblockLocalRes struct { Offline bool `codec:"offline" json:"offline"` RateLimits []RateLimit `codec:"rateLimits" json:"rateLimits"` IdentifyFailures []keybase1.TLFIdentifyFailure `codec:"identifyFailures" json:"identifyFailures"` }
type GetInboxQuery ¶
type GetInboxQuery struct { ConvID *ConversationID `codec:"convID,omitempty" json:"convID,omitempty"` TopicType *TopicType `codec:"topicType,omitempty" json:"topicType,omitempty"` TlfID *TLFID `codec:"tlfID,omitempty" json:"tlfID,omitempty"` TlfVisibility *TLFVisibility `codec:"tlfVisibility,omitempty" json:"tlfVisibility,omitempty"` Before *gregor1.Time `codec:"before,omitempty" json:"before,omitempty"` After *gregor1.Time `codec:"after,omitempty" json:"after,omitempty"` OneChatTypePerTLF *bool `codec:"oneChatTypePerTLF,omitempty" json:"oneChatTypePerTLF,omitempty"` Status []ConversationStatus `codec:"status" json:"status"` UnreadOnly bool `codec:"unreadOnly" json:"unreadOnly"` ReadOnly bool `codec:"readOnly" json:"readOnly"` ComputeActiveList bool `codec:"computeActiveList" json:"computeActiveList"` }
func (*GetInboxQuery) Visibility ¶ added in v1.0.19
func (q *GetInboxQuery) Visibility() TLFVisibility
Visibility is a helper to get around a nil pointer for visibility, and to get around TLFVisibility_ANY. The default is PRIVATE. Note: not sure why visibility is a pointer, or what TLFVisibility_ANY is for, but don't want to change the API.
type GetInboxRemoteArg ¶
type GetInboxRemoteArg struct { Vers InboxVers `codec:"vers" json:"vers"` Query *GetInboxQuery `codec:"query,omitempty" json:"query,omitempty"` Pagination *Pagination `codec:"pagination,omitempty" json:"pagination,omitempty"` }
type GetInboxRemoteRes ¶
type GetInboxSummaryForCLILocalArg ¶
type GetInboxSummaryForCLILocalArg struct {
Query GetInboxSummaryForCLILocalQuery `codec:"query" json:"query"`
}
type GetInboxSummaryForCLILocalQuery ¶
type GetInboxSummaryForCLILocalQuery struct { TopicType TopicType `codec:"topicType" json:"topicType"` After string `codec:"after" json:"after"` Before string `codec:"before" json:"before"` Visibility TLFVisibility `codec:"visibility" json:"visibility"` Status []ConversationStatus `codec:"status" json:"status"` UnreadFirst bool `codec:"unreadFirst" json:"unreadFirst"` UnreadFirstLimit UnreadFirstNumLimit `codec:"unreadFirstLimit" json:"unreadFirstLimit"` ActivitySortedLimit int `codec:"activitySortedLimit" json:"activitySortedLimit"` }
type GetInboxSummaryForCLILocalRes ¶
type GetInboxSummaryForCLILocalRes struct { Conversations []ConversationLocal `codec:"conversations" json:"conversations"` Offline bool `codec:"offline" json:"offline"` RateLimits []RateLimit `codec:"rateLimits" json:"rateLimits"` }
type GetInboxVersionArg ¶ added in v1.0.19
type GetMessagesLocalArg ¶
type GetMessagesLocalArg struct { ConversationID ConversationID `codec:"conversationID" json:"conversationID"` MessageIDs []MessageID `codec:"messageIDs" json:"messageIDs"` DisableResolveSupersedes bool `codec:"disableResolveSupersedes" json:"disableResolveSupersedes"` IdentifyBehavior keybase1.TLFIdentifyBehavior `codec:"identifyBehavior" json:"identifyBehavior"` }
type GetMessagesLocalRes ¶
type GetMessagesLocalRes struct { Messages []MessageUnboxed `codec:"messages" json:"messages"` Offline bool `codec:"offline" json:"offline"` RateLimits []RateLimit `codec:"rateLimits" json:"rateLimits"` IdentifyFailures []keybase1.TLFIdentifyFailure `codec:"identifyFailures" json:"identifyFailures"` }
type GetMessagesRemoteArg ¶
type GetMessagesRemoteArg struct { ConversationID ConversationID `codec:"conversationID" json:"conversationID"` MessageIDs []MessageID `codec:"messageIDs" json:"messageIDs"` }
type GetMessagesRemoteRes ¶
type GetMessagesRemoteRes struct { Msgs []MessageBoxed `codec:"msgs" json:"msgs"` RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"` }
type GetPublicConversationsArg ¶ added in v1.0.19
type GetPublicConversationsRes ¶ added in v1.0.19
type GetPublicConversationsRes struct { Conversations []Conversation `codec:"conversations" json:"conversations"` RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"` }
type GetS3ParamsArg ¶
type GetS3ParamsArg struct {
ConversationID ConversationID `codec:"conversationID" json:"conversationID"`
}
type GetThreadLocalArg ¶
type GetThreadLocalArg struct { ConversationID ConversationID `codec:"conversationID" json:"conversationID"` Query *GetThreadQuery `codec:"query,omitempty" json:"query,omitempty"` Pagination *Pagination `codec:"pagination,omitempty" json:"pagination,omitempty"` IdentifyBehavior keybase1.TLFIdentifyBehavior `codec:"identifyBehavior" json:"identifyBehavior"` }
type GetThreadLocalRes ¶
type GetThreadLocalRes struct { Thread ThreadView `codec:"thread" json:"thread"` Offline bool `codec:"offline" json:"offline"` RateLimits []RateLimit `codec:"rateLimits" json:"rateLimits"` IdentifyFailures []keybase1.TLFIdentifyFailure `codec:"identifyFailures" json:"identifyFailures"` }
type GetThreadQuery ¶
type GetThreadQuery struct { MarkAsRead bool `codec:"markAsRead" json:"markAsRead"` MessageTypes []MessageType `codec:"messageTypes" json:"messageTypes"` DisableResolveSupersedes bool `codec:"disableResolveSupersedes" json:"disableResolveSupersedes"` Before *gregor1.Time `codec:"before,omitempty" json:"before,omitempty"` After *gregor1.Time `codec:"after,omitempty" json:"after,omitempty"` }
type GetThreadRemoteArg ¶
type GetThreadRemoteArg struct { ConversationID ConversationID `codec:"conversationID" json:"conversationID"` Query *GetThreadQuery `codec:"query,omitempty" json:"query,omitempty"` Pagination *Pagination `codec:"pagination,omitempty" json:"pagination,omitempty"` }
type GetThreadRemoteRes ¶
type GetThreadRemoteRes struct { Thread ThreadViewBoxed `codec:"thread" json:"thread"` RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"` }
type GetUnreadUpdateFullArg ¶ added in v1.0.19
type GetUnreadUpdateFullArg struct {
InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"`
}
type GregorClient ¶
type GregorClient struct {
Cli rpc.GenericClient
}
type GregorInterface ¶
type GregorInterface interface { }
type HeaderPlaintext ¶
type HeaderPlaintext struct { Version__ HeaderPlaintextVersion `codec:"version" json:"version"` V1__ *HeaderPlaintextV1 `codec:"v1,omitempty" json:"v1,omitempty"` V2__ *HeaderPlaintextUnsupported `codec:"v2,omitempty" json:"v2,omitempty"` V3__ *HeaderPlaintextUnsupported `codec:"v3,omitempty" json:"v3,omitempty"` V4__ *HeaderPlaintextUnsupported `codec:"v4,omitempty" json:"v4,omitempty"` V5__ *HeaderPlaintextUnsupported `codec:"v5,omitempty" json:"v5,omitempty"` V6__ *HeaderPlaintextUnsupported `codec:"v6,omitempty" json:"v6,omitempty"` V7__ *HeaderPlaintextUnsupported `codec:"v7,omitempty" json:"v7,omitempty"` V8__ *HeaderPlaintextUnsupported `codec:"v8,omitempty" json:"v8,omitempty"` V9__ *HeaderPlaintextUnsupported `codec:"v9,omitempty" json:"v9,omitempty"` V10__ *HeaderPlaintextUnsupported `codec:"v10,omitempty" json:"v10,omitempty"` }
func NewHeaderPlaintextWithV1 ¶
func NewHeaderPlaintextWithV1(v HeaderPlaintextV1) HeaderPlaintext
func NewHeaderPlaintextWithV10 ¶ added in v1.0.19
func NewHeaderPlaintextWithV10(v HeaderPlaintextUnsupported) HeaderPlaintext
func NewHeaderPlaintextWithV2 ¶ added in v1.0.19
func NewHeaderPlaintextWithV2(v HeaderPlaintextUnsupported) HeaderPlaintext
func NewHeaderPlaintextWithV3 ¶ added in v1.0.19
func NewHeaderPlaintextWithV3(v HeaderPlaintextUnsupported) HeaderPlaintext
func NewHeaderPlaintextWithV4 ¶ added in v1.0.19
func NewHeaderPlaintextWithV4(v HeaderPlaintextUnsupported) HeaderPlaintext
func NewHeaderPlaintextWithV5 ¶ added in v1.0.19
func NewHeaderPlaintextWithV5(v HeaderPlaintextUnsupported) HeaderPlaintext
func NewHeaderPlaintextWithV6 ¶ added in v1.0.19
func NewHeaderPlaintextWithV6(v HeaderPlaintextUnsupported) HeaderPlaintext
func NewHeaderPlaintextWithV7 ¶ added in v1.0.19
func NewHeaderPlaintextWithV7(v HeaderPlaintextUnsupported) HeaderPlaintext
func NewHeaderPlaintextWithV8 ¶ added in v1.0.19
func NewHeaderPlaintextWithV8(v HeaderPlaintextUnsupported) HeaderPlaintext
func NewHeaderPlaintextWithV9 ¶ added in v1.0.19
func NewHeaderPlaintextWithV9(v HeaderPlaintextUnsupported) HeaderPlaintext
func (HeaderPlaintext) V1 ¶
func (o HeaderPlaintext) V1() HeaderPlaintextV1
func (HeaderPlaintext) V10 ¶ added in v1.0.19
func (o HeaderPlaintext) V10() HeaderPlaintextUnsupported
func (HeaderPlaintext) V2 ¶ added in v1.0.19
func (o HeaderPlaintext) V2() HeaderPlaintextUnsupported
func (HeaderPlaintext) V3 ¶ added in v1.0.19
func (o HeaderPlaintext) V3() HeaderPlaintextUnsupported
func (HeaderPlaintext) V4 ¶ added in v1.0.19
func (o HeaderPlaintext) V4() HeaderPlaintextUnsupported
func (HeaderPlaintext) V5 ¶ added in v1.0.19
func (o HeaderPlaintext) V5() HeaderPlaintextUnsupported
func (HeaderPlaintext) V6 ¶ added in v1.0.19
func (o HeaderPlaintext) V6() HeaderPlaintextUnsupported
func (HeaderPlaintext) V7 ¶ added in v1.0.19
func (o HeaderPlaintext) V7() HeaderPlaintextUnsupported
func (HeaderPlaintext) V8 ¶ added in v1.0.19
func (o HeaderPlaintext) V8() HeaderPlaintextUnsupported
func (HeaderPlaintext) V9 ¶ added in v1.0.19
func (o HeaderPlaintext) V9() HeaderPlaintextUnsupported
func (*HeaderPlaintext) Version ¶
func (o *HeaderPlaintext) Version() (ret HeaderPlaintextVersion, err error)
type HeaderPlaintextMetaInfo ¶ added in v1.0.19
type HeaderPlaintextMetaInfo struct {
Crit bool `codec:"crit" json:"crit"`
}
type HeaderPlaintextUnsupported ¶ added in v1.0.19
type HeaderPlaintextUnsupported struct {
Mi HeaderPlaintextMetaInfo `codec:"mi" json:"mi"`
}
type HeaderPlaintextV1 ¶
type HeaderPlaintextV1 struct { Conv ConversationIDTriple `codec:"conv" json:"conv"` TlfName string `codec:"tlfName" json:"tlfName"` TlfPublic bool `codec:"tlfPublic" json:"tlfPublic"` MessageType MessageType `codec:"messageType" json:"messageType"` Prev []MessagePreviousPointer `codec:"prev" json:"prev"` Sender gregor1.UID `codec:"sender" json:"sender"` SenderDevice gregor1.DeviceID `codec:"senderDevice" json:"senderDevice"` BodyHash Hash `codec:"bodyHash" json:"bodyHash"` OutboxInfo *OutboxInfo `codec:"outboxInfo,omitempty" json:"outboxInfo,omitempty"` OutboxID *OutboxID `codec:"outboxID,omitempty" json:"outboxID,omitempty"` HeaderSignature *SignatureInfo `codec:"headerSignature,omitempty" json:"headerSignature,omitempty"` }
type HeaderPlaintextVersion ¶
type HeaderPlaintextVersion int
const ( HeaderPlaintextVersion_V1 HeaderPlaintextVersion = 1 HeaderPlaintextVersion_V2 HeaderPlaintextVersion = 2 HeaderPlaintextVersion_V3 HeaderPlaintextVersion = 3 HeaderPlaintextVersion_V4 HeaderPlaintextVersion = 4 HeaderPlaintextVersion_V5 HeaderPlaintextVersion = 5 HeaderPlaintextVersion_V6 HeaderPlaintextVersion = 6 HeaderPlaintextVersion_V7 HeaderPlaintextVersion = 7 HeaderPlaintextVersion_V8 HeaderPlaintextVersion = 8 HeaderPlaintextVersion_V9 HeaderPlaintextVersion = 9 HeaderPlaintextVersion_V10 HeaderPlaintextVersion = 10 )
func (HeaderPlaintextVersion) String ¶ added in v1.0.19
func (e HeaderPlaintextVersion) String() string
type Inbox ¶ added in v1.0.19
type Inbox struct { Version InboxVers `codec:"version" json:"version"` ConvsUnverified []Conversation `codec:"convsUnverified" json:"convsUnverified"` Convs []ConversationLocal `codec:"convs" json:"convs"` Pagination *Pagination `codec:"pagination,omitempty" json:"pagination,omitempty"` }
type InboxResType ¶ added in v1.0.19
type InboxResType int
const ( InboxResType_VERSIONHIT InboxResType = 0 InboxResType_FULL InboxResType = 1 )
func (InboxResType) String ¶ added in v1.0.19
func (e InboxResType) String() string
type InboxView ¶
type InboxView struct { Rtype__ InboxResType `codec:"rtype" json:"rtype"` Full__ *InboxViewFull `codec:"full,omitempty" json:"full,omitempty"` }
func NewInboxViewWithFull ¶ added in v1.0.19
func NewInboxViewWithFull(v InboxViewFull) InboxView
func NewInboxViewWithVersionhit ¶ added in v1.0.19
func NewInboxViewWithVersionhit() InboxView
func (InboxView) Full ¶ added in v1.0.19
func (o InboxView) Full() InboxViewFull
func (*InboxView) Rtype ¶ added in v1.0.19
func (o *InboxView) Rtype() (ret InboxResType, err error)
type InboxViewFull ¶ added in v1.0.19
type InboxViewFull struct { Vers InboxVers `codec:"vers" json:"vers"` Conversations []Conversation `codec:"conversations" json:"conversations"` Pagination *Pagination `codec:"pagination,omitempty" json:"pagination,omitempty"` }
type IncomingMessage ¶ added in v1.0.19
type IncomingMessage struct { Message MessageUnboxed `codec:"message" json:"message"` ConvID ConversationID `codec:"convID" json:"convID"` Conv *ConversationLocal `codec:"conv,omitempty" json:"conv,omitempty"` Pagination *Pagination `codec:"pagination,omitempty" json:"pagination,omitempty"` }
type LocalClient ¶
type LocalClient struct {
Cli rpc.GenericClient
}
func (LocalClient) CancelPost ¶ added in v1.0.19
func (c LocalClient) CancelPost(ctx context.Context, outboxID OutboxID) (err error)
func (LocalClient) DownloadAttachmentLocal ¶
func (c LocalClient) DownloadAttachmentLocal(ctx context.Context, __arg DownloadAttachmentLocalArg) (res DownloadAttachmentLocalRes, err error)
func (LocalClient) DownloadFileAttachmentLocal ¶ added in v1.0.19
func (c LocalClient) DownloadFileAttachmentLocal(ctx context.Context, __arg DownloadFileAttachmentLocalArg) (res DownloadAttachmentLocalRes, err error)
func (LocalClient) FindConversationsLocal ¶ added in v1.0.19
func (c LocalClient) FindConversationsLocal(ctx context.Context, __arg FindConversationsLocalArg) (res FindConversationsLocalRes, err error)
func (LocalClient) GetConversationForCLILocal ¶
func (c LocalClient) GetConversationForCLILocal(ctx context.Context, query GetConversationForCLILocalQuery) (res GetConversationForCLILocalRes, err error)
func (LocalClient) GetInboxAndUnboxLocal ¶
func (c LocalClient) GetInboxAndUnboxLocal(ctx context.Context, __arg GetInboxAndUnboxLocalArg) (res GetInboxAndUnboxLocalRes, err error)
func (LocalClient) GetInboxNonblockLocal ¶ added in v1.0.19
func (c LocalClient) GetInboxNonblockLocal(ctx context.Context, __arg GetInboxNonblockLocalArg) (res GetInboxNonblockLocalRes, err error)
func (LocalClient) GetInboxSummaryForCLILocal ¶
func (c LocalClient) GetInboxSummaryForCLILocal(ctx context.Context, query GetInboxSummaryForCLILocalQuery) (res GetInboxSummaryForCLILocalRes, err error)
func (LocalClient) GetMessagesLocal ¶
func (c LocalClient) GetMessagesLocal(ctx context.Context, __arg GetMessagesLocalArg) (res GetMessagesLocalRes, err error)
func (LocalClient) GetThreadLocal ¶
func (c LocalClient) GetThreadLocal(ctx context.Context, __arg GetThreadLocalArg) (res GetThreadLocalRes, err error)
func (LocalClient) MarkAsReadLocal ¶ added in v1.0.19
func (c LocalClient) MarkAsReadLocal(ctx context.Context, __arg MarkAsReadLocalArg) (res MarkAsReadRes, err error)
func (LocalClient) NewConversationLocal ¶
func (c LocalClient) NewConversationLocal(ctx context.Context, __arg NewConversationLocalArg) (res NewConversationLocalRes, err error)
func (LocalClient) PostAttachmentLocal ¶
func (c LocalClient) PostAttachmentLocal(ctx context.Context, __arg PostAttachmentLocalArg) (res PostLocalRes, err error)
func (LocalClient) PostDeleteNonblock ¶ added in v1.0.19
func (c LocalClient) PostDeleteNonblock(ctx context.Context, __arg PostDeleteNonblockArg) (res PostLocalNonblockRes, err error)
func (LocalClient) PostEditNonblock ¶ added in v1.0.19
func (c LocalClient) PostEditNonblock(ctx context.Context, __arg PostEditNonblockArg) (res PostLocalNonblockRes, err error)
func (LocalClient) PostFileAttachmentLocal ¶ added in v1.0.19
func (c LocalClient) PostFileAttachmentLocal(ctx context.Context, __arg PostFileAttachmentLocalArg) (res PostLocalRes, err error)
func (LocalClient) PostLocal ¶
func (c LocalClient) PostLocal(ctx context.Context, __arg PostLocalArg) (res PostLocalRes, err error)
func (LocalClient) PostLocalNonblock ¶ added in v1.0.19
func (c LocalClient) PostLocalNonblock(ctx context.Context, __arg PostLocalNonblockArg) (res PostLocalNonblockRes, err error)
func (LocalClient) PostTextNonblock ¶ added in v1.0.19
func (c LocalClient) PostTextNonblock(ctx context.Context, __arg PostTextNonblockArg) (res PostLocalNonblockRes, err error)
func (LocalClient) RetryPost ¶ added in v1.0.19
func (c LocalClient) RetryPost(ctx context.Context, outboxID OutboxID) (err error)
func (LocalClient) SetConversationStatusLocal ¶
func (c LocalClient) SetConversationStatusLocal(ctx context.Context, __arg SetConversationStatusLocalArg) (res SetConversationStatusLocalRes, err error)
type LocalFileSource ¶ added in v1.0.19
type LocalFileSource struct {
Filename string `codec:"filename" json:"filename"`
}
type LocalInterface ¶
type LocalInterface interface { GetThreadLocal(context.Context, GetThreadLocalArg) (GetThreadLocalRes, error) GetInboxAndUnboxLocal(context.Context, GetInboxAndUnboxLocalArg) (GetInboxAndUnboxLocalRes, error) GetInboxNonblockLocal(context.Context, GetInboxNonblockLocalArg) (GetInboxNonblockLocalRes, error) PostLocal(context.Context, PostLocalArg) (PostLocalRes, error) PostLocalNonblock(context.Context, PostLocalNonblockArg) (PostLocalNonblockRes, error) PostTextNonblock(context.Context, PostTextNonblockArg) (PostLocalNonblockRes, error) PostDeleteNonblock(context.Context, PostDeleteNonblockArg) (PostLocalNonblockRes, error) PostEditNonblock(context.Context, PostEditNonblockArg) (PostLocalNonblockRes, error) SetConversationStatusLocal(context.Context, SetConversationStatusLocalArg) (SetConversationStatusLocalRes, error) NewConversationLocal(context.Context, NewConversationLocalArg) (NewConversationLocalRes, error) GetInboxSummaryForCLILocal(context.Context, GetInboxSummaryForCLILocalQuery) (GetInboxSummaryForCLILocalRes, error) GetConversationForCLILocal(context.Context, GetConversationForCLILocalQuery) (GetConversationForCLILocalRes, error) GetMessagesLocal(context.Context, GetMessagesLocalArg) (GetMessagesLocalRes, error) PostAttachmentLocal(context.Context, PostAttachmentLocalArg) (PostLocalRes, error) PostFileAttachmentLocal(context.Context, PostFileAttachmentLocalArg) (PostLocalRes, error) DownloadAttachmentLocal(context.Context, DownloadAttachmentLocalArg) (DownloadAttachmentLocalRes, error) DownloadFileAttachmentLocal(context.Context, DownloadFileAttachmentLocalArg) (DownloadAttachmentLocalRes, error) CancelPost(context.Context, OutboxID) error RetryPost(context.Context, OutboxID) error MarkAsReadLocal(context.Context, MarkAsReadLocalArg) (MarkAsReadRes, error) FindConversationsLocal(context.Context, FindConversationsLocalArg) (FindConversationsLocalRes, error) }
type LocalSource ¶
type MarkAsReadArg ¶
type MarkAsReadArg struct { ConversationID ConversationID `codec:"conversationID" json:"conversationID"` MsgID MessageID `codec:"msgID" json:"msgID"` }
type MarkAsReadLocalArg ¶ added in v1.0.19
type MarkAsReadLocalArg struct { SessionID int `codec:"sessionID" json:"sessionID"` ConversationID ConversationID `codec:"conversationID" json:"conversationID"` MsgID MessageID `codec:"msgID" json:"msgID"` }
type MarkAsReadRes ¶
type MarkAsReadRes struct {
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
}
type MerkleRoot ¶ added in v1.0.19
type MerkleRoot struct { Seqno int64 `codec:"seqno" json:"seqno"` Hash []byte `codec:"hash" json:"hash"` }
func (*MerkleRoot) Eq ¶ added in v1.0.19
func (a *MerkleRoot) Eq(b *MerkleRoot) bool
type MessageAttachment ¶
type MessageAttachmentUploaded ¶ added in v1.0.19
type MessageBody ¶
type MessageBody struct { MessageType__ MessageType `codec:"messageType" json:"messageType"` Text__ *MessageText `codec:"text,omitempty" json:"text,omitempty"` Attachment__ *MessageAttachment `codec:"attachment,omitempty" json:"attachment,omitempty"` Edit__ *MessageEdit `codec:"edit,omitempty" json:"edit,omitempty"` Delete__ *MessageDelete `codec:"delete,omitempty" json:"delete,omitempty"` Metadata__ *MessageConversationMetadata `codec:"metadata,omitempty" json:"metadata,omitempty"` Headline__ *MessageHeadline `codec:"headline,omitempty" json:"headline,omitempty"` Attachmentuploaded__ *MessageAttachmentUploaded `codec:"attachmentuploaded,omitempty" json:"attachmentuploaded,omitempty"` }
func NewMessageBodyWithAttachment ¶
func NewMessageBodyWithAttachment(v MessageAttachment) MessageBody
func NewMessageBodyWithAttachmentuploaded ¶ added in v1.0.19
func NewMessageBodyWithAttachmentuploaded(v MessageAttachmentUploaded) MessageBody
func NewMessageBodyWithDelete ¶
func NewMessageBodyWithDelete(v MessageDelete) MessageBody
func NewMessageBodyWithEdit ¶
func NewMessageBodyWithEdit(v MessageEdit) MessageBody
func NewMessageBodyWithHeadline ¶
func NewMessageBodyWithHeadline(v MessageHeadline) MessageBody
func NewMessageBodyWithMetadata ¶
func NewMessageBodyWithMetadata(v MessageConversationMetadata) MessageBody
func NewMessageBodyWithText ¶
func NewMessageBodyWithText(v MessageText) MessageBody
func (MessageBody) Attachment ¶
func (o MessageBody) Attachment() MessageAttachment
func (MessageBody) Attachmentuploaded ¶ added in v1.0.19
func (o MessageBody) Attachmentuploaded() MessageAttachmentUploaded
func (MessageBody) Delete ¶
func (o MessageBody) Delete() MessageDelete
func (MessageBody) Edit ¶
func (o MessageBody) Edit() MessageEdit
func (MessageBody) Headline ¶
func (o MessageBody) Headline() MessageHeadline
func (*MessageBody) MessageType ¶
func (o *MessageBody) MessageType() (ret MessageType, err error)
func (MessageBody) Metadata ¶
func (o MessageBody) Metadata() MessageConversationMetadata
func (MessageBody) Text ¶
func (o MessageBody) Text() MessageText
type MessageBoxed ¶
type MessageBoxed struct { Version MessageBoxedVersion `codec:"version" json:"version"` ServerHeader *MessageServerHeader `codec:"serverHeader,omitempty" json:"serverHeader,omitempty"` ClientHeader MessageClientHeader `codec:"clientHeader" json:"clientHeader"` HeaderCiphertext SealedData `codec:"headerCiphertext" json:"headerCiphertext"` BodyCiphertext EncryptedData `codec:"bodyCiphertext" json:"bodyCiphertext"` VerifyKey []byte `codec:"verifyKey" json:"verifyKey"` KeyGeneration int `codec:"keyGeneration" json:"keyGeneration"` }
func (MessageBoxed) GetMessageID ¶
func (m MessageBoxed) GetMessageID() MessageID
func (MessageBoxed) GetMessageType ¶
func (m MessageBoxed) GetMessageType() MessageType
type MessageBoxedVersion ¶ added in v1.0.19
type MessageBoxedVersion int
const ( MessageBoxedVersion_VNONE MessageBoxedVersion = 0 MessageBoxedVersion_V1 MessageBoxedVersion = 1 MessageBoxedVersion_V2 MessageBoxedVersion = 2 )
func (MessageBoxedVersion) String ¶ added in v1.0.19
func (e MessageBoxedVersion) String() string
type MessageClientHeader ¶
type MessageClientHeader struct { Conv ConversationIDTriple `codec:"conv" json:"conv"` TlfName string `codec:"tlfName" json:"tlfName"` TlfPublic bool `codec:"tlfPublic" json:"tlfPublic"` MessageType MessageType `codec:"messageType" json:"messageType"` Supersedes MessageID `codec:"supersedes" json:"supersedes"` Deletes []MessageID `codec:"deletes" json:"deletes"` Prev []MessagePreviousPointer `codec:"prev" json:"prev"` Sender gregor1.UID `codec:"sender" json:"sender"` SenderDevice gregor1.DeviceID `codec:"senderDevice" json:"senderDevice"` MerkleRoot *MerkleRoot `codec:"merkleRoot,omitempty" json:"merkleRoot,omitempty"` OutboxID *OutboxID `codec:"outboxID,omitempty" json:"outboxID,omitempty"` OutboxInfo *OutboxInfo `codec:"outboxInfo,omitempty" json:"outboxInfo,omitempty"` }
func (MessageClientHeader) TLFNameExpanded ¶ added in v1.0.19
func (h MessageClientHeader) TLFNameExpanded(finalizeInfo *ConversationFinalizeInfo) string
TLFNameExpanded returns a TLF name with a reset suffix if it exists. This version can be used in requests to lookup the TLF.
func (MessageClientHeader) ToVerifiedForTesting ¶ added in v1.0.19
func (h MessageClientHeader) ToVerifiedForTesting() MessageClientHeaderVerified
type MessageClientHeaderVerified ¶ added in v1.0.19
type MessageClientHeaderVerified struct { Conv ConversationIDTriple `codec:"conv" json:"conv"` TlfName string `codec:"tlfName" json:"tlfName"` TlfPublic bool `codec:"tlfPublic" json:"tlfPublic"` MessageType MessageType `codec:"messageType" json:"messageType"` Prev []MessagePreviousPointer `codec:"prev" json:"prev"` Sender gregor1.UID `codec:"sender" json:"sender"` SenderDevice gregor1.DeviceID `codec:"senderDevice" json:"senderDevice"` OutboxID *OutboxID `codec:"outboxID,omitempty" json:"outboxID,omitempty"` OutboxInfo *OutboxInfo `codec:"outboxInfo,omitempty" json:"outboxInfo,omitempty"` }
func (MessageClientHeaderVerified) TLFNameExpanded ¶ added in v1.0.19
func (h MessageClientHeaderVerified) TLFNameExpanded(finalizeInfo *ConversationFinalizeInfo) string
type MessageConversationMetadata ¶
type MessageConversationMetadata struct {
ConversationTitle string `codec:"conversationTitle" json:"conversationTitle"`
}
type MessageDelete ¶
type MessageDelete struct {
MessageIDs []MessageID `codec:"messageIDs" json:"messageIDs"`
}
type MessageEdit ¶
type MessageHeadline ¶
type MessageHeadline struct {
Headline string `codec:"headline" json:"headline"`
}
type MessagePlaintext ¶
type MessagePlaintext struct { ClientHeader MessageClientHeader `codec:"clientHeader" json:"clientHeader"` MessageBody MessageBody `codec:"messageBody" json:"messageBody"` }
type MessagePreviousPointer ¶
type MessagePreviousPointer struct { Id MessageID `codec:"id" json:"id"` Hash Hash `codec:"hash" json:"hash"` }
func (MessagePreviousPointer) Eq ¶ added in v1.0.19
func (p MessagePreviousPointer) Eq(other MessagePreviousPointer) bool
type MessageServerHeader ¶
type MessageText ¶
type MessageText struct {
Body string `codec:"body" json:"body"`
}
type MessageType ¶
type MessageType int
const ( MessageType_NONE MessageType = 0 MessageType_TEXT MessageType = 1 MessageType_ATTACHMENT MessageType = 2 MessageType_EDIT MessageType = 3 MessageType_DELETE MessageType = 4 MessageType_METADATA MessageType = 5 MessageType_TLFNAME MessageType = 6 MessageType_HEADLINE MessageType = 7 MessageType_ATTACHMENTUPLOADED MessageType = 8 )
func (MessageType) String ¶
func (t MessageType) String() string
type MessageUnboxed ¶
type MessageUnboxed struct { State__ MessageUnboxedState `codec:"state" json:"state"` Valid__ *MessageUnboxedValid `codec:"valid,omitempty" json:"valid,omitempty"` Error__ *MessageUnboxedError `codec:"error,omitempty" json:"error,omitempty"` Outbox__ *OutboxRecord `codec:"outbox,omitempty" json:"outbox,omitempty"` }
func NewMessageUnboxedWithError ¶
func NewMessageUnboxedWithError(v MessageUnboxedError) MessageUnboxed
func NewMessageUnboxedWithOutbox ¶ added in v1.0.19
func NewMessageUnboxedWithOutbox(v OutboxRecord) MessageUnboxed
func NewMessageUnboxedWithValid ¶
func NewMessageUnboxedWithValid(v MessageUnboxedValid) MessageUnboxed
func (MessageUnboxed) Error ¶
func (o MessageUnboxed) Error() MessageUnboxedError
func (MessageUnboxed) GetMessageID ¶
func (m MessageUnboxed) GetMessageID() MessageID
func (MessageUnboxed) GetMessageType ¶
func (m MessageUnboxed) GetMessageType() MessageType
func (MessageUnboxed) IsValid ¶
func (m MessageUnboxed) IsValid() bool
func (MessageUnboxed) Outbox ¶ added in v1.0.19
func (o MessageUnboxed) Outbox() OutboxRecord
func (*MessageUnboxed) State ¶
func (o *MessageUnboxed) State() (ret MessageUnboxedState, err error)
func (MessageUnboxed) Valid ¶
func (o MessageUnboxed) Valid() MessageUnboxedValid
type MessageUnboxedError ¶
type MessageUnboxedError struct { ErrType MessageUnboxedErrorType `codec:"errType" json:"errType"` ErrMsg string `codec:"errMsg" json:"errMsg"` MessageID MessageID `codec:"messageID" json:"messageID"` MessageType MessageType `codec:"messageType" json:"messageType"` Ctime gregor1.Time `codec:"ctime" json:"ctime"` }
type MessageUnboxedErrorType ¶ added in v1.0.19
type MessageUnboxedErrorType int
const ( MessageUnboxedErrorType_MISC MessageUnboxedErrorType = 0 MessageUnboxedErrorType_BADVERSION_CRITICAL MessageUnboxedErrorType = 1 MessageUnboxedErrorType_BADVERSION MessageUnboxedErrorType = 2 MessageUnboxedErrorType_IDENTIFY MessageUnboxedErrorType = 3 )
func (MessageUnboxedErrorType) String ¶ added in v1.0.19
func (e MessageUnboxedErrorType) String() string
type MessageUnboxedState ¶
type MessageUnboxedState int
const ( MessageUnboxedState_VALID MessageUnboxedState = 1 MessageUnboxedState_ERROR MessageUnboxedState = 2 MessageUnboxedState_OUTBOX MessageUnboxedState = 3 )
func (MessageUnboxedState) String ¶ added in v1.0.19
func (e MessageUnboxedState) String() string
type MessageUnboxedValid ¶
type MessageUnboxedValid struct { ClientHeader MessageClientHeaderVerified `codec:"clientHeader" json:"clientHeader"` ServerHeader MessageServerHeader `codec:"serverHeader" json:"serverHeader"` MessageBody MessageBody `codec:"messageBody" json:"messageBody"` SenderUsername string `codec:"senderUsername" json:"senderUsername"` SenderDeviceName string `codec:"senderDeviceName" json:"senderDeviceName"` SenderDeviceType string `codec:"senderDeviceType" json:"senderDeviceType"` BodyHash Hash `codec:"bodyHash" json:"bodyHash"` HeaderHash Hash `codec:"headerHash" json:"headerHash"` HeaderSignature *SignatureInfo `codec:"headerSignature,omitempty" json:"headerSignature,omitempty"` VerificationKey *[]byte `codec:"verificationKey,omitempty" json:"verificationKey,omitempty"` SenderDeviceRevokedAt *gregor1.Time `codec:"senderDeviceRevokedAt,omitempty" json:"senderDeviceRevokedAt,omitempty"` }
type NewChatActivityArg ¶
type NewChatActivityArg struct { Uid keybase1.UID `codec:"uid" json:"uid"` Activity ChatActivity `codec:"activity" json:"activity"` }
type NewConversationInfo ¶ added in v1.0.19
type NewConversationInfo struct {
Conv ConversationLocal `codec:"conv" json:"conv"`
}
type NewConversationLocalArg ¶
type NewConversationLocalArg struct { TlfName string `codec:"tlfName" json:"tlfName"` TopicType TopicType `codec:"topicType" json:"topicType"` TlfVisibility TLFVisibility `codec:"tlfVisibility" json:"tlfVisibility"` TopicName *string `codec:"topicName,omitempty" json:"topicName,omitempty"` IdentifyBehavior keybase1.TLFIdentifyBehavior `codec:"identifyBehavior" json:"identifyBehavior"` }
type NewConversationLocalRes ¶
type NewConversationLocalRes struct { Conv ConversationLocal `codec:"conv" json:"conv"` RateLimits []RateLimit `codec:"rateLimits" json:"rateLimits"` IdentifyFailures []keybase1.TLFIdentifyFailure `codec:"identifyFailures" json:"identifyFailures"` }
type NewConversationPayload ¶ added in v1.0.19
type NewConversationPayload struct { Action string `codec:"Action" json:"Action"` ConvID ConversationID `codec:"convID" json:"convID"` InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` UnreadUpdate *UnreadUpdate `codec:"unreadUpdate,omitempty" json:"unreadUpdate,omitempty"` }
type NewConversationRemote2Arg ¶
type NewConversationRemote2Arg struct { IdTriple ConversationIDTriple `codec:"idTriple" json:"idTriple"` TLFMessage MessageBoxed `codec:"TLFMessage" json:"TLFMessage"` }
type NewConversationRemoteArg ¶
type NewConversationRemoteArg struct {
IdTriple ConversationIDTriple `codec:"idTriple" json:"idTriple"`
}
type NewConversationRemoteRes ¶
type NewConversationRemoteRes struct { ConvID ConversationID `codec:"convID" json:"convID"` RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"` }
type NewMessagePayload ¶
type NewMessagePayload struct { Action string `codec:"Action" json:"Action"` ConvID ConversationID `codec:"convID" json:"convID"` Message MessageBoxed `codec:"message" json:"message"` InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` UnreadUpdate *UnreadUpdate `codec:"unreadUpdate,omitempty" json:"unreadUpdate,omitempty"` }
type NotifyChatClient ¶
type NotifyChatClient struct {
Cli rpc.GenericClient
}
func (NotifyChatClient) ChatIdentifyUpdate ¶ added in v1.0.19
func (c NotifyChatClient) ChatIdentifyUpdate(ctx context.Context, update keybase1.CanonicalTLFNameAndIDWithBreaks) (err error)
func (NotifyChatClient) ChatInboxStale ¶ added in v1.0.19
func (NotifyChatClient) ChatTLFFinalize ¶ added in v1.0.19
func (c NotifyChatClient) ChatTLFFinalize(ctx context.Context, __arg ChatTLFFinalizeArg) (err error)
func (NotifyChatClient) ChatTLFResolve ¶ added in v1.0.19
func (c NotifyChatClient) ChatTLFResolve(ctx context.Context, __arg ChatTLFResolveArg) (err error)
func (NotifyChatClient) ChatThreadsStale ¶ added in v1.0.19
func (c NotifyChatClient) ChatThreadsStale(ctx context.Context, __arg ChatThreadsStaleArg) (err error)
func (NotifyChatClient) NewChatActivity ¶
func (c NotifyChatClient) NewChatActivity(ctx context.Context, __arg NewChatActivityArg) (err error)
type NotifyChatInterface ¶
type NotifyChatInterface interface { NewChatActivity(context.Context, NewChatActivityArg) error ChatIdentifyUpdate(context.Context, keybase1.CanonicalTLFNameAndIDWithBreaks) error ChatTLFFinalize(context.Context, ChatTLFFinalizeArg) error ChatTLFResolve(context.Context, ChatTLFResolveArg) error ChatInboxStale(context.Context, keybase1.UID) error ChatThreadsStale(context.Context, ChatThreadsStaleArg) error }
type OutboxErrorType ¶ added in v1.0.19
type OutboxErrorType int
const ( OutboxErrorType_MISC OutboxErrorType = 0 OutboxErrorType_OFFLINE OutboxErrorType = 1 OutboxErrorType_IDENTIFY OutboxErrorType = 2 OutboxErrorType_TOOLONG OutboxErrorType = 3 )
func (OutboxErrorType) String ¶ added in v1.0.19
func (e OutboxErrorType) String() string
type OutboxInfo ¶ added in v1.0.19
type OutboxInfo struct { Prev MessageID `codec:"prev" json:"prev"` ComposeTime gregor1.Time `codec:"composeTime" json:"composeTime"` }
func (*OutboxInfo) Eq ¶ added in v1.0.19
func (o *OutboxInfo) Eq(r *OutboxInfo) bool
type OutboxRecord ¶ added in v1.0.19
type OutboxRecord struct { State OutboxState `codec:"state" json:"state"` OutboxID OutboxID `codec:"outboxID" json:"outboxID"` ConvID ConversationID `codec:"convID" json:"convID"` Ctime gregor1.Time `codec:"ctime" json:"ctime"` Msg MessagePlaintext `codec:"Msg" json:"Msg"` IdentifyBehavior keybase1.TLFIdentifyBehavior `codec:"identifyBehavior" json:"identifyBehavior"` }
type OutboxState ¶ added in v1.0.19
type OutboxState struct { State__ OutboxStateType `codec:"state" json:"state"` Sending__ *int `codec:"sending,omitempty" json:"sending,omitempty"` Error__ *OutboxStateError `codec:"error,omitempty" json:"error,omitempty"` }
func NewOutboxStateWithError ¶ added in v1.0.19
func NewOutboxStateWithError(v OutboxStateError) OutboxState
func NewOutboxStateWithSending ¶ added in v1.0.19
func NewOutboxStateWithSending(v int) OutboxState
func (OutboxState) Error ¶ added in v1.0.19
func (o OutboxState) Error() OutboxStateError
func (OutboxState) Sending ¶ added in v1.0.19
func (o OutboxState) Sending() int
func (*OutboxState) State ¶ added in v1.0.19
func (o *OutboxState) State() (ret OutboxStateType, err error)
type OutboxStateError ¶ added in v1.0.19
type OutboxStateError struct { Message string `codec:"message" json:"message"` Typ OutboxErrorType `codec:"typ" json:"typ"` }
type OutboxStateType ¶ added in v1.0.19
type OutboxStateType int
const ( OutboxStateType_SENDING OutboxStateType = 0 OutboxStateType_ERROR OutboxStateType = 1 )
func (OutboxStateType) String ¶ added in v1.0.19
func (e OutboxStateType) String() string
type Pagination ¶
type Pagination struct { Next []byte `codec:"next" json:"next"` Previous []byte `codec:"previous" json:"previous"` Num int `codec:"num" json:"num"` Last bool `codec:"last" json:"last"` }
func (Pagination) Eq ¶ added in v1.0.19
func (p Pagination) Eq(other Pagination) bool
type PostAttachmentLocalArg ¶
type PostAttachmentLocalArg struct { SessionID int `codec:"sessionID" json:"sessionID"` ConversationID ConversationID `codec:"conversationID" json:"conversationID"` ClientHeader MessageClientHeader `codec:"clientHeader" json:"clientHeader"` Attachment LocalSource `codec:"attachment" json:"attachment"` Preview *LocalSource `codec:"preview,omitempty" json:"preview,omitempty"` Title string `codec:"title" json:"title"` Metadata []byte `codec:"metadata" json:"metadata"` IdentifyBehavior keybase1.TLFIdentifyBehavior `codec:"identifyBehavior" json:"identifyBehavior"` }
type PostDeleteNonblockArg ¶ added in v1.0.19
type PostDeleteNonblockArg struct { ConversationID ConversationID `codec:"conversationID" json:"conversationID"` Conv ConversationIDTriple `codec:"conv" json:"conv"` TlfName string `codec:"tlfName" json:"tlfName"` TlfPublic bool `codec:"tlfPublic" json:"tlfPublic"` Supersedes MessageID `codec:"supersedes" json:"supersedes"` ClientPrev MessageID `codec:"clientPrev" json:"clientPrev"` IdentifyBehavior keybase1.TLFIdentifyBehavior `codec:"identifyBehavior" json:"identifyBehavior"` }
type PostEditNonblockArg ¶ added in v1.0.19
type PostEditNonblockArg struct { ConversationID ConversationID `codec:"conversationID" json:"conversationID"` Conv ConversationIDTriple `codec:"conv" json:"conv"` TlfName string `codec:"tlfName" json:"tlfName"` TlfPublic bool `codec:"tlfPublic" json:"tlfPublic"` Supersedes MessageID `codec:"supersedes" json:"supersedes"` Body string `codec:"body" json:"body"` ClientPrev MessageID `codec:"clientPrev" json:"clientPrev"` IdentifyBehavior keybase1.TLFIdentifyBehavior `codec:"identifyBehavior" json:"identifyBehavior"` }
type PostFileAttachmentLocalArg ¶ added in v1.0.19
type PostFileAttachmentLocalArg struct { SessionID int `codec:"sessionID" json:"sessionID"` ConversationID ConversationID `codec:"conversationID" json:"conversationID"` ClientHeader MessageClientHeader `codec:"clientHeader" json:"clientHeader"` Attachment LocalFileSource `codec:"attachment" json:"attachment"` Preview *LocalFileSource `codec:"preview,omitempty" json:"preview,omitempty"` Title string `codec:"title" json:"title"` Metadata []byte `codec:"metadata" json:"metadata"` IdentifyBehavior keybase1.TLFIdentifyBehavior `codec:"identifyBehavior" json:"identifyBehavior"` }
type PostLocalArg ¶
type PostLocalArg struct { ConversationID ConversationID `codec:"conversationID" json:"conversationID"` Msg MessagePlaintext `codec:"msg" json:"msg"` IdentifyBehavior keybase1.TLFIdentifyBehavior `codec:"identifyBehavior" json:"identifyBehavior"` }
type PostLocalNonblockArg ¶ added in v1.0.19
type PostLocalNonblockArg struct { ConversationID ConversationID `codec:"conversationID" json:"conversationID"` Msg MessagePlaintext `codec:"msg" json:"msg"` ClientPrev MessageID `codec:"clientPrev" json:"clientPrev"` IdentifyBehavior keybase1.TLFIdentifyBehavior `codec:"identifyBehavior" json:"identifyBehavior"` }
type PostLocalNonblockRes ¶ added in v1.0.19
type PostLocalNonblockRes struct { RateLimits []RateLimit `codec:"rateLimits" json:"rateLimits"` OutboxID OutboxID `codec:"outboxID" json:"outboxID"` IdentifyFailures []keybase1.TLFIdentifyFailure `codec:"identifyFailures" json:"identifyFailures"` }
type PostLocalRes ¶
type PostLocalRes struct { RateLimits []RateLimit `codec:"rateLimits" json:"rateLimits"` MessageID MessageID `codec:"messageID" json:"messageID"` IdentifyFailures []keybase1.TLFIdentifyFailure `codec:"identifyFailures" json:"identifyFailures"` }
type PostRemoteArg ¶
type PostRemoteArg struct { ConversationID ConversationID `codec:"conversationID" json:"conversationID"` MessageBoxed MessageBoxed `codec:"messageBoxed" json:"messageBoxed"` }
type PostRemoteRes ¶
type PostRemoteRes struct { MsgHeader MessageServerHeader `codec:"msgHeader" json:"msgHeader"` RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"` }
type PostTextNonblockArg ¶ added in v1.0.19
type PostTextNonblockArg struct { ConversationID ConversationID `codec:"conversationID" json:"conversationID"` Conv ConversationIDTriple `codec:"conv" json:"conv"` TlfName string `codec:"tlfName" json:"tlfName"` TlfPublic bool `codec:"tlfPublic" json:"tlfPublic"` Body string `codec:"body" json:"body"` ClientPrev MessageID `codec:"clientPrev" json:"clientPrev"` IdentifyBehavior keybase1.TLFIdentifyBehavior `codec:"identifyBehavior" json:"identifyBehavior"` }
type PublishReadMessageArg ¶ added in v1.0.19
type PublishReadMessageArg struct { Uid gregor1.UID `codec:"uid" json:"uid"` ConvID ConversationID `codec:"convID" json:"convID"` MsgID MessageID `codec:"msgID" json:"msgID"` }
type PublishSetConversationStatusArg ¶ added in v1.0.19
type PublishSetConversationStatusArg struct { Uid gregor1.UID `codec:"uid" json:"uid"` ConvID ConversationID `codec:"convID" json:"convID"` Status ConversationStatus `codec:"status" json:"status"` }
type ReadMessageInfo ¶ added in v1.0.19
type ReadMessageInfo struct { ConvID ConversationID `codec:"convID" json:"convID"` MsgID MessageID `codec:"msgID" json:"msgID"` Conv *ConversationLocal `codec:"conv,omitempty" json:"conv,omitempty"` }
type ReadMessagePayload ¶ added in v1.0.19
type ReadMessagePayload struct { Action string `codec:"Action" json:"Action"` ConvID ConversationID `codec:"convID" json:"convID"` MsgID MessageID `codec:"msgID" json:"msgID"` InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` UnreadUpdate *UnreadUpdate `codec:"unreadUpdate,omitempty" json:"unreadUpdate,omitempty"` }
type RemoteClient ¶
type RemoteClient struct {
Cli rpc.GenericClient
}
func (RemoteClient) GetInboxRemote ¶
func (c RemoteClient) GetInboxRemote(ctx context.Context, __arg GetInboxRemoteArg) (res GetInboxRemoteRes, err error)
func (RemoteClient) GetInboxVersion ¶ added in v1.0.19
func (RemoteClient) GetMessagesRemote ¶
func (c RemoteClient) GetMessagesRemote(ctx context.Context, __arg GetMessagesRemoteArg) (res GetMessagesRemoteRes, err error)
func (RemoteClient) GetPublicConversations ¶ added in v1.0.19
func (c RemoteClient) GetPublicConversations(ctx context.Context, __arg GetPublicConversationsArg) (res GetPublicConversationsRes, err error)
func (RemoteClient) GetS3Params ¶
func (c RemoteClient) GetS3Params(ctx context.Context, conversationID ConversationID) (res S3Params, err error)
func (RemoteClient) GetThreadRemote ¶
func (c RemoteClient) GetThreadRemote(ctx context.Context, __arg GetThreadRemoteArg) (res GetThreadRemoteRes, err error)
func (RemoteClient) GetUnreadUpdateFull ¶ added in v1.0.19
func (c RemoteClient) GetUnreadUpdateFull(ctx context.Context, inboxVers InboxVers) (res UnreadUpdateFull, err error)
func (RemoteClient) MarkAsRead ¶
func (c RemoteClient) MarkAsRead(ctx context.Context, __arg MarkAsReadArg) (res MarkAsReadRes, err error)
func (RemoteClient) NewConversationRemote ¶
func (c RemoteClient) NewConversationRemote(ctx context.Context, idTriple ConversationIDTriple) (res NewConversationRemoteRes, err error)
func (RemoteClient) NewConversationRemote2 ¶
func (c RemoteClient) NewConversationRemote2(ctx context.Context, __arg NewConversationRemote2Arg) (res NewConversationRemoteRes, err error)
func (RemoteClient) PostRemote ¶
func (c RemoteClient) PostRemote(ctx context.Context, __arg PostRemoteArg) (res PostRemoteRes, err error)
func (RemoteClient) PublishReadMessage ¶ added in v1.0.19
func (c RemoteClient) PublishReadMessage(ctx context.Context, __arg PublishReadMessageArg) (err error)
func (RemoteClient) PublishSetConversationStatus ¶ added in v1.0.19
func (c RemoteClient) PublishSetConversationStatus(ctx context.Context, __arg PublishSetConversationStatusArg) (err error)
func (RemoteClient) SetConversationStatus ¶
func (c RemoteClient) SetConversationStatus(ctx context.Context, __arg SetConversationStatusArg) (res SetConversationStatusRes, err error)
func (RemoteClient) TlfFinalize ¶
func (c RemoteClient) TlfFinalize(ctx context.Context, __arg TlfFinalizeArg) (err error)
func (RemoteClient) TlfResolve ¶ added in v1.0.19
func (c RemoteClient) TlfResolve(ctx context.Context, __arg TlfResolveArg) (err error)
type RemoteInterface ¶
type RemoteInterface interface { GetInboxRemote(context.Context, GetInboxRemoteArg) (GetInboxRemoteRes, error) GetThreadRemote(context.Context, GetThreadRemoteArg) (GetThreadRemoteRes, error) GetPublicConversations(context.Context, GetPublicConversationsArg) (GetPublicConversationsRes, error) PostRemote(context.Context, PostRemoteArg) (PostRemoteRes, error) NewConversationRemote(context.Context, ConversationIDTriple) (NewConversationRemoteRes, error) NewConversationRemote2(context.Context, NewConversationRemote2Arg) (NewConversationRemoteRes, error) GetMessagesRemote(context.Context, GetMessagesRemoteArg) (GetMessagesRemoteRes, error) MarkAsRead(context.Context, MarkAsReadArg) (MarkAsReadRes, error) SetConversationStatus(context.Context, SetConversationStatusArg) (SetConversationStatusRes, error) GetUnreadUpdateFull(context.Context, InboxVers) (UnreadUpdateFull, error) GetS3Params(context.Context, ConversationID) (S3Params, error) S3Sign(context.Context, S3SignArg) ([]byte, error) GetInboxVersion(context.Context, gregor1.UID) (InboxVers, error) TlfFinalize(context.Context, TlfFinalizeArg) error TlfResolve(context.Context, TlfResolveArg) error PublishReadMessage(context.Context, PublishReadMessageArg) error PublishSetConversationStatus(context.Context, PublishSetConversationStatusArg) error }
type RetryPostArg ¶ added in v1.0.19
type RetryPostArg struct {
OutboxID OutboxID `codec:"outboxID" json:"outboxID"`
}
type S3Params ¶
type S3Params struct { Bucket string `codec:"bucket" json:"bucket"` ObjectKey string `codec:"objectKey" json:"objectKey"` AccessKey string `codec:"accessKey" json:"accessKey"` Acl string `codec:"acl" json:"acl"` RegionName string `codec:"regionName" json:"regionName"` RegionEndpoint string `codec:"regionEndpoint" json:"regionEndpoint"` RegionBucketEndpoint string `codec:"regionBucketEndpoint" json:"regionBucketEndpoint"` }
type SealedData ¶ added in v1.0.19
type SealedData struct { V int `codec:"v" json:"v"` E []byte `codec:"e" json:"e"` N []byte `codec:"n" json:"n"` }
func (*SealedData) AsEncrypted ¶ added in v1.0.19
func (d *SealedData) AsEncrypted() EncryptedData
func (*SealedData) AsSignEncrypted ¶ added in v1.0.19
func (d *SealedData) AsSignEncrypted() SignEncryptedData
type SetConversationStatusArg ¶
type SetConversationStatusArg struct { ConversationID ConversationID `codec:"conversationID" json:"conversationID"` Status ConversationStatus `codec:"status" json:"status"` }
type SetConversationStatusLocalArg ¶
type SetConversationStatusLocalArg struct { ConversationID ConversationID `codec:"conversationID" json:"conversationID"` Status ConversationStatus `codec:"status" json:"status"` IdentifyBehavior keybase1.TLFIdentifyBehavior `codec:"identifyBehavior" json:"identifyBehavior"` }
type SetConversationStatusLocalRes ¶
type SetConversationStatusLocalRes struct { RateLimits []RateLimit `codec:"rateLimits" json:"rateLimits"` IdentifyFailures []keybase1.TLFIdentifyFailure `codec:"identifyFailures" json:"identifyFailures"` }
type SetConversationStatusRes ¶
type SetConversationStatusRes struct {
RateLimit *RateLimit `codec:"rateLimit,omitempty" json:"rateLimit,omitempty"`
}
type SetStatusInfo ¶ added in v1.0.19
type SetStatusInfo struct { ConvID ConversationID `codec:"convID" json:"convID"` Status ConversationStatus `codec:"status" json:"status"` Conv *ConversationLocal `codec:"conv,omitempty" json:"conv,omitempty"` }
type SetStatusPayload ¶ added in v1.0.19
type SetStatusPayload struct { Action string `codec:"Action" json:"Action"` ConvID ConversationID `codec:"convID" json:"convID"` Status ConversationStatus `codec:"status" json:"status"` InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` UnreadUpdate *UnreadUpdate `codec:"unreadUpdate,omitempty" json:"unreadUpdate,omitempty"` }
type SignEncryptedData ¶ added in v1.0.19
type SignEncryptedData struct { V int `codec:"v" json:"v"` E []byte `codec:"e" json:"e"` N []byte `codec:"n" json:"n"` }
func (*SignEncryptedData) AsSealed ¶ added in v1.0.19
func (d *SignEncryptedData) AsSealed() SealedData
type SignatureInfo ¶
type TLFFinalizeUpdate ¶ added in v1.0.19
type TLFFinalizeUpdate struct { FinalizeInfo ConversationFinalizeInfo `codec:"finalizeInfo" json:"finalizeInfo"` ConvIDs []ConversationID `codec:"convIDs" json:"convIDs"` InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` }
type TLFID ¶
type TLFID []byte
type TLFResolveUpdate ¶ added in v1.0.19
type TLFResolveUpdate struct { ConvID ConversationID `codec:"convID" json:"convID"` InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` }
type TLFVisibility ¶
type TLFVisibility int
const ( TLFVisibility_ANY TLFVisibility = 0 TLFVisibility_PUBLIC TLFVisibility = 1 TLFVisibility_PRIVATE TLFVisibility = 2 )
func (TLFVisibility) Eq ¶ added in v1.0.19
func (t TLFVisibility) Eq(r TLFVisibility) bool
func (TLFVisibility) String ¶ added in v1.0.19
func (e TLFVisibility) String() string
type ThreadView ¶
type ThreadView struct { Messages []MessageUnboxed `codec:"messages" json:"messages"` Pagination *Pagination `codec:"pagination,omitempty" json:"pagination,omitempty"` }
type ThreadViewBoxed ¶
type ThreadViewBoxed struct { Messages []MessageBoxed `codec:"messages" json:"messages"` Pagination *Pagination `codec:"pagination,omitempty" json:"pagination,omitempty"` }
type TlfFinalizeArg ¶
type TlfFinalizeArg struct { TlfID TLFID `codec:"tlfID" json:"tlfID"` ResetUser string `codec:"resetUser" json:"resetUser"` ResetDate string `codec:"resetDate" json:"resetDate"` ResetTimestamp gregor1.Time `codec:"resetTimestamp" json:"resetTimestamp"` ResetFull string `codec:"resetFull" json:"resetFull"` }
type TlfResolveArg ¶ added in v1.0.19
type UnreadFirstNumLimit ¶
type UnreadUpdate ¶ added in v1.0.19
type UnreadUpdate struct { ConvID ConversationID `codec:"convID" json:"convID"` UnreadMessages int `codec:"UnreadMessages" json:"UnreadMessages"` }
type UnreadUpdateFull ¶ added in v1.0.19
type UnreadUpdateFull struct { Ignore bool `codec:"ignore" json:"ignore"` InboxVers InboxVers `codec:"inboxVers" json:"inboxVers"` Updates []UnreadUpdate `codec:"updates" json:"updates"` }