standard

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromDuration

func FromDuration(dur *Duration) time.Duration

func FromTimestamp

func FromTimestamp(ts *Timestamp) time.Time

Types

type Duration

type Duration struct {
	// contains filtered or unexported fields
}

func ToDuration

func ToDuration(d time.Duration) *Duration

func (*Duration) HasNanoseconds

func (v *Duration) HasNanoseconds() bool

func (*Duration) MarshalCBOR

func (v *Duration) MarshalCBOR() ([]byte, error)

func (*Duration) MarshalJSON

func (v *Duration) MarshalJSON() ([]byte, error)

func (*Duration) Nanoseconds

func (v *Duration) Nanoseconds() uint64

func (*Duration) SetNanoseconds

func (v *Duration) SetNanoseconds(nanoseconds uint64)

func (*Duration) UnmarshalCBOR

func (v *Duration) UnmarshalCBOR(data []byte) error

func (*Duration) UnmarshalJSON

func (v *Duration) UnmarshalJSON(data []byte) error

type Timestamp

type Timestamp struct {
	// contains filtered or unexported fields
}

func ToTimestamp

func ToTimestamp(t time.Time) *Timestamp

func (*Timestamp) HasNanoseconds

func (v *Timestamp) HasNanoseconds() bool

func (*Timestamp) HasSeconds

func (v *Timestamp) HasSeconds() bool

func (*Timestamp) MarshalCBOR

func (v *Timestamp) MarshalCBOR() ([]byte, error)

func (*Timestamp) MarshalJSON

func (v *Timestamp) MarshalJSON() ([]byte, error)

func (*Timestamp) Nanoseconds

func (v *Timestamp) Nanoseconds() int32

func (*Timestamp) Seconds

func (v *Timestamp) Seconds() int64

func (*Timestamp) SetNanoseconds

func (v *Timestamp) SetNanoseconds(nanoseconds int32)

func (*Timestamp) SetSeconds

func (v *Timestamp) SetSeconds(seconds int64)

func (*Timestamp) UnmarshalCBOR

func (v *Timestamp) UnmarshalCBOR(data []byte) error

func (*Timestamp) UnmarshalJSON

func (v *Timestamp) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL