Documentation ¶
Index ¶
- Constants
- Variables
- type AttachmentPointer
- func (m *AttachmentPointer) GetContentType() string
- func (m *AttachmentPointer) GetId() uint64
- func (m *AttachmentPointer) GetKey() []byte
- func (m *AttachmentPointer) GetSize() uint32
- func (m *AttachmentPointer) GetThumbnail() []byte
- func (*AttachmentPointer) ProtoMessage()
- func (m *AttachmentPointer) Reset()
- func (m *AttachmentPointer) String() string
- type ContactDetails
- type ContactDetails_Avatar
- type Content
- type DataMessage
- type DataMessage_Flags
- type Envelope
- func (m *Envelope) GetContent() []byte
- func (m *Envelope) GetLegacyMessage() []byte
- func (m *Envelope) GetRelay() string
- func (m *Envelope) GetSource() string
- func (m *Envelope) GetSourceDevice() uint32
- func (m *Envelope) GetTimestamp() uint64
- func (m *Envelope) GetType() Envelope_Type
- func (*Envelope) ProtoMessage()
- func (m *Envelope) Reset()
- func (m *Envelope) String() string
- type Envelope_Type
- type GroupContext
- func (m *GroupContext) GetAvatar() *AttachmentPointer
- func (m *GroupContext) GetId() []byte
- func (m *GroupContext) GetMembers() []string
- func (m *GroupContext) GetName() string
- func (m *GroupContext) GetType() GroupContext_Type
- func (*GroupContext) ProtoMessage()
- func (m *GroupContext) Reset()
- func (m *GroupContext) String() string
- type GroupContext_Type
- type GroupDetails
- func (m *GroupDetails) GetActive() bool
- func (m *GroupDetails) GetAvatar() *GroupDetails_Avatar
- func (m *GroupDetails) GetId() []byte
- func (m *GroupDetails) GetMembers() []string
- func (m *GroupDetails) GetName() string
- func (*GroupDetails) ProtoMessage()
- func (m *GroupDetails) Reset()
- func (m *GroupDetails) String() string
- type GroupDetails_Avatar
- type ProvisionEnvelope
- type ProvisionMessage
- func (m *ProvisionMessage) GetIdentityKeyPrivate() []byte
- func (m *ProvisionMessage) GetIdentityKeyPublic() []byte
- func (m *ProvisionMessage) GetNumber() string
- func (m *ProvisionMessage) GetProvisioningCode() string
- func (*ProvisionMessage) ProtoMessage()
- func (m *ProvisionMessage) Reset()
- func (m *ProvisionMessage) String() string
- type SyncMessage
- func (m *SyncMessage) GetContacts() *SyncMessage_Contacts
- func (m *SyncMessage) GetGroups() *SyncMessage_Groups
- func (m *SyncMessage) GetRead() []*SyncMessage_Read
- func (m *SyncMessage) GetRequest() *SyncMessage_Request
- func (m *SyncMessage) GetSent() *SyncMessage_Sent
- func (*SyncMessage) ProtoMessage()
- func (m *SyncMessage) Reset()
- func (m *SyncMessage) String() string
- type SyncMessage_Contacts
- type SyncMessage_Groups
- type SyncMessage_Read
- type SyncMessage_Request
- type SyncMessage_Request_Type
- type SyncMessage_Sent
- type WebSocketMessage
- func (m *WebSocketMessage) GetRequest() *WebSocketRequestMessage
- func (m *WebSocketMessage) GetResponse() *WebSocketResponseMessage
- func (m *WebSocketMessage) GetType() WebSocketMessage_Type
- func (*WebSocketMessage) ProtoMessage()
- func (m *WebSocketMessage) Reset()
- func (m *WebSocketMessage) String() string
- type WebSocketMessage_Type
- type WebSocketRequestMessage
- func (m *WebSocketRequestMessage) GetBody() []byte
- func (m *WebSocketRequestMessage) GetId() uint64
- func (m *WebSocketRequestMessage) GetPath() string
- func (m *WebSocketRequestMessage) GetVerb() string
- func (*WebSocketRequestMessage) ProtoMessage()
- func (m *WebSocketRequestMessage) Reset()
- func (m *WebSocketRequestMessage) String() string
- type WebSocketResponseMessage
- func (m *WebSocketResponseMessage) GetBody() []byte
- func (m *WebSocketResponseMessage) GetId() uint64
- func (m *WebSocketResponseMessage) GetMessage() string
- func (m *WebSocketResponseMessage) GetStatus() uint32
- func (*WebSocketResponseMessage) ProtoMessage()
- func (m *WebSocketResponseMessage) Reset()
- func (m *WebSocketResponseMessage) String() string
Constants ¶
View Source
const Default_GroupDetails_Active bool = true
Variables ¶
View Source
var DataMessage_Flags_name = map[int32]string{
1: "END_SESSION",
}
View Source
var DataMessage_Flags_value = map[string]int32{
"END_SESSION": 1,
}
View Source
var Envelope_Type_name = map[int32]string{
0: "UNKNOWN",
1: "CIPHERTEXT",
2: "KEY_EXCHANGE",
3: "PREKEY_BUNDLE",
5: "RECEIPT",
}
View Source
var Envelope_Type_value = map[string]int32{
"UNKNOWN": 0,
"CIPHERTEXT": 1,
"KEY_EXCHANGE": 2,
"PREKEY_BUNDLE": 3,
"RECEIPT": 5,
}
View Source
var GroupContext_Type_name = map[int32]string{
0: "UNKNOWN",
1: "UPDATE",
2: "DELIVER",
3: "QUIT",
}
View Source
var GroupContext_Type_value = map[string]int32{
"UNKNOWN": 0,
"UPDATE": 1,
"DELIVER": 2,
"QUIT": 3,
}
View Source
var SyncMessage_Request_Type_name = map[int32]string{
0: "UNKNOWN",
1: "CONTACTS",
2: "GROUPS",
}
View Source
var SyncMessage_Request_Type_value = map[string]int32{
"UNKNOWN": 0,
"CONTACTS": 1,
"GROUPS": 2,
}
View Source
var WebSocketMessage_Type_name = map[int32]string{
0: "UNKNOWN",
1: "REQUEST",
2: "RESPONSE",
}
View Source
var WebSocketMessage_Type_value = map[string]int32{
"UNKNOWN": 0,
"REQUEST": 1,
"RESPONSE": 2,
}
Functions ¶
This section is empty.
Types ¶
type AttachmentPointer ¶
type AttachmentPointer struct { Id *uint64 `protobuf:"fixed64,1,opt,name=id" json:"id,omitempty"` ContentType *string `protobuf:"bytes,2,opt,name=contentType" json:"contentType,omitempty"` Key []byte `protobuf:"bytes,3,opt,name=key" json:"key,omitempty"` Size *uint32 `protobuf:"varint,4,opt,name=size" json:"size,omitempty"` Thumbnail []byte `protobuf:"bytes,5,opt,name=thumbnail" json:"thumbnail,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*AttachmentPointer) GetContentType ¶
func (m *AttachmentPointer) GetContentType() string
func (*AttachmentPointer) GetId ¶
func (m *AttachmentPointer) GetId() uint64
func (*AttachmentPointer) GetKey ¶
func (m *AttachmentPointer) GetKey() []byte
func (*AttachmentPointer) GetSize ¶
func (m *AttachmentPointer) GetSize() uint32
func (*AttachmentPointer) GetThumbnail ¶
func (m *AttachmentPointer) GetThumbnail() []byte
func (*AttachmentPointer) ProtoMessage ¶
func (*AttachmentPointer) ProtoMessage()
func (*AttachmentPointer) Reset ¶
func (m *AttachmentPointer) Reset()
func (*AttachmentPointer) String ¶
func (m *AttachmentPointer) String() string
type ContactDetails ¶
type ContactDetails struct { Number *string `protobuf:"bytes,1,opt,name=number" json:"number,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Avatar *ContactDetails_Avatar `protobuf:"bytes,3,opt,name=avatar" json:"avatar,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ContactDetails) GetAvatar ¶
func (m *ContactDetails) GetAvatar() *ContactDetails_Avatar
func (*ContactDetails) GetName ¶
func (m *ContactDetails) GetName() string
func (*ContactDetails) GetNumber ¶
func (m *ContactDetails) GetNumber() string
func (*ContactDetails) ProtoMessage ¶
func (*ContactDetails) ProtoMessage()
func (*ContactDetails) Reset ¶
func (m *ContactDetails) Reset()
func (*ContactDetails) String ¶
func (m *ContactDetails) String() string
type ContactDetails_Avatar ¶
type ContactDetails_Avatar struct { ContentType *string `protobuf:"bytes,1,opt,name=contentType" json:"contentType,omitempty"` Length *uint32 `protobuf:"varint,2,opt,name=length" json:"length,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ContactDetails_Avatar) GetContentType ¶
func (m *ContactDetails_Avatar) GetContentType() string
func (*ContactDetails_Avatar) GetLength ¶
func (m *ContactDetails_Avatar) GetLength() uint32
func (*ContactDetails_Avatar) ProtoMessage ¶
func (*ContactDetails_Avatar) ProtoMessage()
func (*ContactDetails_Avatar) Reset ¶
func (m *ContactDetails_Avatar) Reset()
func (*ContactDetails_Avatar) String ¶
func (m *ContactDetails_Avatar) String() string
type Content ¶
type Content struct { DataMessage *DataMessage `protobuf:"bytes,1,opt,name=dataMessage" json:"dataMessage,omitempty"` SyncMessage *SyncMessage `protobuf:"bytes,2,opt,name=syncMessage" json:"syncMessage,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Content) GetDataMessage ¶
func (m *Content) GetDataMessage() *DataMessage
func (*Content) GetSyncMessage ¶
func (m *Content) GetSyncMessage() *SyncMessage
func (*Content) ProtoMessage ¶
func (*Content) ProtoMessage()
type DataMessage ¶
type DataMessage struct { Body *string `protobuf:"bytes,1,opt,name=body" json:"body,omitempty"` Attachments []*AttachmentPointer `protobuf:"bytes,2,rep,name=attachments" json:"attachments,omitempty"` Group *GroupContext `protobuf:"bytes,3,opt,name=group" json:"group,omitempty"` Flags *uint32 `protobuf:"varint,4,opt,name=flags" json:"flags,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*DataMessage) GetAttachments ¶
func (m *DataMessage) GetAttachments() []*AttachmentPointer
func (*DataMessage) GetBody ¶
func (m *DataMessage) GetBody() string
func (*DataMessage) GetFlags ¶
func (m *DataMessage) GetFlags() uint32
func (*DataMessage) GetGroup ¶
func (m *DataMessage) GetGroup() *GroupContext
func (*DataMessage) ProtoMessage ¶
func (*DataMessage) ProtoMessage()
func (*DataMessage) Reset ¶
func (m *DataMessage) Reset()
func (*DataMessage) String ¶
func (m *DataMessage) String() string
type DataMessage_Flags ¶
type DataMessage_Flags int32
const (
DataMessage_END_SESSION DataMessage_Flags = 1
)
func (DataMessage_Flags) Enum ¶
func (x DataMessage_Flags) Enum() *DataMessage_Flags
func (DataMessage_Flags) MarshalJSON ¶
func (x DataMessage_Flags) MarshalJSON() ([]byte, error)
func (DataMessage_Flags) String ¶
func (x DataMessage_Flags) String() string
func (*DataMessage_Flags) UnmarshalJSON ¶
func (x *DataMessage_Flags) UnmarshalJSON(data []byte) error
type Envelope ¶
type Envelope struct { Type *Envelope_Type `protobuf:"varint,1,opt,name=type,enum=textsecure.Envelope_Type" json:"type,omitempty"` Source *string `protobuf:"bytes,2,opt,name=source" json:"source,omitempty"` SourceDevice *uint32 `protobuf:"varint,7,opt,name=sourceDevice" json:"sourceDevice,omitempty"` Relay *string `protobuf:"bytes,3,opt,name=relay" json:"relay,omitempty"` Timestamp *uint64 `protobuf:"varint,5,opt,name=timestamp" json:"timestamp,omitempty"` LegacyMessage []byte `protobuf:"bytes,6,opt,name=legacyMessage" json:"legacyMessage,omitempty"` Content []byte `protobuf:"bytes,8,opt,name=content" json:"content,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Envelope) GetContent ¶
func (*Envelope) GetLegacyMessage ¶
func (*Envelope) GetSourceDevice ¶
func (*Envelope) GetTimestamp ¶
func (*Envelope) GetType ¶
func (m *Envelope) GetType() Envelope_Type
func (*Envelope) ProtoMessage ¶
func (*Envelope) ProtoMessage()
type Envelope_Type ¶
type Envelope_Type int32
const ( Envelope_UNKNOWN Envelope_Type = 0 Envelope_CIPHERTEXT Envelope_Type = 1 Envelope_KEY_EXCHANGE Envelope_Type = 2 Envelope_PREKEY_BUNDLE Envelope_Type = 3 Envelope_RECEIPT Envelope_Type = 5 )
func (Envelope_Type) Enum ¶
func (x Envelope_Type) Enum() *Envelope_Type
func (Envelope_Type) MarshalJSON ¶
func (x Envelope_Type) MarshalJSON() ([]byte, error)
func (Envelope_Type) String ¶
func (x Envelope_Type) String() string
func (*Envelope_Type) UnmarshalJSON ¶
func (x *Envelope_Type) UnmarshalJSON(data []byte) error
type GroupContext ¶
type GroupContext struct { Id []byte `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Type *GroupContext_Type `protobuf:"varint,2,opt,name=type,enum=textsecure.GroupContext_Type" json:"type,omitempty"` Name *string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` Members []string `protobuf:"bytes,4,rep,name=members" json:"members,omitempty"` Avatar *AttachmentPointer `protobuf:"bytes,5,opt,name=avatar" json:"avatar,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*GroupContext) GetAvatar ¶
func (m *GroupContext) GetAvatar() *AttachmentPointer
func (*GroupContext) GetId ¶
func (m *GroupContext) GetId() []byte
func (*GroupContext) GetMembers ¶
func (m *GroupContext) GetMembers() []string
func (*GroupContext) GetName ¶
func (m *GroupContext) GetName() string
func (*GroupContext) GetType ¶
func (m *GroupContext) GetType() GroupContext_Type
func (*GroupContext) ProtoMessage ¶
func (*GroupContext) ProtoMessage()
func (*GroupContext) Reset ¶
func (m *GroupContext) Reset()
func (*GroupContext) String ¶
func (m *GroupContext) String() string
type GroupContext_Type ¶
type GroupContext_Type int32
const ( GroupContext_UNKNOWN GroupContext_Type = 0 GroupContext_UPDATE GroupContext_Type = 1 GroupContext_DELIVER GroupContext_Type = 2 GroupContext_QUIT GroupContext_Type = 3 )
func (GroupContext_Type) Enum ¶
func (x GroupContext_Type) Enum() *GroupContext_Type
func (GroupContext_Type) MarshalJSON ¶
func (x GroupContext_Type) MarshalJSON() ([]byte, error)
func (GroupContext_Type) String ¶
func (x GroupContext_Type) String() string
func (*GroupContext_Type) UnmarshalJSON ¶
func (x *GroupContext_Type) UnmarshalJSON(data []byte) error
type GroupDetails ¶
type GroupDetails struct { Id []byte `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Members []string `protobuf:"bytes,3,rep,name=members" json:"members,omitempty"` Avatar *GroupDetails_Avatar `protobuf:"bytes,4,opt,name=avatar" json:"avatar,omitempty"` Active *bool `protobuf:"varint,5,opt,name=active,def=1" json:"active,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*GroupDetails) GetActive ¶
func (m *GroupDetails) GetActive() bool
func (*GroupDetails) GetAvatar ¶
func (m *GroupDetails) GetAvatar() *GroupDetails_Avatar
func (*GroupDetails) GetId ¶
func (m *GroupDetails) GetId() []byte
func (*GroupDetails) GetMembers ¶
func (m *GroupDetails) GetMembers() []string
func (*GroupDetails) GetName ¶
func (m *GroupDetails) GetName() string
func (*GroupDetails) ProtoMessage ¶
func (*GroupDetails) ProtoMessage()
func (*GroupDetails) Reset ¶
func (m *GroupDetails) Reset()
func (*GroupDetails) String ¶
func (m *GroupDetails) String() string
type GroupDetails_Avatar ¶
type GroupDetails_Avatar struct { ContentType *string `protobuf:"bytes,1,opt,name=contentType" json:"contentType,omitempty"` Length *uint32 `protobuf:"varint,2,opt,name=length" json:"length,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*GroupDetails_Avatar) GetContentType ¶
func (m *GroupDetails_Avatar) GetContentType() string
func (*GroupDetails_Avatar) GetLength ¶
func (m *GroupDetails_Avatar) GetLength() uint32
func (*GroupDetails_Avatar) ProtoMessage ¶
func (*GroupDetails_Avatar) ProtoMessage()
func (*GroupDetails_Avatar) Reset ¶
func (m *GroupDetails_Avatar) Reset()
func (*GroupDetails_Avatar) String ¶
func (m *GroupDetails_Avatar) String() string
type ProvisionEnvelope ¶
type ProvisionEnvelope struct { PublicKey []byte `protobuf:"bytes,1,opt,name=publicKey" json:"publicKey,omitempty"` Body []byte `protobuf:"bytes,2,opt,name=body" json:"body,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ProvisionEnvelope) GetBody ¶
func (m *ProvisionEnvelope) GetBody() []byte
func (*ProvisionEnvelope) GetPublicKey ¶
func (m *ProvisionEnvelope) GetPublicKey() []byte
func (*ProvisionEnvelope) ProtoMessage ¶
func (*ProvisionEnvelope) ProtoMessage()
func (*ProvisionEnvelope) Reset ¶
func (m *ProvisionEnvelope) Reset()
func (*ProvisionEnvelope) String ¶
func (m *ProvisionEnvelope) String() string
type ProvisionMessage ¶
type ProvisionMessage struct { IdentityKeyPublic []byte `protobuf:"bytes,1,opt,name=identityKeyPublic" json:"identityKeyPublic,omitempty"` IdentityKeyPrivate []byte `protobuf:"bytes,2,opt,name=identityKeyPrivate" json:"identityKeyPrivate,omitempty"` Number *string `protobuf:"bytes,3,opt,name=number" json:"number,omitempty"` ProvisioningCode *string `protobuf:"bytes,4,opt,name=provisioningCode" json:"provisioningCode,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ProvisionMessage) GetIdentityKeyPrivate ¶
func (m *ProvisionMessage) GetIdentityKeyPrivate() []byte
func (*ProvisionMessage) GetIdentityKeyPublic ¶
func (m *ProvisionMessage) GetIdentityKeyPublic() []byte
func (*ProvisionMessage) GetNumber ¶
func (m *ProvisionMessage) GetNumber() string
func (*ProvisionMessage) GetProvisioningCode ¶
func (m *ProvisionMessage) GetProvisioningCode() string
func (*ProvisionMessage) ProtoMessage ¶
func (*ProvisionMessage) ProtoMessage()
func (*ProvisionMessage) Reset ¶
func (m *ProvisionMessage) Reset()
func (*ProvisionMessage) String ¶
func (m *ProvisionMessage) String() string
type SyncMessage ¶
type SyncMessage struct { Sent *SyncMessage_Sent `protobuf:"bytes,1,opt,name=sent" json:"sent,omitempty"` Contacts *SyncMessage_Contacts `protobuf:"bytes,2,opt,name=contacts" json:"contacts,omitempty"` Groups *SyncMessage_Groups `protobuf:"bytes,3,opt,name=groups" json:"groups,omitempty"` Request *SyncMessage_Request `protobuf:"bytes,4,opt,name=request" json:"request,omitempty"` Read []*SyncMessage_Read `protobuf:"bytes,5,rep,name=read" json:"read,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*SyncMessage) GetContacts ¶
func (m *SyncMessage) GetContacts() *SyncMessage_Contacts
func (*SyncMessage) GetGroups ¶
func (m *SyncMessage) GetGroups() *SyncMessage_Groups
func (*SyncMessage) GetRead ¶
func (m *SyncMessage) GetRead() []*SyncMessage_Read
func (*SyncMessage) GetRequest ¶
func (m *SyncMessage) GetRequest() *SyncMessage_Request
func (*SyncMessage) GetSent ¶
func (m *SyncMessage) GetSent() *SyncMessage_Sent
func (*SyncMessage) ProtoMessage ¶
func (*SyncMessage) ProtoMessage()
func (*SyncMessage) Reset ¶
func (m *SyncMessage) Reset()
func (*SyncMessage) String ¶
func (m *SyncMessage) String() string
type SyncMessage_Contacts ¶
type SyncMessage_Contacts struct { Blob *AttachmentPointer `protobuf:"bytes,1,opt,name=blob" json:"blob,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*SyncMessage_Contacts) GetBlob ¶
func (m *SyncMessage_Contacts) GetBlob() *AttachmentPointer
func (*SyncMessage_Contacts) ProtoMessage ¶
func (*SyncMessage_Contacts) ProtoMessage()
func (*SyncMessage_Contacts) Reset ¶
func (m *SyncMessage_Contacts) Reset()
func (*SyncMessage_Contacts) String ¶
func (m *SyncMessage_Contacts) String() string
type SyncMessage_Groups ¶
type SyncMessage_Groups struct { Blob *AttachmentPointer `protobuf:"bytes,1,opt,name=blob" json:"blob,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*SyncMessage_Groups) GetBlob ¶
func (m *SyncMessage_Groups) GetBlob() *AttachmentPointer
func (*SyncMessage_Groups) ProtoMessage ¶
func (*SyncMessage_Groups) ProtoMessage()
func (*SyncMessage_Groups) Reset ¶
func (m *SyncMessage_Groups) Reset()
func (*SyncMessage_Groups) String ¶
func (m *SyncMessage_Groups) String() string
type SyncMessage_Read ¶
type SyncMessage_Read struct { Sender *string `protobuf:"bytes,1,opt,name=sender" json:"sender,omitempty"` Timestamp *uint64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*SyncMessage_Read) GetSender ¶
func (m *SyncMessage_Read) GetSender() string
func (*SyncMessage_Read) GetTimestamp ¶
func (m *SyncMessage_Read) GetTimestamp() uint64
func (*SyncMessage_Read) ProtoMessage ¶
func (*SyncMessage_Read) ProtoMessage()
func (*SyncMessage_Read) Reset ¶
func (m *SyncMessage_Read) Reset()
func (*SyncMessage_Read) String ¶
func (m *SyncMessage_Read) String() string
type SyncMessage_Request ¶
type SyncMessage_Request struct { Type *SyncMessage_Request_Type `protobuf:"varint,1,opt,name=type,enum=textsecure.SyncMessage_Request_Type" json:"type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*SyncMessage_Request) GetType ¶
func (m *SyncMessage_Request) GetType() SyncMessage_Request_Type
func (*SyncMessage_Request) ProtoMessage ¶
func (*SyncMessage_Request) ProtoMessage()
func (*SyncMessage_Request) Reset ¶
func (m *SyncMessage_Request) Reset()
func (*SyncMessage_Request) String ¶
func (m *SyncMessage_Request) String() string
type SyncMessage_Request_Type ¶
type SyncMessage_Request_Type int32
const ( SyncMessage_Request_UNKNOWN SyncMessage_Request_Type = 0 SyncMessage_Request_CONTACTS SyncMessage_Request_Type = 1 SyncMessage_Request_GROUPS SyncMessage_Request_Type = 2 )
func (SyncMessage_Request_Type) Enum ¶
func (x SyncMessage_Request_Type) Enum() *SyncMessage_Request_Type
func (SyncMessage_Request_Type) MarshalJSON ¶
func (x SyncMessage_Request_Type) MarshalJSON() ([]byte, error)
func (SyncMessage_Request_Type) String ¶
func (x SyncMessage_Request_Type) String() string
func (*SyncMessage_Request_Type) UnmarshalJSON ¶
func (x *SyncMessage_Request_Type) UnmarshalJSON(data []byte) error
type SyncMessage_Sent ¶
type SyncMessage_Sent struct { Destination *string `protobuf:"bytes,1,opt,name=destination" json:"destination,omitempty"` Timestamp *uint64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"` Message *DataMessage `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*SyncMessage_Sent) GetDestination ¶
func (m *SyncMessage_Sent) GetDestination() string
func (*SyncMessage_Sent) GetMessage ¶
func (m *SyncMessage_Sent) GetMessage() *DataMessage
func (*SyncMessage_Sent) GetTimestamp ¶
func (m *SyncMessage_Sent) GetTimestamp() uint64
func (*SyncMessage_Sent) ProtoMessage ¶
func (*SyncMessage_Sent) ProtoMessage()
func (*SyncMessage_Sent) Reset ¶
func (m *SyncMessage_Sent) Reset()
func (*SyncMessage_Sent) String ¶
func (m *SyncMessage_Sent) String() string
type WebSocketMessage ¶
type WebSocketMessage struct { Type *WebSocketMessage_Type `protobuf:"varint,1,opt,name=type,enum=textsecure.WebSocketMessage_Type" json:"type,omitempty"` Request *WebSocketRequestMessage `protobuf:"bytes,2,opt,name=request" json:"request,omitempty"` Response *WebSocketResponseMessage `protobuf:"bytes,3,opt,name=response" json:"response,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*WebSocketMessage) GetRequest ¶
func (m *WebSocketMessage) GetRequest() *WebSocketRequestMessage
func (*WebSocketMessage) GetResponse ¶
func (m *WebSocketMessage) GetResponse() *WebSocketResponseMessage
func (*WebSocketMessage) GetType ¶
func (m *WebSocketMessage) GetType() WebSocketMessage_Type
func (*WebSocketMessage) ProtoMessage ¶
func (*WebSocketMessage) ProtoMessage()
func (*WebSocketMessage) Reset ¶
func (m *WebSocketMessage) Reset()
func (*WebSocketMessage) String ¶
func (m *WebSocketMessage) String() string
type WebSocketMessage_Type ¶
type WebSocketMessage_Type int32
const ( WebSocketMessage_UNKNOWN WebSocketMessage_Type = 0 WebSocketMessage_REQUEST WebSocketMessage_Type = 1 WebSocketMessage_RESPONSE WebSocketMessage_Type = 2 )
func (WebSocketMessage_Type) Enum ¶
func (x WebSocketMessage_Type) Enum() *WebSocketMessage_Type
func (WebSocketMessage_Type) MarshalJSON ¶
func (x WebSocketMessage_Type) MarshalJSON() ([]byte, error)
func (WebSocketMessage_Type) String ¶
func (x WebSocketMessage_Type) String() string
func (*WebSocketMessage_Type) UnmarshalJSON ¶
func (x *WebSocketMessage_Type) UnmarshalJSON(data []byte) error
type WebSocketRequestMessage ¶
type WebSocketRequestMessage struct { Verb *string `protobuf:"bytes,1,opt,name=verb" json:"verb,omitempty"` Path *string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"` Body []byte `protobuf:"bytes,3,opt,name=body" json:"body,omitempty"` Id *uint64 `protobuf:"varint,4,opt,name=id" json:"id,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*WebSocketRequestMessage) GetBody ¶
func (m *WebSocketRequestMessage) GetBody() []byte
func (*WebSocketRequestMessage) GetId ¶
func (m *WebSocketRequestMessage) GetId() uint64
func (*WebSocketRequestMessage) GetPath ¶
func (m *WebSocketRequestMessage) GetPath() string
func (*WebSocketRequestMessage) GetVerb ¶
func (m *WebSocketRequestMessage) GetVerb() string
func (*WebSocketRequestMessage) ProtoMessage ¶
func (*WebSocketRequestMessage) ProtoMessage()
func (*WebSocketRequestMessage) Reset ¶
func (m *WebSocketRequestMessage) Reset()
func (*WebSocketRequestMessage) String ¶
func (m *WebSocketRequestMessage) String() string
type WebSocketResponseMessage ¶
type WebSocketResponseMessage struct { Id *uint64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Status *uint32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"` Message *string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"` Body []byte `protobuf:"bytes,4,opt,name=body" json:"body,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*WebSocketResponseMessage) GetBody ¶
func (m *WebSocketResponseMessage) GetBody() []byte
func (*WebSocketResponseMessage) GetId ¶
func (m *WebSocketResponseMessage) GetId() uint64
func (*WebSocketResponseMessage) GetMessage ¶
func (m *WebSocketResponseMessage) GetMessage() string
func (*WebSocketResponseMessage) GetStatus ¶
func (m *WebSocketResponseMessage) GetStatus() uint32
func (*WebSocketResponseMessage) ProtoMessage ¶
func (*WebSocketResponseMessage) ProtoMessage()
func (*WebSocketResponseMessage) Reset ¶
func (m *WebSocketResponseMessage) Reset()
func (*WebSocketResponseMessage) String ¶
func (m *WebSocketResponseMessage) String() string
Click to show internal directories.
Click to hide internal directories.