protos

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2015 License: BSD-3-Clause Imports: 4 Imported by: 20

Documentation

Index

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 (this *Delivery) GetGeneration() uint32

func (*Delivery) GetGroupSignature

func (this *Delivery) GetGroupSignature() []byte

func (*Delivery) GetHmacOfPublicKey

func (this *Delivery) GetHmacOfPublicKey() uint64

func (*Delivery) GetMessage

func (this *Delivery) GetMessage() []byte

func (*Delivery) GetOneTimePublicKey

func (this *Delivery) GetOneTimePublicKey() []byte

func (*Delivery) GetOneTimeSignature

func (this *Delivery) GetOneTimeSignature() []byte

func (*Delivery) GetTo

func (this *Delivery) GetTo() []byte

func (*Delivery) ProtoMessage

func (*Delivery) ProtoMessage()

func (*Delivery) Reset

func (this *Delivery) Reset()

func (*Delivery) String

func (this *Delivery) String() string

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) GetFrom

func (this *Download) GetFrom() []byte

func (*Download) GetId

func (this *Download) GetId() uint64

func (*Download) GetResume

func (this *Download) GetResume() int64

func (*Download) ProtoMessage

func (*Download) ProtoMessage()

func (*Download) Reset

func (this *Download) Reset()

func (*Download) String

func (this *Download) String() string

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()

func (*Fetch) Reset

func (this *Fetch) Reset()

func (*Fetch) String

func (this *Fetch) String() string

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 (this *Fetched) GetGeneration() uint32

func (*Fetched) GetGroupSignature

func (this *Fetched) GetGroupSignature() []byte

func (*Fetched) GetMessage

func (this *Fetched) GetMessage() []byte

func (*Fetched) ProtoMessage

func (*Fetched) ProtoMessage()

func (*Fetched) Reset

func (this *Fetched) Reset()

func (*Fetched) String

func (this *Fetched) String() string

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 (this *HMACSetup) GetHmacKey() []byte

func (*HMACSetup) ProtoMessage

func (*HMACSetup) ProtoMessage()

func (*HMACSetup) Reset

func (this *HMACSetup) Reset()

func (*HMACSetup) String

func (this *HMACSetup) String() string

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 (this *Message) GetAlsoAck() []uint64

func (*Message) GetBody

func (this *Message) GetBody() []byte

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) GetId

func (this *Message) GetId() uint64

func (*Message) GetInReplyTo

func (this *Message) GetInReplyTo() uint64

func (*Message) GetMyNextDh

func (this *Message) GetMyNextDh() []byte

func (*Message) GetSupportedVersion

func (this *Message) GetSupportedVersion() int32

func (*Message) GetTime

func (this *Message) GetTime() int64

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (this *Message) Reset()

func (*Message) String

func (this *Message) String() string

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 (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 (this *Reply) GetFetched() *Fetched

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()

func (*Reply) Reset

func (this *Reply) Reset()

func (*Reply) String

func (this *Reply) String() string

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 (this *Request) GetDeliver() *Delivery

func (*Request) GetDownload

func (this *Request) GetDownload() *Download

func (*Request) GetFetch

func (this *Request) GetFetch() *Fetch

func (*Request) GetHmacSetup

func (this *Request) GetHmacSetup() *HMACSetup

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) GetUpload

func (this *Request) GetUpload() *Upload

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (this *Request) Reset()

func (*Request) String

func (this *Request) String() string

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) GetId

func (this *Upload) GetId() uint64

func (*Upload) GetSize

func (this *Upload) GetSize() int64

func (*Upload) ProtoMessage

func (*Upload) ProtoMessage()

func (*Upload) Reset

func (this *Upload) Reset()

func (*Upload) String

func (this *Upload) String() string

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

Jump to

Keyboard shortcuts

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