Documentation
¶
Index ¶
- func FromDuration(dur *Duration) time.Duration
- func FromTimestamp(ts *Timestamp) time.Time
- type Duration
- func (v *Duration) HasNanoseconds() bool
- func (v *Duration) MarshalCBOR() ([]byte, error)
- func (v *Duration) MarshalJSON() ([]byte, error)
- func (v *Duration) Nanoseconds() uint64
- func (v *Duration) SetNanoseconds(nanoseconds uint64)
- func (v *Duration) UnmarshalCBOR(data []byte) error
- func (v *Duration) UnmarshalJSON(data []byte) error
- type Timestamp
- func (v *Timestamp) HasNanoseconds() bool
- func (v *Timestamp) HasSeconds() bool
- func (v *Timestamp) MarshalCBOR() ([]byte, error)
- func (v *Timestamp) MarshalJSON() ([]byte, error)
- func (v *Timestamp) Nanoseconds() int32
- func (v *Timestamp) Seconds() int64
- func (v *Timestamp) SetNanoseconds(nanoseconds int32)
- func (v *Timestamp) SetSeconds(seconds int64)
- func (v *Timestamp) UnmarshalCBOR(data []byte) error
- func (v *Timestamp) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromDuration ¶
func FromTimestamp ¶
Types ¶
type Duration ¶
type Duration struct {
// contains filtered or unexported fields
}
func ToDuration ¶
func (*Duration) HasNanoseconds ¶
func (*Duration) MarshalCBOR ¶
func (*Duration) MarshalJSON ¶
func (*Duration) Nanoseconds ¶
func (*Duration) SetNanoseconds ¶
func (*Duration) UnmarshalCBOR ¶
func (*Duration) UnmarshalJSON ¶
type Timestamp ¶
type Timestamp struct {
// contains filtered or unexported fields
}
func ToTimestamp ¶
func (*Timestamp) HasNanoseconds ¶
func (*Timestamp) HasSeconds ¶
func (*Timestamp) MarshalCBOR ¶
func (*Timestamp) MarshalJSON ¶
func (*Timestamp) Nanoseconds ¶
func (*Timestamp) SetNanoseconds ¶
func (*Timestamp) SetSeconds ¶
func (*Timestamp) UnmarshalCBOR ¶
func (*Timestamp) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.