Documentation ¶
Index ¶
- Variables
- type Timestamp
- func (ts *Timestamp) AppendFormat(b []byte, layout string) []byte
- func (ts *Timestamp) AsTime() time.Time
- func (ts *Timestamp) AsTimestamp() *timestamppb.Timestamp
- func (ts *Timestamp) Format(layout string) string
- func (ts *Timestamp) IsZero() (zero bool)
- func (ts *Timestamp) MarshalJSON() ([]byte, error)
- func (ts *Timestamp) MarshalText() ([]byte, error)
- 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 (ts *Timestamp) MarshalXML(enc *xml.Encoder, start xml.StartElement) error
- func (ts *Timestamp) Proto()
- func (ts *Timestamp) ProtoReflect() protoreflect.Message
- func (ts *Timestamp) Reset()
- func (ts *Timestamp) Scan(src interface{}) error
- func (m *Timestamp) SizeVT() (n int)
- func (ts *Timestamp) String() string
- func (ts *Timestamp) UnmarshalJSON(data []byte) error
- func (ts *Timestamp) UnmarshalText(data []byte) error
- func (m *Timestamp) UnmarshalVT(dAtA []byte) error
- func (ts *Timestamp) UnmarshalXML(dec *xml.Decoder, st xml.StartElement) error
- func (ts *Timestamp) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Timestamp ¶
type Timestamp struct {
timestamppb.Timestamp
}
Timestamp is a wrapped timestamppb.Timestamp with proper JSON and XML marshaling (as string date).
func (*Timestamp) AsTimestamp ¶
func (ts *Timestamp) AsTimestamp() *timestamppb.Timestamp
func (*Timestamp) MarshalJSON ¶
func (*Timestamp) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface. The time is formatted in RFC 3339 format, with sub-second precision added if present.
func (*Timestamp) MarshalToSizedBufferVT ¶
func (*Timestamp) MarshalXML ¶
func (*Timestamp) ProtoReflect ¶
func (ts *Timestamp) ProtoReflect() protoreflect.Message
func (*Timestamp) UnmarshalJSON ¶
func (*Timestamp) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface. The time is expected to be in RFC 3339 format.
func (*Timestamp) UnmarshalVT ¶
func (*Timestamp) UnmarshalXML ¶
Click to show internal directories.
Click to hide internal directories.