panda

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: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KeyExchange_Status_name = map[int32]string{
	0: "INIT",
	1: "EXCHANGE1",
	2: "EXCHANGE2",
}
View Source
var KeyExchange_Status_value = map[string]int32{
	"INIT":      0,
	"EXCHANGE1": 1,
	"EXCHANGE2": 2,
}

Functions

This section is empty.

Types

type KeyExchange

type KeyExchange struct {
	Status           *KeyExchange_Status       `protobuf:"varint,1,req,name=status,enum=panda.KeyExchange_Status" json:"status,omitempty"`
	KeyExchangeBytes []byte                    `protobuf:"bytes,2,req,name=key_exchange_bytes" json:"key_exchange_bytes,omitempty"`
	SharedSecret     *KeyExchange_SharedSecret `protobuf:"bytes,3,opt,name=shared_secret" json:"shared_secret,omitempty"`
	DhPrivate        []byte                    `protobuf:"bytes,4,opt,name=dh_private" json:"dh_private,omitempty"`
	Key              []byte                    `protobuf:"bytes,5,opt,name=key" json:"key,omitempty"`
	Meeting1         []byte                    `protobuf:"bytes,6,opt,name=meeting1" json:"meeting1,omitempty"`
	Meeting2         []byte                    `protobuf:"bytes,7,opt,name=meeting2" json:"meeting2,omitempty"`
	Message1         []byte                    `protobuf:"bytes,8,opt,name=message1" json:"message1,omitempty"`
	Message2         []byte                    `protobuf:"bytes,9,opt,name=message2" json:"message2,omitempty"`
	SharedKey        []byte                    `protobuf:"bytes,10,opt,name=shared_key" json:"shared_key,omitempty"`
	XXX_unrecognized []byte                    `json:"-"`
}

func (*KeyExchange) GetDhPrivate

func (this *KeyExchange) GetDhPrivate() []byte

func (*KeyExchange) GetKey

func (this *KeyExchange) GetKey() []byte

func (*KeyExchange) GetKeyExchangeBytes

func (this *KeyExchange) GetKeyExchangeBytes() []byte

func (*KeyExchange) GetMeeting1

func (this *KeyExchange) GetMeeting1() []byte

func (*KeyExchange) GetMeeting2

func (this *KeyExchange) GetMeeting2() []byte

func (*KeyExchange) GetMessage1

func (this *KeyExchange) GetMessage1() []byte

func (*KeyExchange) GetMessage2

func (this *KeyExchange) GetMessage2() []byte

func (*KeyExchange) GetSharedKey

func (this *KeyExchange) GetSharedKey() []byte

func (*KeyExchange) GetSharedSecret

func (this *KeyExchange) GetSharedSecret() *KeyExchange_SharedSecret

func (*KeyExchange) GetStatus

func (this *KeyExchange) GetStatus() KeyExchange_Status

func (*KeyExchange) ProtoMessage

func (*KeyExchange) ProtoMessage()

func (*KeyExchange) Reset

func (this *KeyExchange) Reset()

func (*KeyExchange) String

func (this *KeyExchange) String() string

type KeyExchange_SharedSecret

type KeyExchange_SharedSecret struct {
	Secret           *string                        `protobuf:"bytes,1,opt,name=secret" json:"secret,omitempty"`
	NumDecks         *int32                         `protobuf:"varint,2,opt,name=num_decks" json:"num_decks,omitempty"`
	CardCount        []int32                        `protobuf:"varint,3,rep,name=card_count" json:"card_count,omitempty"`
	Time             *KeyExchange_SharedSecret_Time `protobuf:"bytes,4,opt,name=time" json:"time,omitempty"`
	XXX_unrecognized []byte                         `json:"-"`
}

func (*KeyExchange_SharedSecret) GetCardCount

func (this *KeyExchange_SharedSecret) GetCardCount() []int32

func (*KeyExchange_SharedSecret) GetNumDecks

func (this *KeyExchange_SharedSecret) GetNumDecks() int32

func (*KeyExchange_SharedSecret) GetSecret

func (this *KeyExchange_SharedSecret) GetSecret() string

func (*KeyExchange_SharedSecret) GetTime

func (*KeyExchange_SharedSecret) ProtoMessage

func (*KeyExchange_SharedSecret) ProtoMessage()

func (*KeyExchange_SharedSecret) Reset

func (this *KeyExchange_SharedSecret) Reset()

func (*KeyExchange_SharedSecret) String

func (this *KeyExchange_SharedSecret) String() string

type KeyExchange_SharedSecret_Time

type KeyExchange_SharedSecret_Time struct {
	Day              *int32 `protobuf:"varint,1,req,name=day" json:"day,omitempty"`
	Month            *int32 `protobuf:"varint,2,req,name=month" json:"month,omitempty"`
	Year             *int32 `protobuf:"varint,3,req,name=year" json:"year,omitempty"`
	Hours            *int32 `protobuf:"varint,4,req,name=hours" json:"hours,omitempty"`
	Minutes          *int32 `protobuf:"varint,5,req,name=minutes" json:"minutes,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*KeyExchange_SharedSecret_Time) GetDay

func (this *KeyExchange_SharedSecret_Time) GetDay() int32

func (*KeyExchange_SharedSecret_Time) GetHours

func (this *KeyExchange_SharedSecret_Time) GetHours() int32

func (*KeyExchange_SharedSecret_Time) GetMinutes

func (this *KeyExchange_SharedSecret_Time) GetMinutes() int32

func (*KeyExchange_SharedSecret_Time) GetMonth

func (this *KeyExchange_SharedSecret_Time) GetMonth() int32

func (*KeyExchange_SharedSecret_Time) GetYear

func (this *KeyExchange_SharedSecret_Time) GetYear() int32

func (*KeyExchange_SharedSecret_Time) ProtoMessage

func (*KeyExchange_SharedSecret_Time) ProtoMessage()

func (*KeyExchange_SharedSecret_Time) Reset

func (this *KeyExchange_SharedSecret_Time) Reset()

func (*KeyExchange_SharedSecret_Time) String

func (this *KeyExchange_SharedSecret_Time) String() string

type KeyExchange_Status

type KeyExchange_Status int32
const (
	KeyExchange_INIT      KeyExchange_Status = 0
	KeyExchange_EXCHANGE1 KeyExchange_Status = 1
	KeyExchange_EXCHANGE2 KeyExchange_Status = 2
)

func (KeyExchange_Status) Enum

func (KeyExchange_Status) MarshalJSON

func (x KeyExchange_Status) MarshalJSON() ([]byte, error)

func (KeyExchange_Status) String

func (x KeyExchange_Status) String() string

func (*KeyExchange_Status) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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