mirror of https://github.com/vacp2p/dasy.git
updated
This commit is contained in:
parent
126af652fa
commit
4bd632ad43
|
@ -26,7 +26,7 @@ type Chat state.GroupID
|
|||
// Peer is the ID for a specific peer.
|
||||
type Peer state.PeerID
|
||||
|
||||
// Client is the actual daisy client.
|
||||
// Client is the actual dasy client.
|
||||
type Client struct {
|
||||
sync.Mutex
|
||||
|
||||
|
|
|
@ -62,6 +62,7 @@ type Message struct {
|
|||
Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
|
||||
PreviousMessage []byte `protobuf:"bytes,3,opt,name=previous_message,json=previousMessage,proto3" json:"previous_message,omitempty"`
|
||||
Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
|
||||
Sequence int64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
|
@ -120,6 +121,13 @@ func (m *Message) GetSignature() []byte {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (m *Message) GetSequence() int64 {
|
||||
if m != nil {
|
||||
return m.Sequence
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterEnum("mvds.Message_MessageType", Message_MessageType_name, Message_MessageType_value)
|
||||
proto.RegisterType((*Message)(nil), "mvds.Message")
|
||||
|
@ -128,20 +136,21 @@ func init() {
|
|||
func init() { proto.RegisterFile("protobuf/message.proto", fileDescriptor_8368f5d77b0b9b7b) }
|
||||
|
||||
var fileDescriptor_8368f5d77b0b9b7b = []byte{
|
||||
// 228 bytes of a gzipped FileDescriptorProto
|
||||
// 249 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x2b, 0x28, 0xca, 0x2f,
|
||||
0xc9, 0x4f, 0x2a, 0x4d, 0xd3, 0xcf, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0xd5, 0x03, 0x0b, 0x08,
|
||||
0xb1, 0xe4, 0x96, 0xa5, 0x14, 0x2b, 0x7d, 0x64, 0xe4, 0x62, 0xf7, 0x85, 0x88, 0x0b, 0xd9, 0x70,
|
||||
0xf1, 0x40, 0x95, 0xc4, 0x97, 0x54, 0x16, 0xa4, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0xf0, 0x19, 0x49,
|
||||
0xea, 0x81, 0x14, 0xea, 0x41, 0x15, 0xc1, 0xe8, 0x90, 0xca, 0x82, 0xd4, 0x20, 0xee, 0x5c, 0x04,
|
||||
0x47, 0x48, 0x88, 0x8b, 0x25, 0x29, 0x3f, 0xa5, 0x52, 0x82, 0x49, 0x81, 0x51, 0x83, 0x27, 0x08,
|
||||
0xcc, 0x16, 0xd2, 0xe4, 0x12, 0x28, 0x28, 0x4a, 0x2d, 0xcb, 0xcc, 0x2f, 0x2d, 0x8e, 0x87, 0xaa,
|
||||
0x95, 0x60, 0x06, 0xcb, 0xf3, 0xc3, 0xc4, 0x61, 0x96, 0xcb, 0x70, 0x71, 0x16, 0x67, 0xa6, 0xe7,
|
||||
0x25, 0x96, 0x94, 0x16, 0xa5, 0x4a, 0xb0, 0x80, 0xd5, 0x20, 0x04, 0x94, 0xbc, 0xb9, 0xb8, 0x91,
|
||||
0x2c, 0x16, 0xe2, 0xe2, 0x62, 0xf3, 0xf4, 0x0b, 0xf3, 0x0c, 0x71, 0x15, 0x60, 0x10, 0xe2, 0xe0,
|
||||
0x62, 0xf1, 0xf2, 0xf7, 0xf4, 0x13, 0x60, 0x14, 0xe2, 0xe4, 0x62, 0xf5, 0x71, 0x75, 0x0c, 0x73,
|
||||
0x15, 0x60, 0x02, 0x09, 0x7a, 0x7b, 0x3a, 0x7b, 0x0b, 0x30, 0x0b, 0xb1, 0x73, 0x31, 0x3b, 0x3a,
|
||||
0x7b, 0x0b, 0xb0, 0x80, 0x84, 0x02, 0xfc, 0x83, 0x43, 0x04, 0x58, 0x9d, 0xb8, 0xa2, 0x38, 0x60,
|
||||
0x61, 0x92, 0xc4, 0x06, 0x66, 0x19, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x41, 0x70, 0xaf, 0x4e,
|
||||
0x26, 0x01, 0x00, 0x00,
|
||||
0xb1, 0xe4, 0x96, 0xa5, 0x14, 0x2b, 0xf5, 0x32, 0x71, 0xb1, 0xfb, 0x42, 0xc4, 0x85, 0x6c, 0xb8,
|
||||
0x78, 0xa0, 0x4a, 0xe2, 0x4b, 0x2a, 0x0b, 0x52, 0x25, 0x18, 0x15, 0x18, 0x35, 0xf8, 0x8c, 0x24,
|
||||
0xf5, 0x40, 0x0a, 0xf5, 0xa0, 0x8a, 0x60, 0x74, 0x48, 0x65, 0x41, 0x6a, 0x10, 0x77, 0x2e, 0x82,
|
||||
0x23, 0x24, 0xc4, 0xc5, 0x92, 0x94, 0x9f, 0x52, 0x29, 0xc1, 0xa4, 0xc0, 0xa8, 0xc1, 0x13, 0x04,
|
||||
0x66, 0x0b, 0x69, 0x72, 0x09, 0x14, 0x14, 0xa5, 0x96, 0x65, 0xe6, 0x97, 0x16, 0xc7, 0x43, 0xd5,
|
||||
0x4a, 0x30, 0x83, 0xe5, 0xf9, 0x61, 0xe2, 0x30, 0xcb, 0x65, 0xb8, 0x38, 0x8b, 0x33, 0xd3, 0xf3,
|
||||
0x12, 0x4b, 0x4a, 0x8b, 0x52, 0x25, 0x58, 0xc0, 0x6a, 0x10, 0x02, 0x42, 0x52, 0x5c, 0x1c, 0xc5,
|
||||
0xa9, 0x85, 0xa5, 0xa9, 0x79, 0xc9, 0xa9, 0x12, 0xac, 0x0a, 0x8c, 0x1a, 0xcc, 0x41, 0x70, 0xbe,
|
||||
0x92, 0x37, 0x17, 0x37, 0x92, 0xa3, 0x84, 0xb8, 0xb8, 0xd8, 0x3c, 0xfd, 0xc2, 0x3c, 0x43, 0x5c,
|
||||
0x05, 0x18, 0x84, 0x38, 0xb8, 0x58, 0xbc, 0xfc, 0x3d, 0xfd, 0x04, 0x18, 0x85, 0x38, 0xb9, 0x58,
|
||||
0x7d, 0x5c, 0x1d, 0xc3, 0x5c, 0x05, 0x98, 0x40, 0x82, 0xde, 0x9e, 0xce, 0xde, 0x02, 0xcc, 0x42,
|
||||
0xec, 0x5c, 0xcc, 0x8e, 0xce, 0xde, 0x02, 0x2c, 0x20, 0xa1, 0x00, 0xff, 0xe0, 0x10, 0x01, 0x56,
|
||||
0x27, 0xae, 0x28, 0x0e, 0x58, 0x78, 0x25, 0xb1, 0x81, 0x59, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff,
|
||||
0xff, 0xcd, 0xd9, 0x41, 0xa7, 0x42, 0x01, 0x00, 0x00,
|
||||
}
|
||||
|
|
|
@ -18,4 +18,5 @@ message Message {
|
|||
bytes body = 2;
|
||||
bytes previous_message = 3;
|
||||
bytes signature = 4;
|
||||
int64 sequence = 5;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue