Documentation ¶
Index ¶
- Constants
- type Timestamp
- func (t *Timestamp) Decode(pbuf *pb.Timestamp) error
- func (t *Timestamp) Encode() (*pb.Timestamp, error)
- func (t *Timestamp) Marshal() ([]byte, error)
- func (t *Timestamp) MarshalJSON() ([]byte, error)
- func (t *Timestamp) Parse(value string) error
- func (t *Timestamp) Pretty() string
- func (t *Timestamp) String() string
- func (t *Timestamp) UnixNanoStr() string
- func (t *Timestamp) Unmarshal(b []byte) error
- func (t *Timestamp) UnmarshalJSON(b []byte) error
Constants ¶
View Source
const (
LayoutTimestamp = "2006-01-02T15:04:05.999999999Z-0700MST"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timestamp ¶
Timestamp wraps time.
func DecodeTimestamp ¶
DecodeTimestamp decodes a protobuf encoded message.
func (*Timestamp) Marshal ¶
Marshal implements marshaler interface for types that can marshal themselves into bytes.
func (*Timestamp) MarshalJSON ¶
MarshalJSON implements marshaler interface for types that can marshal themselves into valid JSON.
func (*Timestamp) UnixNanoStr ¶
UnixNanoStr returns string representation as string of UnixNano.
func (*Timestamp) Unmarshal ¶
Unmarshal implements unmarshaler interface for types that can unmarshal bytes of themselves.
func (*Timestamp) UnmarshalJSON ¶
UnmarshalJSON implements unmarshaler interface for types that can unmarshal a JSON description of themselves.
Click to show internal directories.
Click to hide internal directories.