messages

package
v0.0.0-...-9ab988e Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package messages is a generated protocol buffer package.

It is generated from these files:

sigchain.proto

It has these top-level messages:

ServerInfo
Signed
NewDevice
Link

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	Prev           []byte `protobuf:"bytes,1,opt,name=prev,proto3" json:"prev,omitempty"`
	SequenceNumber uint32 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber" json:"sequence_number,omitempty"`
	// Types that are valid to be assigned to Body:
	//	*Link_NewDevice
	Body isLink_Body `protobuf_oneof:"body"`
}

func (*Link) Descriptor

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

func (*Link) GetBody

func (m *Link) GetBody() isLink_Body

func (*Link) GetNewDevice

func (m *Link) GetNewDevice() *NewDevice

func (*Link) GetPrev

func (m *Link) GetPrev() []byte

func (*Link) GetSequenceNumber

func (m *Link) GetSequenceNumber() uint32

func (*Link) ProtoMessage

func (*Link) ProtoMessage()

func (*Link) Reset

func (m *Link) Reset()

func (*Link) String

func (m *Link) String() string

func (*Link) XXX_OneofFuncs

func (*Link) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Link_NewDevice struct {
	NewDevice *NewDevice `protobuf:"bytes,3,opt,name=new_device,json=newDevice,oneof"`
}

type NewDevice

type NewDevice struct {
	Name      string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	PublicKey []byte `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	FCMToken  string `protobuf:"bytes,3,opt,name=FCM_token,json=FCMToken" json:"FCM_token,omitempty"`
}

func (*NewDevice) Descriptor

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

func (*NewDevice) GetFCMToken

func (m *NewDevice) GetFCMToken() string

func (*NewDevice) GetName

func (m *NewDevice) GetName() string

func (*NewDevice) GetPublicKey

func (m *NewDevice) GetPublicKey() []byte

func (*NewDevice) ProtoMessage

func (*NewDevice) ProtoMessage()

func (*NewDevice) Reset

func (m *NewDevice) Reset()

func (*NewDevice) String

func (m *NewDevice) String() string

type ServerInfo

type ServerInfo struct {
	Version  string `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
	SenderId string `protobuf:"bytes,2,opt,name=sender_id,json=senderId" json:"sender_id,omitempty"`
}

func (*ServerInfo) Descriptor

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

func (*ServerInfo) GetSenderId

func (m *ServerInfo) GetSenderId() string

func (*ServerInfo) GetVersion

func (m *ServerInfo) GetVersion() string

func (*ServerInfo) ProtoMessage

func (*ServerInfo) ProtoMessage()

func (*ServerInfo) Reset

func (m *ServerInfo) Reset()

func (*ServerInfo) String

func (m *ServerInfo) String() string

type Signed

type Signed struct {
	Body      []byte `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	PublicKey []byte `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
}

func (*Signed) Descriptor

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

func (*Signed) GetBody

func (m *Signed) GetBody() []byte

func (*Signed) GetPublicKey

func (m *Signed) GetPublicKey() []byte

func (*Signed) GetSignature

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

func (*Signed) ProtoMessage

func (*Signed) ProtoMessage()

func (*Signed) Reset

func (m *Signed) Reset()

func (*Signed) String

func (m *Signed) String() string

func (*Signed) Verify

func (s *Signed) Verify() bool

Verify the signature of the message is valid for the given public key

Jump to

Keyboard shortcuts

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