protocol

package
v0.3.16 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package protocol is a generated protocol buffer package.

It is generated from these files:

ControlChannel.proto
cwtch-profile.proto
group_message.proto

It has these top-level messages:

Packet
OpenChannel
ChannelResult
KeepAlive
EnableFeatures
FeaturesEnabled
CwtchPeerPacket
CwtchIdentity
GroupChatInvite
CwtchServerPacket
FetchMessage
GroupMessage
DecryptedGroupMessage

Package protocol is a generated protocol buffer package.

It is generated from these files:

cwtch-profile.proto

It has these top-level messages:

CwtchPeerPacket
CwtchIdentity
GroupChatInvite

Index

Constants

This section is empty.

Variables

View Source
var ChannelResult_CommonError_name = map[int32]string{
	0: "GenericError",
	1: "UnknownTypeError",
	2: "UnauthorizedError",
	3: "BadUsageError",
	4: "FailedError",
}
View Source
var ChannelResult_CommonError_value = map[string]int32{
	"GenericError":      0,
	"UnknownTypeError":  1,
	"UnauthorizedError": 2,
	"BadUsageError":     3,
	"FailedError":       4,
}
View Source
var E_ServerNonce = &proto.ExtensionDesc{
	ExtendedType:  (*control.ChannelResult)(nil),
	ExtensionType: ([]byte)(nil),
	Field:         8200,
	Name:          "protocol.server_nonce",
	Tag:           "bytes,8200,opt,name=server_nonce,json=serverNonce",
	Filename:      "group_message.proto",
}

Functions

This section is empty.

Types

type ChannelResult

type ChannelResult struct {
	ChannelIdentifier            *int32                     `protobuf:"varint,1,req,name=channel_identifier,json=channelIdentifier" json:"channel_identifier,omitempty"`
	Opened                       *bool                      `protobuf:"varint,2,req,name=opened" json:"opened,omitempty"`
	CommonError                  *ChannelResult_CommonError `` /* 128-byte string literal not displayed */
	proto.XXX_InternalExtensions `json:"-"`
	XXX_unrecognized             []byte `json:"-"`
}

func (*ChannelResult) Descriptor

func (*ChannelResult) Descriptor() ([]byte, []int)

func (*ChannelResult) ExtensionRangeArray

func (*ChannelResult) ExtensionRangeArray() []proto.ExtensionRange

func (*ChannelResult) GetChannelIdentifier

func (m *ChannelResult) GetChannelIdentifier() int32

func (*ChannelResult) GetCommonError

func (m *ChannelResult) GetCommonError() ChannelResult_CommonError

func (*ChannelResult) GetOpened

func (m *ChannelResult) GetOpened() bool

func (*ChannelResult) ProtoMessage

func (*ChannelResult) ProtoMessage()

func (*ChannelResult) Reset

func (m *ChannelResult) Reset()

func (*ChannelResult) String

func (m *ChannelResult) String() string

type ChannelResult_CommonError

type ChannelResult_CommonError int32
const (
	ChannelResult_GenericError      ChannelResult_CommonError = 0
	ChannelResult_UnknownTypeError  ChannelResult_CommonError = 1
	ChannelResult_UnauthorizedError ChannelResult_CommonError = 2
	ChannelResult_BadUsageError     ChannelResult_CommonError = 3
	ChannelResult_FailedError       ChannelResult_CommonError = 4
)

func (ChannelResult_CommonError) Enum

func (ChannelResult_CommonError) EnumDescriptor

func (ChannelResult_CommonError) EnumDescriptor() ([]byte, []int)

func (ChannelResult_CommonError) String

func (x ChannelResult_CommonError) String() string

func (*ChannelResult_CommonError) UnmarshalJSON

func (x *ChannelResult_CommonError) UnmarshalJSON(data []byte) error

type CwtchIdentity

type CwtchIdentity struct {
	Name             string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Ed25519PublicKey []byte `protobuf:"bytes,2,opt,name=ed25519_public_key,json=ed25519PublicKey,proto3" json:"ed25519_public_key,omitempty"`
}

func (*CwtchIdentity) Descriptor

func (*CwtchIdentity) Descriptor() ([]byte, []int)

func (*CwtchIdentity) GetEd25519PublicKey

func (m *CwtchIdentity) GetEd25519PublicKey() []byte

func (*CwtchIdentity) GetName

func (m *CwtchIdentity) GetName() string

func (*CwtchIdentity) ProtoMessage

func (*CwtchIdentity) ProtoMessage()

func (*CwtchIdentity) Reset

func (m *CwtchIdentity) Reset()

func (*CwtchIdentity) String

func (m *CwtchIdentity) String() string

type CwtchPeerPacket

type CwtchPeerPacket struct {
	CwtchIdentify   *CwtchIdentity   `protobuf:"bytes,1,opt,name=cwtch_identify,json=cwtchIdentify" json:"cwtch_identify,omitempty"`
	GroupChatInvite *GroupChatInvite `protobuf:"bytes,2,opt,name=group_chat_invite,json=groupChatInvite" json:"group_chat_invite,omitempty"`
}

func (*CwtchPeerPacket) Descriptor

func (*CwtchPeerPacket) Descriptor() ([]byte, []int)

func (*CwtchPeerPacket) GetCwtchIdentify

func (m *CwtchPeerPacket) GetCwtchIdentify() *CwtchIdentity

func (*CwtchPeerPacket) GetGroupChatInvite

func (m *CwtchPeerPacket) GetGroupChatInvite() *GroupChatInvite

func (*CwtchPeerPacket) ProtoMessage

func (*CwtchPeerPacket) ProtoMessage()

func (*CwtchPeerPacket) Reset

func (m *CwtchPeerPacket) Reset()

func (*CwtchPeerPacket) String

func (m *CwtchPeerPacket) String() string

type CwtchServerPacket

type CwtchServerPacket struct {
	GroupMessage     *GroupMessage `protobuf:"bytes,1,opt,name=group_message,json=groupMessage" json:"group_message,omitempty"`
	FetchMessage     *FetchMessage `protobuf:"bytes,2,opt,name=fetch_message,json=fetchMessage" json:"fetch_message,omitempty"`
	XXX_unrecognized []byte        `json:"-"`
}

func (*CwtchServerPacket) Descriptor

func (*CwtchServerPacket) Descriptor() ([]byte, []int)

func (*CwtchServerPacket) GetFetchMessage

func (m *CwtchServerPacket) GetFetchMessage() *FetchMessage

func (*CwtchServerPacket) GetGroupMessage

func (m *CwtchServerPacket) GetGroupMessage() *GroupMessage

func (*CwtchServerPacket) ProtoMessage

func (*CwtchServerPacket) ProtoMessage()

func (*CwtchServerPacket) Reset

func (m *CwtchServerPacket) Reset()

func (*CwtchServerPacket) String

func (m *CwtchServerPacket) String() string

type DecryptedGroupMessage

type DecryptedGroupMessage struct {
	Onion              *string `protobuf:"bytes,1,req,name=onion" json:"onion,omitempty"`
	Timestamp          *int32  `protobuf:"varint,2,req,name=timestamp" json:"timestamp,omitempty"`
	Text               *string `protobuf:"bytes,3,req,name=text" json:"text,omitempty"`
	SignedGroupId      []byte  `protobuf:"bytes,4,req,name=signed_group_id,json=signedGroupId" json:"signed_group_id,omitempty"`
	PreviousMessageSig []byte  `protobuf:"bytes,5,req,name=previous_message_sig,json=previousMessageSig" json:"previous_message_sig,omitempty"`
	// Used to prevent analysis on text length, length is 1024 - len(text)
	Padding          []byte `protobuf:"bytes,6,req,name=padding" json:"padding,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

DecryptedGroupMessage is *never* sent in the clear on the wire and is only ever sent when encrypted in the ciphertext parameter of GroupMessage

func (*DecryptedGroupMessage) Descriptor

func (*DecryptedGroupMessage) Descriptor() ([]byte, []int)

func (*DecryptedGroupMessage) GetOnion

func (m *DecryptedGroupMessage) GetOnion() string

func (*DecryptedGroupMessage) GetPadding

func (m *DecryptedGroupMessage) GetPadding() []byte

func (*DecryptedGroupMessage) GetPreviousMessageSig

func (m *DecryptedGroupMessage) GetPreviousMessageSig() []byte

func (*DecryptedGroupMessage) GetSignedGroupId

func (m *DecryptedGroupMessage) GetSignedGroupId() []byte

func (*DecryptedGroupMessage) GetText

func (m *DecryptedGroupMessage) GetText() string

func (*DecryptedGroupMessage) GetTimestamp

func (m *DecryptedGroupMessage) GetTimestamp() int32

func (*DecryptedGroupMessage) ProtoMessage

func (*DecryptedGroupMessage) ProtoMessage()

func (*DecryptedGroupMessage) Reset

func (m *DecryptedGroupMessage) Reset()

func (*DecryptedGroupMessage) String

func (m *DecryptedGroupMessage) String() string

type EnableFeatures

type EnableFeatures struct {
	Feature                      []string `protobuf:"bytes,1,rep,name=feature" json:"feature,omitempty"`
	proto.XXX_InternalExtensions `json:"-"`
	XXX_unrecognized             []byte `json:"-"`
}

func (*EnableFeatures) Descriptor

func (*EnableFeatures) Descriptor() ([]byte, []int)

func (*EnableFeatures) ExtensionRangeArray

func (*EnableFeatures) ExtensionRangeArray() []proto.ExtensionRange

func (*EnableFeatures) GetFeature

func (m *EnableFeatures) GetFeature() []string

func (*EnableFeatures) ProtoMessage

func (*EnableFeatures) ProtoMessage()

func (*EnableFeatures) Reset

func (m *EnableFeatures) Reset()

func (*EnableFeatures) String

func (m *EnableFeatures) String() string

type FeaturesEnabled

type FeaturesEnabled struct {
	Feature                      []string `protobuf:"bytes,1,rep,name=feature" json:"feature,omitempty"`
	proto.XXX_InternalExtensions `json:"-"`
	XXX_unrecognized             []byte `json:"-"`
}

func (*FeaturesEnabled) Descriptor

func (*FeaturesEnabled) Descriptor() ([]byte, []int)

func (*FeaturesEnabled) ExtensionRangeArray

func (*FeaturesEnabled) ExtensionRangeArray() []proto.ExtensionRange

func (*FeaturesEnabled) GetFeature

func (m *FeaturesEnabled) GetFeature() []string

func (*FeaturesEnabled) ProtoMessage

func (*FeaturesEnabled) ProtoMessage()

func (*FeaturesEnabled) Reset

func (m *FeaturesEnabled) Reset()

func (*FeaturesEnabled) String

func (m *FeaturesEnabled) String() string

type FetchMessage

type FetchMessage struct {
	XXX_unrecognized []byte `json:"-"`
}

func (*FetchMessage) Descriptor

func (*FetchMessage) Descriptor() ([]byte, []int)

func (*FetchMessage) ProtoMessage

func (*FetchMessage) ProtoMessage()

func (*FetchMessage) Reset

func (m *FetchMessage) Reset()

func (*FetchMessage) String

func (m *FetchMessage) String() string

type GroupChatInvite

type GroupChatInvite struct {
	GroupName      string `protobuf:"bytes,1,opt,name=group_name,json=groupName" json:"group_name,omitempty"`
	GroupSharedKey []byte `protobuf:"bytes,2,opt,name=group_shared_key,json=groupSharedKey,proto3" json:"group_shared_key,omitempty"`
	ServerHost     string `protobuf:"bytes,3,opt,name=server_host,json=serverHost" json:"server_host,omitempty"`
	SignedGroupId  []byte `protobuf:"bytes,4,opt,name=signed_group_id,json=signedGroupId,proto3" json:"signed_group_id,omitempty"`
	InitialMessage []byte `protobuf:"bytes,5,opt,name=initial_message,json=initialMessage,proto3" json:"initial_message,omitempty"`
}

[name] has invited you to join a group chat: [message]

func (*GroupChatInvite) Descriptor

func (*GroupChatInvite) Descriptor() ([]byte, []int)

func (*GroupChatInvite) GetGroupName

func (m *GroupChatInvite) GetGroupName() string

func (*GroupChatInvite) GetGroupSharedKey

func (m *GroupChatInvite) GetGroupSharedKey() []byte

func (*GroupChatInvite) GetInitialMessage

func (m *GroupChatInvite) GetInitialMessage() []byte

func (*GroupChatInvite) GetServerHost

func (m *GroupChatInvite) GetServerHost() string

func (*GroupChatInvite) GetSignedGroupId

func (m *GroupChatInvite) GetSignedGroupId() []byte

func (*GroupChatInvite) ProtoMessage

func (*GroupChatInvite) ProtoMessage()

func (*GroupChatInvite) Reset

func (m *GroupChatInvite) Reset()

func (*GroupChatInvite) String

func (m *GroupChatInvite) String() string

type GroupMessage

type GroupMessage struct {
	Ciphertext       []byte `protobuf:"bytes,1,req,name=ciphertext" json:"ciphertext,omitempty"`
	Spamguard        []byte `protobuf:"bytes,2,req,name=spamguard" json:"spamguard,omitempty"`
	Signature        []byte `protobuf:"bytes,3,req,name=signature" json:"signature,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*GroupMessage) Descriptor

func (*GroupMessage) Descriptor() ([]byte, []int)

func (*GroupMessage) GetCiphertext

func (m *GroupMessage) GetCiphertext() []byte

func (*GroupMessage) GetSignature

func (m *GroupMessage) GetSignature() []byte

func (*GroupMessage) GetSpamguard

func (m *GroupMessage) GetSpamguard() []byte

func (*GroupMessage) ProtoMessage

func (*GroupMessage) ProtoMessage()

func (*GroupMessage) Reset

func (m *GroupMessage) Reset()

func (*GroupMessage) String

func (m *GroupMessage) String() string

type KeepAlive

type KeepAlive struct {
	ResponseRequested *bool  `protobuf:"varint,1,req,name=response_requested,json=responseRequested" json:"response_requested,omitempty"`
	XXX_unrecognized  []byte `json:"-"`
}

func (*KeepAlive) Descriptor

func (*KeepAlive) Descriptor() ([]byte, []int)

func (*KeepAlive) GetResponseRequested

func (m *KeepAlive) GetResponseRequested() bool

func (*KeepAlive) ProtoMessage

func (*KeepAlive) ProtoMessage()

func (*KeepAlive) Reset

func (m *KeepAlive) Reset()

func (*KeepAlive) String

func (m *KeepAlive) String() string

type OpenChannel

type OpenChannel struct {
	ChannelIdentifier            *int32  `protobuf:"varint,1,req,name=channel_identifier,json=channelIdentifier" json:"channel_identifier,omitempty"`
	ChannelType                  *string `protobuf:"bytes,2,req,name=channel_type,json=channelType" json:"channel_type,omitempty"`
	proto.XXX_InternalExtensions `json:"-"`
	XXX_unrecognized             []byte `json:"-"`
}

func (*OpenChannel) Descriptor

func (*OpenChannel) Descriptor() ([]byte, []int)

func (*OpenChannel) ExtensionRangeArray

func (*OpenChannel) ExtensionRangeArray() []proto.ExtensionRange

func (*OpenChannel) GetChannelIdentifier

func (m *OpenChannel) GetChannelIdentifier() int32

func (*OpenChannel) GetChannelType

func (m *OpenChannel) GetChannelType() string

func (*OpenChannel) ProtoMessage

func (*OpenChannel) ProtoMessage()

func (*OpenChannel) Reset

func (m *OpenChannel) Reset()

func (*OpenChannel) String

func (m *OpenChannel) String() string

type Packet

type Packet struct {
	// Must contain exactly one field
	OpenChannel      *OpenChannel     `protobuf:"bytes,1,opt,name=open_channel,json=openChannel" json:"open_channel,omitempty"`
	ChannelResult    *ChannelResult   `protobuf:"bytes,2,opt,name=channel_result,json=channelResult" json:"channel_result,omitempty"`
	KeepAlive        *KeepAlive       `protobuf:"bytes,3,opt,name=keep_alive,json=keepAlive" json:"keep_alive,omitempty"`
	EnableFeatures   *EnableFeatures  `protobuf:"bytes,4,opt,name=enable_features,json=enableFeatures" json:"enable_features,omitempty"`
	FeaturesEnabled  *FeaturesEnabled `protobuf:"bytes,5,opt,name=features_enabled,json=featuresEnabled" json:"features_enabled,omitempty"`
	XXX_unrecognized []byte           `json:"-"`
}

func (*Packet) Descriptor

func (*Packet) Descriptor() ([]byte, []int)

func (*Packet) GetChannelResult

func (m *Packet) GetChannelResult() *ChannelResult

func (*Packet) GetEnableFeatures

func (m *Packet) GetEnableFeatures() *EnableFeatures

func (*Packet) GetFeaturesEnabled

func (m *Packet) GetFeaturesEnabled() *FeaturesEnabled

func (*Packet) GetKeepAlive

func (m *Packet) GetKeepAlive() *KeepAlive

func (*Packet) GetOpenChannel

func (m *Packet) GetOpenChannel() *OpenChannel

func (*Packet) ProtoMessage

func (*Packet) ProtoMessage()

func (*Packet) Reset

func (m *Packet) Reset()

func (*Packet) String

func (m *Packet) String() string

Directories

Path Synopsis
fuzzing

Jump to

Keyboard shortcuts

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