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 ¶
- type Link
- func (*Link) Descriptor() ([]byte, []int)
- func (m *Link) GetBody() isLink_Body
- func (m *Link) GetNewDevice() *NewDevice
- func (m *Link) GetPrev() []byte
- func (m *Link) GetSequenceNumber() uint32
- func (*Link) ProtoMessage()
- func (m *Link) Reset()
- func (m *Link) String() string
- func (*Link) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Link_NewDevice
- type NewDevice
- type ServerInfo
- type Signed
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Link ¶
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) GetNewDevice ¶
func (*Link) GetSequenceNumber ¶
func (*Link) ProtoMessage ¶
func (*Link) ProtoMessage()
type Link_NewDevice ¶
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) GetFCMToken ¶
func (*NewDevice) GetPublicKey ¶
func (*NewDevice) ProtoMessage ¶
func (*NewDevice) ProtoMessage()
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) GetPublicKey ¶
func (*Signed) GetSignature ¶
func (*Signed) ProtoMessage ¶
func (*Signed) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.