crypto_pb

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package crypto_pb is a generated protocol buffer package.

It is generated from these files:

crypto.proto

It has these top-level messages:

PublicKey
PrivateKey

Index

Constants

This section is empty.

Variables

View Source
var KeyType_name = map[int32]string{
	0: "RSA",
}
View Source
var KeyType_value = map[string]int32{
	"RSA": 0,
}

Functions

This section is empty.

Types

type KeyType

type KeyType int32
const (
	KeyType_RSA KeyType = 0
)

func (KeyType) Enum

func (x KeyType) Enum() *KeyType

func (KeyType) String

func (x KeyType) String() string

func (*KeyType) UnmarshalJSON

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

type PrivateKey

type PrivateKey struct {
	Type             *KeyType `protobuf:"varint,1,req,enum=crypto.pb.KeyType" json:"Type,omitempty"`
	Data             []byte   `protobuf:"bytes,2,req" json:"Data,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*PrivateKey) GetData

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

func (*PrivateKey) GetType

func (m *PrivateKey) GetType() KeyType

func (*PrivateKey) ProtoMessage

func (*PrivateKey) ProtoMessage()

func (*PrivateKey) Reset

func (m *PrivateKey) Reset()

func (*PrivateKey) String

func (m *PrivateKey) String() string

type PublicKey

type PublicKey struct {
	Type             *KeyType `protobuf:"varint,1,req,enum=crypto.pb.KeyType" json:"Type,omitempty"`
	Data             []byte   `protobuf:"bytes,2,req" json:"Data,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*PublicKey) GetData

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

func (*PublicKey) GetType

func (m *PublicKey) GetType() KeyType

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) Reset

func (m *PublicKey) Reset()

func (*PublicKey) String

func (m *PublicKey) String() string

Jump to

Keyboard shortcuts

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