Documentation
¶
Index ¶
- Constants
- Variables
- type AccountCreated
- type AccountDetails
- type Delivery
- func (this *Delivery) GetGeneration() uint32
- func (this *Delivery) GetGroupSignature() []byte
- func (this *Delivery) GetHmacOfPublicKey() uint64
- func (this *Delivery) GetMessage() []byte
- func (this *Delivery) GetOneTimePublicKey() []byte
- func (this *Delivery) GetOneTimeSignature() []byte
- func (this *Delivery) GetTo() []byte
- func (*Delivery) ProtoMessage()
- func (this *Delivery) Reset()
- func (this *Delivery) String() string
- type Download
- type DownloadReply
- type Fetch
- type Fetched
- type HMACSetup
- type HMACStrike
- type KeyExchange
- func (this *KeyExchange) GetDh() []byte
- func (this *KeyExchange) GetDh1() []byte
- func (this *KeyExchange) GetGeneration() uint32
- func (this *KeyExchange) GetGroup() []byte
- func (this *KeyExchange) GetGroupKey() []byte
- func (this *KeyExchange) GetIdentityPublic() []byte
- func (this *KeyExchange) GetPublicKey() []byte
- func (this *KeyExchange) GetServer() string
- func (*KeyExchange) ProtoMessage()
- func (this *KeyExchange) Reset()
- func (this *KeyExchange) String() string
- type Message
- func (this *Message) GetAlsoAck() []uint64
- func (this *Message) GetBody() []byte
- func (this *Message) GetBodyEncoding() Message_Encoding
- func (this *Message) GetDetachedFiles() []*Message_Detachment
- func (this *Message) GetFiles() []*Message_Attachment
- func (this *Message) GetId() uint64
- func (this *Message) GetInReplyTo() uint64
- func (this *Message) GetMyNextDh() []byte
- func (this *Message) GetSupportedVersion() int32
- func (this *Message) GetTime() int64
- func (*Message) ProtoMessage()
- func (this *Message) Reset()
- func (this *Message) String() string
- type Message_Attachment
- type Message_Detachment
- func (this *Message_Detachment) GetChunkSize() uint32
- func (this *Message_Detachment) GetFilename() string
- func (this *Message_Detachment) GetKey() []byte
- func (this *Message_Detachment) GetPaddedSize() uint64
- func (this *Message_Detachment) GetSize() uint64
- func (this *Message_Detachment) GetUrl() string
- func (*Message_Detachment) ProtoMessage()
- func (this *Message_Detachment) Reset()
- func (this *Message_Detachment) String() string
- type Message_Encoding
- type NewAccount
- type Reply
- func (this *Reply) GetAccountCreated() *AccountCreated
- func (this *Reply) GetAnnounce() *ServerAnnounce
- func (this *Reply) GetDownload() *DownloadReply
- func (this *Reply) GetExtraRevocations() []*SignedRevocation
- func (this *Reply) GetFetched() *Fetched
- func (this *Reply) GetRevocation() *SignedRevocation
- func (this *Reply) GetStatus() Reply_Status
- func (this *Reply) GetUpload() *UploadReply
- func (*Reply) ProtoMessage()
- func (this *Reply) Reset()
- func (this *Reply) String() string
- type Reply_Status
- type Request
- func (this *Request) GetDeliver() *Delivery
- func (this *Request) GetDownload() *Download
- func (this *Request) GetFetch() *Fetch
- func (this *Request) GetHmacSetup() *HMACSetup
- func (this *Request) GetHmacStrike() *HMACStrike
- func (this *Request) GetNewAccount() *NewAccount
- func (this *Request) GetRevocation() *SignedRevocation
- func (this *Request) GetUpload() *Upload
- func (*Request) ProtoMessage()
- func (this *Request) Reset()
- func (this *Request) String() string
- type ServerAnnounce
- type SignedKeyExchange
- type SignedRevocation
- type SignedRevocation_Revocation
- type Upload
- type UploadReply
Constants ¶
View Source
const MaxSerializedMessage = TransportSize - (secretbox.Overhead + 4 + 4 + 32 + 24) - secretbox.Overhead - MessageOverhead
MaxSerializedMessage is the maximum size of the serialized Message protobuf. The message will end up looking like this:
[length - 4 bytes ] | NaCl box | Message that server sees. [nonce - 24 bytes ] [secretbox.Overhead - 16 bytes] [message count - 4 bytes ] [prev message count - 4 bytes ] [ratchet public - 32 bytes ] [inner nonce - 32 bytes ] [secretbox.Overhead - 16 bytes] [serialized message ]
View Source
const MessageOverhead = 512
MessageOverhead is the number of bytes reserved for wrapping a Message up in protobufs. That includes the overhead of the protobufs themselves, as well as the metadata in the protobuf and the group signature.
View Source
const TransportSize = 16384 - 2 - secretbox.Overhead
TransportSize is the number of bytes that all payloads are padded to before sending on the network.
Variables ¶
View Source
var Message_Encoding_name = map[int32]string{
0: "RAW",
1: "GZIP",
}
View Source
var Message_Encoding_value = map[string]int32{
"RAW": 0,
"GZIP": 1,
}
View Source
var Reply_Status_name = map[int32]string{
0: "OK",
1: "PARSE_ERROR",
2: "NO_REQUEST",
3: "INTERNAL_ERROR",
10: "IDENTITY_ALREADY_KNOWN",
11: "OVERLOAD",
12: "NO_SUCH_ADDRESS",
13: "DELIVERY_SIGNATURE_INVALID",
14: "INCORRECT_GENERATION",
15: "MAILBOX_FULL",
16: "NO_ACCOUNT",
17: "OVER_QUOTA",
18: "FILE_LARGER_THAN_SIZE",
19: "FILE_COMPLETE",
20: "NO_SUCH_FILE",
21: "RESUME_PAST_END_OF_FILE",
22: "GENERATION_REVOKED",
23: "CANNOT_PARSE_REVOCATION",
24: "REGISTRATION_DISABLED",
25: "HMAC_KEY_ALREADY_SET",
26: "HMAC_NOT_SETUP",
27: "HMAC_INCORRECT",
28: "HMAC_USED",
29: "HMAC_REVOKED",
}
View Source
var Reply_Status_value = map[string]int32{
"OK": 0,
"PARSE_ERROR": 1,
"NO_REQUEST": 2,
"INTERNAL_ERROR": 3,
"IDENTITY_ALREADY_KNOWN": 10,
"OVERLOAD": 11,
"NO_SUCH_ADDRESS": 12,
"DELIVERY_SIGNATURE_INVALID": 13,
"INCORRECT_GENERATION": 14,
"MAILBOX_FULL": 15,
"NO_ACCOUNT": 16,
"OVER_QUOTA": 17,
"FILE_LARGER_THAN_SIZE": 18,
"FILE_COMPLETE": 19,
"NO_SUCH_FILE": 20,
"RESUME_PAST_END_OF_FILE": 21,
"GENERATION_REVOKED": 22,
"CANNOT_PARSE_REVOCATION": 23,
"REGISTRATION_DISABLED": 24,
"HMAC_KEY_ALREADY_SET": 25,
"HMAC_NOT_SETUP": 26,
"HMAC_INCORRECT": 27,
"HMAC_USED": 28,
"HMAC_REVOKED": 29,
}
Functions ¶
This section is empty.
Types ¶
type AccountCreated ¶
type AccountCreated struct {
Details *AccountDetails `protobuf:"bytes,1,req,name=details" json:"details,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*AccountCreated) GetDetails ¶
func (this *AccountCreated) GetDetails() *AccountDetails
func (*AccountCreated) ProtoMessage ¶
func (*AccountCreated) ProtoMessage()
func (*AccountCreated) Reset ¶
func (this *AccountCreated) Reset()
func (*AccountCreated) String ¶
func (this *AccountCreated) String() string
type AccountDetails ¶
type AccountDetails struct {
Queue *uint32 `protobuf:"varint,1,req,name=queue" json:"queue,omitempty"`
MaxQueue *uint32 `protobuf:"varint,2,req,name=max_queue" json:"max_queue,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*AccountDetails) GetMaxQueue ¶
func (this *AccountDetails) GetMaxQueue() uint32
func (*AccountDetails) GetQueue ¶
func (this *AccountDetails) GetQueue() uint32
func (*AccountDetails) ProtoMessage ¶
func (*AccountDetails) ProtoMessage()
func (*AccountDetails) Reset ¶
func (this *AccountDetails) Reset()
func (*AccountDetails) String ¶
func (this *AccountDetails) String() string
type Delivery ¶
type Delivery struct {
To []byte `protobuf:"bytes,1,req,name=to" json:"to,omitempty"`
GroupSignature []byte `protobuf:"bytes,2,opt,name=group_signature" json:"group_signature,omitempty"`
Generation *uint32 `protobuf:"fixed32,3,opt,name=generation" json:"generation,omitempty"`
Message []byte `protobuf:"bytes,4,req,name=message" json:"message,omitempty"`
OneTimePublicKey []byte `protobuf:"bytes,5,opt,name=one_time_public_key" json:"one_time_public_key,omitempty"`
HmacOfPublicKey *uint64 `protobuf:"fixed64,6,opt,name=hmac_of_public_key" json:"hmac_of_public_key,omitempty"`
OneTimeSignature []byte `protobuf:"bytes,7,opt,name=one_time_signature" json:"one_time_signature,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*Delivery) GetGeneration ¶
func (*Delivery) GetGroupSignature ¶
func (*Delivery) GetHmacOfPublicKey ¶
func (*Delivery) GetMessage ¶
func (*Delivery) GetOneTimePublicKey ¶
func (*Delivery) GetOneTimeSignature ¶
func (*Delivery) ProtoMessage ¶
func (*Delivery) ProtoMessage()
type Download ¶
type Download struct {
From []byte `protobuf:"bytes,1,req,name=from" json:"from,omitempty"`
Id *uint64 `protobuf:"fixed64,2,req,name=id" json:"id,omitempty"`
Resume *int64 `protobuf:"varint,3,opt,name=resume" json:"resume,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*Download) ProtoMessage ¶
func (*Download) ProtoMessage()
type DownloadReply ¶
type DownloadReply struct {
Size *int64 `protobuf:"varint,1,req,name=size" json:"size,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*DownloadReply) GetSize ¶
func (this *DownloadReply) GetSize() int64
func (*DownloadReply) ProtoMessage ¶
func (*DownloadReply) ProtoMessage()
func (*DownloadReply) Reset ¶
func (this *DownloadReply) Reset()
func (*DownloadReply) String ¶
func (this *DownloadReply) String() string
type Fetch ¶
type Fetch struct {
XXX_unrecognized []byte `json:"-"`
}
func (*Fetch) ProtoMessage ¶
func (*Fetch) ProtoMessage()
type Fetched ¶
type Fetched struct {
GroupSignature []byte `protobuf:"bytes,1,req,name=group_signature" json:"group_signature,omitempty"`
Generation *uint32 `protobuf:"fixed32,2,req,name=generation" json:"generation,omitempty"`
Message []byte `protobuf:"bytes,3,req,name=message" json:"message,omitempty"`
Details *AccountDetails `protobuf:"bytes,4,req,name=details" json:"details,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*Fetched) GetDetails ¶
func (this *Fetched) GetDetails() *AccountDetails
func (*Fetched) GetGeneration ¶
func (*Fetched) GetGroupSignature ¶
func (*Fetched) GetMessage ¶
func (*Fetched) ProtoMessage ¶
func (*Fetched) ProtoMessage()
type HMACSetup ¶
type HMACSetup struct {
HmacKey []byte `protobuf:"bytes,1,req,name=hmac_key" json:"hmac_key,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*HMACSetup) GetHmacKey ¶
func (*HMACSetup) ProtoMessage ¶
func (*HMACSetup) ProtoMessage()
type HMACStrike ¶
type HMACStrike struct {
Hmacs []uint64 `protobuf:"fixed64,1,rep,packed,name=hmacs" json:"hmacs,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*HMACStrike) GetHmacs ¶
func (this *HMACStrike) GetHmacs() []uint64
func (*HMACStrike) ProtoMessage ¶
func (*HMACStrike) ProtoMessage()
func (*HMACStrike) Reset ¶
func (this *HMACStrike) Reset()
func (*HMACStrike) String ¶
func (this *HMACStrike) String() string
type KeyExchange ¶
type KeyExchange struct {
PublicKey []byte `protobuf:"bytes,1,req,name=public_key" json:"public_key,omitempty"`
IdentityPublic []byte `protobuf:"bytes,2,req,name=identity_public" json:"identity_public,omitempty"`
Server *string `protobuf:"bytes,3,req,name=server" json:"server,omitempty"`
Dh []byte `protobuf:"bytes,4,req,name=dh" json:"dh,omitempty"`
Dh1 []byte `protobuf:"bytes,8,opt,name=dh1" json:"dh1,omitempty"`
Group []byte `protobuf:"bytes,5,req,name=group" json:"group,omitempty"`
GroupKey []byte `protobuf:"bytes,6,req,name=group_key" json:"group_key,omitempty"`
Generation *uint32 `protobuf:"varint,7,req,name=generation" json:"generation,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*KeyExchange) GetDh ¶
func (this *KeyExchange) GetDh() []byte
func (*KeyExchange) GetDh1 ¶
func (this *KeyExchange) GetDh1() []byte
func (*KeyExchange) GetGeneration ¶
func (this *KeyExchange) GetGeneration() uint32
func (*KeyExchange) GetGroup ¶
func (this *KeyExchange) GetGroup() []byte
func (*KeyExchange) GetGroupKey ¶
func (this *KeyExchange) GetGroupKey() []byte
func (*KeyExchange) GetIdentityPublic ¶
func (this *KeyExchange) GetIdentityPublic() []byte
func (*KeyExchange) GetPublicKey ¶
func (this *KeyExchange) GetPublicKey() []byte
func (*KeyExchange) GetServer ¶
func (this *KeyExchange) GetServer() string
func (*KeyExchange) ProtoMessage ¶
func (*KeyExchange) ProtoMessage()
func (*KeyExchange) Reset ¶
func (this *KeyExchange) Reset()
func (*KeyExchange) String ¶
func (this *KeyExchange) String() string
type Message ¶
type Message struct {
Id *uint64 `protobuf:"fixed64,1,req,name=id" json:"id,omitempty"`
Time *int64 `protobuf:"varint,2,req,name=time" json:"time,omitempty"`
Body []byte `protobuf:"bytes,3,req,name=body" json:"body,omitempty"`
BodyEncoding *Message_Encoding `protobuf:"varint,4,opt,name=body_encoding,enum=protos.Message_Encoding" json:"body_encoding,omitempty"`
MyNextDh []byte `protobuf:"bytes,5,opt,name=my_next_dh" json:"my_next_dh,omitempty"`
InReplyTo *uint64 `protobuf:"varint,6,opt,name=in_reply_to" json:"in_reply_to,omitempty"`
AlsoAck []uint64 `protobuf:"varint,10,rep,name=also_ack" json:"also_ack,omitempty"`
Files []*Message_Attachment `protobuf:"bytes,7,rep,name=files" json:"files,omitempty"`
DetachedFiles []*Message_Detachment `protobuf:"bytes,8,rep,name=detached_files" json:"detached_files,omitempty"`
SupportedVersion *int32 `protobuf:"varint,9,opt,name=supported_version" json:"supported_version,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*Message) GetAlsoAck ¶
func (*Message) GetBodyEncoding ¶
func (this *Message) GetBodyEncoding() Message_Encoding
func (*Message) GetDetachedFiles ¶
func (this *Message) GetDetachedFiles() []*Message_Detachment
func (*Message) GetFiles ¶
func (this *Message) GetFiles() []*Message_Attachment
func (*Message) GetInReplyTo ¶
func (*Message) GetMyNextDh ¶
func (*Message) GetSupportedVersion ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type Message_Attachment ¶
type Message_Attachment struct {
Filename *string `protobuf:"bytes,1,req,name=filename" json:"filename,omitempty"`
Contents []byte `protobuf:"bytes,2,req,name=contents" json:"contents,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*Message_Attachment) GetContents ¶
func (this *Message_Attachment) GetContents() []byte
func (*Message_Attachment) GetFilename ¶
func (this *Message_Attachment) GetFilename() string
func (*Message_Attachment) ProtoMessage ¶
func (*Message_Attachment) ProtoMessage()
func (*Message_Attachment) Reset ¶
func (this *Message_Attachment) Reset()
func (*Message_Attachment) String ¶
func (this *Message_Attachment) String() string
type Message_Detachment ¶
type Message_Detachment struct {
Filename *string `protobuf:"bytes,1,req,name=filename" json:"filename,omitempty"`
Size *uint64 `protobuf:"varint,2,req,name=size" json:"size,omitempty"`
PaddedSize *uint64 `protobuf:"varint,3,req,name=padded_size" json:"padded_size,omitempty"`
ChunkSize *uint32 `protobuf:"varint,4,req,name=chunk_size" json:"chunk_size,omitempty"`
Key []byte `protobuf:"bytes,5,req,name=key" json:"key,omitempty"`
Url *string `protobuf:"bytes,6,opt,name=url" json:"url,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*Message_Detachment) GetChunkSize ¶
func (this *Message_Detachment) GetChunkSize() uint32
func (*Message_Detachment) GetFilename ¶
func (this *Message_Detachment) GetFilename() string
func (*Message_Detachment) GetKey ¶
func (this *Message_Detachment) GetKey() []byte
func (*Message_Detachment) GetPaddedSize ¶
func (this *Message_Detachment) GetPaddedSize() uint64
func (*Message_Detachment) GetSize ¶
func (this *Message_Detachment) GetSize() uint64
func (*Message_Detachment) GetUrl ¶
func (this *Message_Detachment) GetUrl() string
func (*Message_Detachment) ProtoMessage ¶
func (*Message_Detachment) ProtoMessage()
func (*Message_Detachment) Reset ¶
func (this *Message_Detachment) Reset()
func (*Message_Detachment) String ¶
func (this *Message_Detachment) String() string
type Message_Encoding ¶
type Message_Encoding int32
const ( Message_RAW Message_Encoding = 0 Message_GZIP Message_Encoding = 1 )
func (Message_Encoding) Enum ¶
func (x Message_Encoding) Enum() *Message_Encoding
func (Message_Encoding) MarshalJSON ¶
func (x Message_Encoding) MarshalJSON() ([]byte, error)
func (Message_Encoding) String ¶
func (x Message_Encoding) String() string
func (*Message_Encoding) UnmarshalJSON ¶
func (x *Message_Encoding) UnmarshalJSON(data []byte) error
type NewAccount ¶
type NewAccount struct {
Generation *uint32 `protobuf:"fixed32,1,req,name=generation" json:"generation,omitempty"`
Group []byte `protobuf:"bytes,2,req,name=group" json:"group,omitempty"`
HmacKey []byte `protobuf:"bytes,3,opt,name=hmac_key" json:"hmac_key,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*NewAccount) GetGeneration ¶
func (this *NewAccount) GetGeneration() uint32
func (*NewAccount) GetGroup ¶
func (this *NewAccount) GetGroup() []byte
func (*NewAccount) GetHmacKey ¶
func (this *NewAccount) GetHmacKey() []byte
func (*NewAccount) ProtoMessage ¶
func (*NewAccount) ProtoMessage()
func (*NewAccount) Reset ¶
func (this *NewAccount) Reset()
func (*NewAccount) String ¶
func (this *NewAccount) String() string
type Reply ¶
type Reply struct {
Status *Reply_Status `protobuf:"varint,1,opt,name=status,enum=protos.Reply_Status,def=0" json:"status,omitempty"`
AccountCreated *AccountCreated `protobuf:"bytes,2,opt,name=account_created" json:"account_created,omitempty"`
Fetched *Fetched `protobuf:"bytes,3,opt,name=fetched" json:"fetched,omitempty"`
Announce *ServerAnnounce `protobuf:"bytes,4,opt,name=announce" json:"announce,omitempty"`
Upload *UploadReply `protobuf:"bytes,5,opt,name=upload" json:"upload,omitempty"`
Download *DownloadReply `protobuf:"bytes,6,opt,name=download" json:"download,omitempty"`
Revocation *SignedRevocation `protobuf:"bytes,7,opt,name=revocation" json:"revocation,omitempty"`
ExtraRevocations []*SignedRevocation `protobuf:"bytes,8,rep,name=extra_revocations" json:"extra_revocations,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*Reply) GetAccountCreated ¶
func (this *Reply) GetAccountCreated() *AccountCreated
func (*Reply) GetAnnounce ¶
func (this *Reply) GetAnnounce() *ServerAnnounce
func (*Reply) GetDownload ¶
func (this *Reply) GetDownload() *DownloadReply
func (*Reply) GetExtraRevocations ¶
func (this *Reply) GetExtraRevocations() []*SignedRevocation
func (*Reply) GetFetched ¶
func (*Reply) GetRevocation ¶
func (this *Reply) GetRevocation() *SignedRevocation
func (*Reply) GetStatus ¶
func (this *Reply) GetStatus() Reply_Status
func (*Reply) GetUpload ¶
func (this *Reply) GetUpload() *UploadReply
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
type Reply_Status ¶
type Reply_Status int32
const ( Reply_OK Reply_Status = 0 Reply_PARSE_ERROR Reply_Status = 1 Reply_NO_REQUEST Reply_Status = 2 Reply_INTERNAL_ERROR Reply_Status = 3 Reply_IDENTITY_ALREADY_KNOWN Reply_Status = 10 Reply_OVERLOAD Reply_Status = 11 Reply_NO_SUCH_ADDRESS Reply_Status = 12 Reply_DELIVERY_SIGNATURE_INVALID Reply_Status = 13 Reply_INCORRECT_GENERATION Reply_Status = 14 Reply_MAILBOX_FULL Reply_Status = 15 Reply_NO_ACCOUNT Reply_Status = 16 Reply_OVER_QUOTA Reply_Status = 17 Reply_FILE_LARGER_THAN_SIZE Reply_Status = 18 Reply_FILE_COMPLETE Reply_Status = 19 Reply_NO_SUCH_FILE Reply_Status = 20 Reply_RESUME_PAST_END_OF_FILE Reply_Status = 21 Reply_GENERATION_REVOKED Reply_Status = 22 Reply_CANNOT_PARSE_REVOCATION Reply_Status = 23 Reply_REGISTRATION_DISABLED Reply_Status = 24 Reply_HMAC_KEY_ALREADY_SET Reply_Status = 25 Reply_HMAC_NOT_SETUP Reply_Status = 26 Reply_HMAC_INCORRECT Reply_Status = 27 Reply_HMAC_USED Reply_Status = 28 Reply_HMAC_REVOKED Reply_Status = 29 )
const Default_Reply_Status Reply_Status = Reply_OK
func (Reply_Status) Enum ¶
func (x Reply_Status) Enum() *Reply_Status
func (Reply_Status) MarshalJSON ¶
func (x Reply_Status) MarshalJSON() ([]byte, error)
func (Reply_Status) String ¶
func (x Reply_Status) String() string
func (*Reply_Status) UnmarshalJSON ¶
func (x *Reply_Status) UnmarshalJSON(data []byte) error
type Request ¶
type Request struct {
NewAccount *NewAccount `protobuf:"bytes,1,opt,name=new_account" json:"new_account,omitempty"`
Deliver *Delivery `protobuf:"bytes,2,opt,name=deliver" json:"deliver,omitempty"`
Fetch *Fetch `protobuf:"bytes,3,opt,name=fetch" json:"fetch,omitempty"`
Upload *Upload `protobuf:"bytes,4,opt,name=upload" json:"upload,omitempty"`
Download *Download `protobuf:"bytes,5,opt,name=download" json:"download,omitempty"`
Revocation *SignedRevocation `protobuf:"bytes,6,opt,name=revocation" json:"revocation,omitempty"`
HmacSetup *HMACSetup `protobuf:"bytes,7,opt,name=hmac_setup" json:"hmac_setup,omitempty"`
HmacStrike *HMACStrike `protobuf:"bytes,8,opt,name=hmac_strike" json:"hmac_strike,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*Request) GetDeliver ¶
func (*Request) GetDownload ¶
func (*Request) GetHmacSetup ¶
func (*Request) GetHmacStrike ¶
func (this *Request) GetHmacStrike() *HMACStrike
func (*Request) GetNewAccount ¶
func (this *Request) GetNewAccount() *NewAccount
func (*Request) GetRevocation ¶
func (this *Request) GetRevocation() *SignedRevocation
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type ServerAnnounce ¶
type ServerAnnounce struct {
Message *Message `protobuf:"bytes,1,req,name=message" json:"message,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*ServerAnnounce) GetMessage ¶
func (this *ServerAnnounce) GetMessage() *Message
func (*ServerAnnounce) ProtoMessage ¶
func (*ServerAnnounce) ProtoMessage()
func (*ServerAnnounce) Reset ¶
func (this *ServerAnnounce) Reset()
func (*ServerAnnounce) String ¶
func (this *ServerAnnounce) String() string
type SignedKeyExchange ¶
type SignedKeyExchange struct {
Signed []byte `protobuf:"bytes,1,req,name=signed" json:"signed,omitempty"`
Signature []byte `protobuf:"bytes,2,req,name=signature" json:"signature,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*SignedKeyExchange) GetSignature ¶
func (this *SignedKeyExchange) GetSignature() []byte
func (*SignedKeyExchange) GetSigned ¶
func (this *SignedKeyExchange) GetSigned() []byte
func (*SignedKeyExchange) ProtoMessage ¶
func (*SignedKeyExchange) ProtoMessage()
func (*SignedKeyExchange) Reset ¶
func (this *SignedKeyExchange) Reset()
func (*SignedKeyExchange) String ¶
func (this *SignedKeyExchange) String() string
type SignedRevocation ¶
type SignedRevocation struct {
Revocation *SignedRevocation_Revocation `protobuf:"bytes,1,req,name=revocation" json:"revocation,omitempty"`
Signature []byte `protobuf:"bytes,2,req,name=signature" json:"signature,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*SignedRevocation) GetRevocation ¶
func (this *SignedRevocation) GetRevocation() *SignedRevocation_Revocation
func (*SignedRevocation) GetSignature ¶
func (this *SignedRevocation) GetSignature() []byte
func (*SignedRevocation) ProtoMessage ¶
func (*SignedRevocation) ProtoMessage()
func (*SignedRevocation) Reset ¶
func (this *SignedRevocation) Reset()
func (*SignedRevocation) String ¶
func (this *SignedRevocation) String() string
type SignedRevocation_Revocation ¶
type SignedRevocation_Revocation struct {
Generation *uint32 `protobuf:"fixed32,1,req,name=generation" json:"generation,omitempty"`
Revocation []byte `protobuf:"bytes,2,req,name=revocation" json:"revocation,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*SignedRevocation_Revocation) GetGeneration ¶
func (this *SignedRevocation_Revocation) GetGeneration() uint32
func (*SignedRevocation_Revocation) GetRevocation ¶
func (this *SignedRevocation_Revocation) GetRevocation() []byte
func (*SignedRevocation_Revocation) ProtoMessage ¶
func (*SignedRevocation_Revocation) ProtoMessage()
func (*SignedRevocation_Revocation) Reset ¶
func (this *SignedRevocation_Revocation) Reset()
func (*SignedRevocation_Revocation) String ¶
func (this *SignedRevocation_Revocation) String() string
type Upload ¶
type Upload struct {
Id *uint64 `protobuf:"fixed64,1,req,name=id" json:"id,omitempty"`
Size *int64 `protobuf:"varint,2,req,name=size" json:"size,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*Upload) ProtoMessage ¶
func (*Upload) ProtoMessage()
type UploadReply ¶
type UploadReply struct {
Resume *int64 `protobuf:"varint,1,opt,name=resume" json:"resume,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (*UploadReply) GetResume ¶
func (this *UploadReply) GetResume() int64
func (*UploadReply) ProtoMessage ¶
func (*UploadReply) ProtoMessage()
func (*UploadReply) Reset ¶
func (this *UploadReply) Reset()
func (*UploadReply) String ¶
func (this *UploadReply) String() string
Click to show internal directories.
Click to hide internal directories.