Documentation ¶
Index ¶
- Variables
- type Timestamp
- func (x *Timestamp) AsTime() time.Time
- func (*Timestamp) Descriptor() ([]byte, []int)deprecated
- func (x *Timestamp) GetTimestamp() *timestamppb.Timestamp
- func (*Timestamp) ProtoMessage()
- func (x *Timestamp) ProtoReflect() protoreflect.Message
- func (x *Timestamp) Reset()
- func (ts *Timestamp) Scan(value interface{}) error
- func (x *Timestamp) String() string
- func (ts *Timestamp) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var File_controller_storage_timestamp_v1_timestamp_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Timestamp ¶
type Timestamp struct { Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
Timestamp for storage messages. We've defined a new local type wrapper of google.protobuf.Timestamp so we can implement sql.Scanner and sql.Valuer interfaces. See: https://golang.org/pkg/database/sql/#Scanner https://golang.org/pkg/database/sql/driver/#Valuer
func Now ¶ added in v0.4.0
func Now() *Timestamp
Now constructs a new Timestamp from the current time.
func (*Timestamp) Descriptor
deprecated
func (*Timestamp) GetTimestamp ¶
func (x *Timestamp) GetTimestamp() *timestamppb.Timestamp
func (*Timestamp) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
func (*Timestamp) ProtoReflect ¶
func (x *Timestamp) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.