simpleexample_messages

package
v0.0.0-...-b5aa0b6 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package simpleexample_messages is a generated protocol buffer package.

It is generated from these files:

messages.proto

It has these top-level messages:

SimpleMessage
RsaPrivateKeyMessage
EcPrivateKeyMessage
PrivateKeyMessage

Index

Constants

This section is empty.

Variables

View Source
var MessageType_name = map[int32]string{
	1: "REQUEST",
	2: "RESPONSE",
}
View Source
var MessageType_value = map[string]int32{
	"REQUEST":  1,
	"RESPONSE": 2,
}

Functions

func PrintMessage

func PrintMessage(msg *SimpleMessage)

func SendMessage

func SendMessage(ms *util.MessageStream, msg *SimpleMessage) error

func SendRequest

func SendRequest(ms *util.MessageStream, msg *SimpleMessage) error

func SendResponse

func SendResponse(ms *util.MessageStream, msg *SimpleMessage) error

Types

type EcPrivateKeyMessage

type EcPrivateKeyMessage struct {
	DerBlob          []byte `protobuf:"bytes,1,opt,name=der_blob,json=derBlob" json:"der_blob,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

The cheap way

func (*EcPrivateKeyMessage) Descriptor

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

func (*EcPrivateKeyMessage) GetDerBlob

func (m *EcPrivateKeyMessage) GetDerBlob() []byte

func (*EcPrivateKeyMessage) ProtoMessage

func (*EcPrivateKeyMessage) ProtoMessage()

func (*EcPrivateKeyMessage) Reset

func (m *EcPrivateKeyMessage) Reset()

func (*EcPrivateKeyMessage) String

func (m *EcPrivateKeyMessage) String() string

type MessageType

type MessageType int32
const (
	MessageType_REQUEST  MessageType = 1
	MessageType_RESPONSE MessageType = 2
)

func (MessageType) Enum

func (x MessageType) Enum() *MessageType

func (MessageType) EnumDescriptor

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

func (MessageType) String

func (x MessageType) String() string

func (*MessageType) UnmarshalJSON

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

type PrivateKeyMessage

type PrivateKeyMessage struct {
	KeyType          *string               `protobuf:"bytes,1,req,name=key_type,json=keyType" json:"key_type,omitempty"`
	RsaKey           *RsaPrivateKeyMessage `protobuf:"bytes,2,opt,name=rsa_key,json=rsaKey" json:"rsa_key,omitempty"`
	EcKey            *EcPrivateKeyMessage  `protobuf:"bytes,3,opt,name=ec_key,json=ecKey" json:"ec_key,omitempty"`
	XXX_unrecognized []byte                `json:"-"`
}

func (*PrivateKeyMessage) Descriptor

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

func (*PrivateKeyMessage) GetEcKey

func (m *PrivateKeyMessage) GetEcKey() *EcPrivateKeyMessage

func (*PrivateKeyMessage) GetKeyType

func (m *PrivateKeyMessage) GetKeyType() string

func (*PrivateKeyMessage) GetRsaKey

func (m *PrivateKeyMessage) GetRsaKey() *RsaPrivateKeyMessage

func (*PrivateKeyMessage) ProtoMessage

func (*PrivateKeyMessage) ProtoMessage()

func (*PrivateKeyMessage) Reset

func (m *PrivateKeyMessage) Reset()

func (*PrivateKeyMessage) String

func (m *PrivateKeyMessage) String() string

type RsaPrivateKeyMessage

type RsaPrivateKeyMessage struct {
	M                []byte `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"`
	E                []byte `protobuf:"bytes,2,opt,name=e" json:"e,omitempty"`
	D                []byte `protobuf:"bytes,3,opt,name=d" json:"d,omitempty"`
	P                []byte `protobuf:"bytes,4,opt,name=p" json:"p,omitempty"`
	Q                []byte `protobuf:"bytes,5,opt,name=q" json:"q,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*RsaPrivateKeyMessage) Descriptor

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

func (*RsaPrivateKeyMessage) GetD

func (m *RsaPrivateKeyMessage) GetD() []byte

func (*RsaPrivateKeyMessage) GetE

func (m *RsaPrivateKeyMessage) GetE() []byte

func (*RsaPrivateKeyMessage) GetM

func (m *RsaPrivateKeyMessage) GetM() []byte

func (*RsaPrivateKeyMessage) GetP

func (m *RsaPrivateKeyMessage) GetP() []byte

func (*RsaPrivateKeyMessage) GetQ

func (m *RsaPrivateKeyMessage) GetQ() []byte

func (*RsaPrivateKeyMessage) ProtoMessage

func (*RsaPrivateKeyMessage) ProtoMessage()

func (*RsaPrivateKeyMessage) Reset

func (m *RsaPrivateKeyMessage) Reset()

func (*RsaPrivateKeyMessage) String

func (m *RsaPrivateKeyMessage) String() string

type SimpleMessage

type SimpleMessage struct {
	MessageType      *int32   `protobuf:"varint,1,req,name=message_type,json=messageType" json:"message_type,omitempty"`
	RequestType      *string  `protobuf:"bytes,2,req,name=request_type,json=requestType" json:"request_type,omitempty"`
	Err              *string  `protobuf:"bytes,3,opt,name=err" json:"err,omitempty"`
	Data             [][]byte `protobuf:"bytes,4,rep,name=data" json:"data,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func GetMessage

func GetMessage(ms *util.MessageStream) (*SimpleMessage,
	error)

func GetRequest

func GetRequest(ms *util.MessageStream) (*SimpleMessage, error)

func GetResponse

func GetResponse(ms *util.MessageStream) (*SimpleMessage, error)

func (*SimpleMessage) Descriptor

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

func (*SimpleMessage) GetData

func (m *SimpleMessage) GetData() [][]byte

func (*SimpleMessage) GetErr

func (m *SimpleMessage) GetErr() string

func (*SimpleMessage) GetMessageType

func (m *SimpleMessage) GetMessageType() int32

func (*SimpleMessage) GetRequestType

func (m *SimpleMessage) GetRequestType() string

func (*SimpleMessage) ProtoMessage

func (*SimpleMessage) ProtoMessage()

func (*SimpleMessage) Reset

func (m *SimpleMessage) Reset()

func (*SimpleMessage) String

func (m *SimpleMessage) String() string

Jump to

Keyboard shortcuts

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