Documentation ¶
Index ¶
- Variables
- func ToTime(t uint64) time.Time
- type Timestamp
- func (t *Timestamp) Clone() *Timestamp
- func (*Timestamp) Descriptor() ([]byte, []int)deprecated
- func (this *Timestamp) EqualVT(that *Timestamp) bool
- func (t *Timestamp) Equals(ot *Timestamp) bool
- func (x *Timestamp) GetTimeUnixMs() uint64
- func (m *Timestamp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Timestamp) MarshalToVT(dAtA []byte) (int, error)
- func (m *Timestamp) MarshalVT() (dAtA []byte, err error)
- func (*Timestamp) ProtoMessage()
- func (x *Timestamp) ProtoReflect() protoreflect.Message
- func (x *Timestamp) Reset()
- func (m *Timestamp) SizeVT() (n int)
- func (x *Timestamp) String() string
- func (t *Timestamp) ToTime() time.Time
- func (m *Timestamp) UnmarshalVT(dAtA []byte) error
- func (t *Timestamp) Validate(allowEmpty bool) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( // ErrEmptyTimestamp is returned if the timestamp was empty. ErrEmptyTimestamp = errors.New("timestamp is empty") )
View Source
var File_github_com_aperturerobotics_timestamp_timestamp_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Timestamp ¶
type Timestamp struct { // TimeUnixMs timestamp in unix milliseconds. TimeUnixMs uint64 `protobuf:"varint,1,opt,name=time_unix_ms,json=timeUnixMs,proto3" json:"time_unix_ms,omitempty"` // contains filtered or unexported fields }
Timestamp contains a cross-platform timestamp.
func ToTimestamp ¶
ToTimestamp generates a millisecond timestamp from the time object.
func (*Timestamp) Descriptor
deprecated
func (*Timestamp) GetTimeUnixMs ¶
func (*Timestamp) MarshalToSizedBufferVT ¶ added in v0.5.1
func (*Timestamp) MarshalToVT ¶ added in v0.5.1
func (*Timestamp) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
func (*Timestamp) ProtoReflect ¶ added in v0.5.1
func (x *Timestamp) ProtoReflect() protoreflect.Message
func (*Timestamp) UnmarshalVT ¶ added in v0.5.1
Click to show internal directories.
Click to hide internal directories.