diff --git a/protos/hub/hub.pb.go b/protos/hub/hub.pb.go index f6639a6..f0c307f 100644 --- a/protos/hub/hub.pb.go +++ b/protos/hub/hub.pb.go @@ -127,7 +127,7 @@ func (*SettingsReq) XXX_MessageName() string { type SettingsResp struct { Code ResponseCode `protobuf:"varint,1,opt,name=code,proto3,enum=hub.ResponseCode" json:"code,omitempty" pg:"code"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty" pg:"message"` - ResponseTime *time.Time `protobuf:"bytes,3,opt,name=response_time,json=responseTime,proto3,stdtime" json:"response_time,omitempty" pg:"response_time"` + ResponseTime time.Time `protobuf:"bytes,3,opt,name=response_time,json=responseTime,proto3,stdtime" json:"response_time" pg:"response_time"` SettingsData *SettingsData `protobuf:"bytes,4,opt,name=settings_data,json=settingsData,proto3" json:"settings_data,omitempty" pg:"settings_data"` XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"` XXX_unrecognized []byte `json:"-" pg:"-"` @@ -181,11 +181,11 @@ func (m *SettingsResp) GetMessage() string { return "" } -func (m *SettingsResp) GetResponseTime() *time.Time { +func (m *SettingsResp) GetResponseTime() time.Time { if m != nil { return m.ResponseTime } - return nil + return time.Time{} } func (m *SettingsResp) GetSettingsData() *SettingsData { @@ -347,7 +347,7 @@ type HostsResp struct { Hosts *HostsData `protobuf:"bytes,3,opt,name=hosts,proto3" json:"hosts,omitempty" pg:"hosts"` RespSize int32 `protobuf:"varint,4,opt,name=resp_size,json=respSize,proto3" json:"resp_size,omitempty" pg:"resp_size"` Mode string `protobuf:"bytes,5,opt,name=mode,proto3" json:"mode,omitempty" pg:"mode"` - ResponseTime *time.Time `protobuf:"bytes,6,opt,name=response_time,json=responseTime,proto3,stdtime" json:"response_time,omitempty" pg:"response_time"` + ResponseTime time.Time `protobuf:"bytes,6,opt,name=response_time,json=responseTime,proto3,stdtime" json:"response_time" pg:"response_time"` XXX_NoUnkeyedLiteral struct{} `json:"-" pg:"-"` XXX_unrecognized []byte `json:"-" pg:"-"` XXX_sizecache int32 `json:"-" pg:"-"` @@ -421,11 +421,11 @@ func (m *HostsResp) GetMode() string { return "" } -func (m *HostsResp) GetResponseTime() *time.Time { +func (m *HostsResp) GetResponseTime() time.Time { if m != nil { return m.ResponseTime } - return nil + return time.Time{} } func (*HostsResp) XXX_MessageName() string { @@ -485,8 +485,8 @@ func (*HostsData) XXX_MessageName() string { type Host struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty" pg:"node_id"` - TimeCreate *time.Time `protobuf:"bytes,2,opt,name=time_create,json=timeCreate,proto3,stdtime" json:"time_create,omitempty" pg:"time_create"` - TimeUpdate *time.Time `protobuf:"bytes,3,opt,name=time_update,json=timeUpdate,proto3,stdtime" json:"time_update,omitempty" pg:"time_update"` + TimeCreate time.Time `protobuf:"bytes,2,opt,name=time_create,json=timeCreate,proto3,stdtime" json:"time_create" pg:"time_create"` + TimeUpdate time.Time `protobuf:"bytes,3,opt,name=time_update,json=timeUpdate,proto3,stdtime" json:"time_update" pg:"time_update"` NodeIp string `protobuf:"bytes,4,opt,name=node_ip,json=nodeIp,proto3" json:"node_ip,omitempty" pg:"node_ip"` Region string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty" pg:"region"` BtfsVersion string `protobuf:"bytes,6,opt,name=btfs_version,json=btfsVersion,proto3" json:"btfs_version,omitempty" pg:"btfs_version"` @@ -548,18 +548,18 @@ func (m *Host) GetNodeId() string { return "" } -func (m *Host) GetTimeCreate() *time.Time { +func (m *Host) GetTimeCreate() time.Time { if m != nil { return m.TimeCreate } - return nil + return time.Time{} } -func (m *Host) GetTimeUpdate() *time.Time { +func (m *Host) GetTimeUpdate() time.Time { if m != nil { return m.TimeUpdate } - return nil + return time.Time{} } func (m *Host) GetNodeIp() string { @@ -984,77 +984,77 @@ func init() { proto.RegisterFile("protos/hub/hub.proto", fileDescriptor_c704b599 func init() { golang_proto.RegisterFile("protos/hub/hub.proto", fileDescriptor_c704b5990190a69f) } var fileDescriptor_c704b5990190a69f = []byte{ - // 1111 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4f, 0x6f, 0x23, 0xc5, - 0x13, 0xfd, 0xb5, 0xff, 0x24, 0x76, 0x8d, 0xed, 0x38, 0xbd, 0xfb, 0x5b, 0x4c, 0x10, 0x8e, 0xb1, - 0x40, 0x78, 0x57, 0xe0, 0x48, 0x5e, 0x69, 0x11, 0x08, 0x21, 0xd9, 0x8e, 0x49, 0x22, 0x25, 0x24, - 0x6a, 0x27, 0x7b, 0xe0, 0x32, 0x6a, 0x7b, 0xda, 0xce, 0x28, 0xf6, 0xf4, 0xec, 0x74, 0x3b, 0x2b, - 0xed, 0x77, 0x40, 0xe2, 0xb8, 0x1f, 0x87, 0xe3, 0x9e, 0x10, 0x12, 0x07, 0x8e, 0xa0, 0xe4, 0x82, - 0xf8, 0x14, 0xa8, 0x6b, 0xfe, 0x3a, 0x9b, 0x03, 0x8b, 0x38, 0x44, 0xea, 0x7a, 0x55, 0xaf, 0xf2, - 0xaa, 0xbb, 0xe7, 0xb5, 0xe1, 0xa1, 0x1f, 0x48, 0x2d, 0xd5, 0xde, 0xe5, 0x6a, 0x62, 0xfe, 0xba, - 0x18, 0xd2, 0xfc, 0xe5, 0x6a, 0xb2, 0xf3, 0xf9, 0xdc, 0xd5, 0x06, 0x9a, 0xca, 0xe5, 0xde, 0x5c, - 0xce, 0xe5, 0x1e, 0xe6, 0x26, 0xab, 0x19, 0x46, 0x18, 0xe0, 0x2a, 0xe4, 0xec, 0xec, 0xce, 0xa5, - 0x9c, 0x2f, 0x44, 0x5a, 0xa5, 0xdd, 0xa5, 0x50, 0x9a, 0x2f, 0xfd, 0xb0, 0xa0, 0xfd, 0x15, 0x58, - 0x63, 0xa1, 0xb5, 0xeb, 0xcd, 0x15, 0x13, 0x2f, 0x68, 0x0d, 0x72, 0xae, 0xd3,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0xab, 0xc9, 0x99, 0xf1, 0xe2, 0x33, 0xf2, - 0xbd, 0xf9, 0xdd, 0x36, 0xd9, 0x40, 0x67, 0x7e, 0xfa, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x02, - 0x85, 0xc9, 0xf4, 0xdb, 0x09, 0x00, 0x00, + // 1114 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0xcf, 0x6e, 0x23, 0xc5, + 0x13, 0xde, 0xb6, 0xe3, 0xc4, 0xae, 0xb1, 0x1d, 0xa7, 0x77, 0x7f, 0xfb, 0x33, 0x41, 0x38, 0xc6, + 0x02, 0xe1, 0x5d, 0x81, 0x23, 0x79, 0xa5, 0x45, 0x20, 0x84, 0x64, 0x3b, 0x26, 0x89, 0x94, 0x90, + 0xa8, 0x9d, 0xec, 0x81, 0xcb, 0xa8, 0xed, 0x69, 0x3b, 0xa3, 0xd8, 0xd3, 0xb3, 0xd3, 0xed, 0xac, + 0xb4, 0xef, 0x80, 0xc4, 0x71, 0x1f, 0x87, 0x63, 0x8e, 0x08, 0xee, 0x2c, 0x4a, 0x2e, 0x9c, 0x78, + 0x06, 0xd4, 0x35, 0x7f, 0x9d, 0xcd, 0x81, 0x45, 0x1c, 0x22, 0x75, 0x7d, 0x55, 0x5f, 0xe5, 0xab, + 0xae, 0x9e, 0x2a, 0xc3, 0x23, 0x3f, 0x90, 0x5a, 0xaa, 0xdd, 0x8b, 0xe5, 0xd8, 0xfc, 0x75, 0xd0, + 0xa4, 0xf9, 0x8b, 0xe5, 0x78, 0xfb, 0x8b, 0x99, 0xab, 0x0d, 0x34, 0x91, 0x8b, 0xdd, 0x99, 0x9c, + 0xc9, 0x5d, 0xf4, 0x8d, 0x97, 0x53, 0xb4, 0xd0, 0xc0, 0x53, 0xc8, 0xd9, 0xde, 0x99, 0x49, 0x39, + 0x9b, 0x8b, 0x34, 0x4a, 0xbb, 0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, 0x1a, 0xe4, 0x8f, 0x9b, 0x06, 0x79, 0x73, 0xdb, 0x20, 0x3f, 0xdf, 0x36, 0xc8, 0xf5, + 0x6d, 0x83, 0x80, 0xe5, 0xca, 0x8e, 0x99, 0x88, 0x86, 0xd0, 0x2f, 0x1e, 0x2c, 0xc7, 0xa7, 0x66, + 0x1e, 0x9f, 0x92, 0x1f, 0xcc, 0xef, 0xb8, 0xf1, 0x3a, 0x4e, 0xe7, 0x67, 0x7f, 0x07, 0x00, 0x00, + 0xff, 0xff, 0x6c, 0x10, 0x7f, 0x88, 0xeb, 0x09, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1284,16 +1284,14 @@ func (m *SettingsResp) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x22 } - if m.ResponseTime != nil { - n2, err2 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(*m.ResponseTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(*m.ResponseTime):]) - if err2 != nil { - return 0, err2 - } - i -= n2 - i = encodeVarintHub(dAtA, i, uint64(n2)) - i-- - dAtA[i] = 0x1a + n2, err2 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.ResponseTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.ResponseTime):]) + if err2 != nil { + return 0, err2 } + i -= n2 + i = encodeVarintHub(dAtA, i, uint64(n2)) + i-- + dAtA[i] = 0x1a if len(m.Message) > 0 { i -= len(m.Message) copy(dAtA[i:], m.Message) @@ -1429,16 +1427,14 @@ func (m *HostsResp) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= len(m.XXX_unrecognized) copy(dAtA[i:], m.XXX_unrecognized) } - if m.ResponseTime != nil { - n3, err3 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(*m.ResponseTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(*m.ResponseTime):]) - if err3 != nil { - return 0, err3 - } - i -= n3 - i = encodeVarintHub(dAtA, i, uint64(n3)) - i-- - dAtA[i] = 0x32 + n3, err3 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.ResponseTime, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.ResponseTime):]) + if err3 != nil { + return 0, err3 } + i -= n3 + i = encodeVarintHub(dAtA, i, uint64(n3)) + i-- + dAtA[i] = 0x32 if len(m.Mode) > 0 { i -= len(m.Mode) copy(dAtA[i:], m.Mode) @@ -1672,26 +1668,22 @@ func (m *Host) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x22 } - if m.TimeUpdate != nil { - n9, err9 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(*m.TimeUpdate, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(*m.TimeUpdate):]) - if err9 != nil { - return 0, err9 - } - i -= n9 - i = encodeVarintHub(dAtA, i, uint64(n9)) - i-- - dAtA[i] = 0x1a - } - if m.TimeCreate != nil { - n10, err10 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(*m.TimeCreate, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(*m.TimeCreate):]) - if err10 != nil { - return 0, err10 - } - i -= n10 - i = encodeVarintHub(dAtA, i, uint64(n10)) - i-- - dAtA[i] = 0x12 - } + n9, err9 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.TimeUpdate, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.TimeUpdate):]) + if err9 != nil { + return 0, err9 + } + i -= n9 + i = encodeVarintHub(dAtA, i, uint64(n9)) + i-- + dAtA[i] = 0x1a + n10, err10 := github_com_tron_us_protobuf_types.StdTimeMarshalTo(m.TimeCreate, dAtA[i-github_com_tron_us_protobuf_types.SizeOfStdTime(m.TimeCreate):]) + if err10 != nil { + return 0, err10 + } + i -= n10 + i = encodeVarintHub(dAtA, i, uint64(n10)) + i-- + dAtA[i] = 0x12 if len(m.NodeId) > 0 { i -= len(m.NodeId) copy(dAtA[i:], m.NodeId) @@ -1930,10 +1922,8 @@ func (m *SettingsResp) Size() (n int) { if l > 0 { n += 1 + l + sovHub(uint64(l)) } - if m.ResponseTime != nil { - l = github_com_tron_us_protobuf_types.SizeOfStdTime(*m.ResponseTime) - n += 1 + l + sovHub(uint64(l)) - } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.ResponseTime) + n += 1 + l + sovHub(uint64(l)) if m.SettingsData != nil { l = m.SettingsData.Size() n += 1 + l + sovHub(uint64(l)) @@ -2014,10 +2004,8 @@ func (m *HostsResp) Size() (n int) { if l > 0 { n += 1 + l + sovHub(uint64(l)) } - if m.ResponseTime != nil { - l = github_com_tron_us_protobuf_types.SizeOfStdTime(*m.ResponseTime) - n += 1 + l + sovHub(uint64(l)) - } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.ResponseTime) + n += 1 + l + sovHub(uint64(l)) if m.XXX_unrecognized != nil { n += len(m.XXX_unrecognized) } @@ -2052,14 +2040,10 @@ func (m *Host) Size() (n int) { if l > 0 { n += 1 + l + sovHub(uint64(l)) } - if m.TimeCreate != nil { - l = github_com_tron_us_protobuf_types.SizeOfStdTime(*m.TimeCreate) - n += 1 + l + sovHub(uint64(l)) - } - if m.TimeUpdate != nil { - l = github_com_tron_us_protobuf_types.SizeOfStdTime(*m.TimeUpdate) - n += 1 + l + sovHub(uint64(l)) - } + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.TimeCreate) + n += 1 + l + sovHub(uint64(l)) + l = github_com_tron_us_protobuf_types.SizeOfStdTime(m.TimeUpdate) + n += 1 + l + sovHub(uint64(l)) l = len(m.NodeIp) if l > 0 { n += 1 + l + sovHub(uint64(l)) @@ -2428,10 +2412,7 @@ func (m *SettingsResp) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ResponseTime == nil { - m.ResponseTime = new(time.Time) - } - if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(m.ResponseTime, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.ResponseTime, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -2906,10 +2887,7 @@ func (m *HostsResp) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ResponseTime == nil { - m.ResponseTime = new(time.Time) - } - if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(m.ResponseTime, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.ResponseTime, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3116,10 +3094,7 @@ func (m *Host) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TimeCreate == nil { - m.TimeCreate = new(time.Time) - } - if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(m.TimeCreate, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.TimeCreate, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -3152,10 +3127,7 @@ func (m *Host) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.TimeUpdate == nil { - m.TimeUpdate = new(time.Time) - } - if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(m.TimeUpdate, dAtA[iNdEx:postIndex]); err != nil { + if err := github_com_tron_us_protobuf_types.StdTimeUnmarshal(&m.TimeUpdate, dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/protos/hub/hub.proto b/protos/hub/hub.proto index 2ea5425..093125e 100644 --- a/protos/hub/hub.proto +++ b/protos/hub/hub.proto @@ -42,7 +42,10 @@ enum ResponseCode { message SettingsResp { ResponseCode code = 1; string message = 2; - google.protobuf.Timestamp response_time = 3 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp response_time = 3 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; SettingsData settings_data = 4; } @@ -65,7 +68,10 @@ message HostsResp { HostsData hosts = 3; int32 resp_size = 4; string mode = 5; - google.protobuf.Timestamp response_time = 6 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp response_time = 6 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; } message HostsData { @@ -74,8 +80,14 @@ message HostsData { message Host { string node_id = 1; - google.protobuf.Timestamp time_create = 2 [(gogoproto.stdtime) = true]; - google.protobuf.Timestamp time_update = 3 [(gogoproto.stdtime) = true]; + google.protobuf.Timestamp time_create = 2 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; + google.protobuf.Timestamp time_update = 3 [ + (gogoproto.nullable) = false, + (gogoproto.stdtime) = true + ]; string node_ip = 4; string region = 5; string btfs_version = 6;