Documentation
¶
Index ¶
- Variables
- type Timestamp
- func (x *Timestamp) AsTime() time.Time
- func (x *Timestamp) ClearTimestamp()
- func (x *Timestamp) GetTimestamp() *timestamppb.Timestamp
- func (x *Timestamp) HasTimestamp() bool
- func (*Timestamp) ProtoMessage()
- func (x *Timestamp) ProtoReflect() protoreflect.Message
- func (x *Timestamp) Reset()
- func (m *Timestamp) Sanitize() error
- func (ts *Timestamp) Scan(value any) error
- func (x *Timestamp) SetTimestamp(v *timestamppb.Timestamp)
- func (x *Timestamp) String() string
- func (ts *Timestamp) Value() (driver.Value, error)
- type Timestamp_builder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NegativeInfinityTS = time.Date(math.MinInt32, time.January, 1, 0, 0, 0, 0, time.UTC) PositiveInfinityTS = time.Date(math.MaxInt32, time.December, 31, 23, 59, 59, 1e9-1, time.UTC) )
View Source
var File_resources_timestamp_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 (*Timestamp) ClearTimestamp ¶
func (x *Timestamp) ClearTimestamp()
func (*Timestamp) GetTimestamp ¶
func (x *Timestamp) GetTimestamp() *timestamppb.Timestamp
func (*Timestamp) HasTimestamp ¶
func (*Timestamp) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
func (*Timestamp) ProtoReflect ¶
func (x *Timestamp) ProtoReflect() protoreflect.Message
func (*Timestamp) Sanitize ¶
Sanitize sanitizes the message's fields, in case of complex types it calls their Sanitize() method recursively.
func (*Timestamp) SetTimestamp ¶
func (x *Timestamp) SetTimestamp(v *timestamppb.Timestamp)
type Timestamp_builder ¶
type Timestamp_builder struct {
Timestamp *timestamppb.Timestamp
// contains filtered or unexported fields
}
func (Timestamp_builder) Build ¶
func (b0 Timestamp_builder) Build() *Timestamp
Click to show internal directories.
Click to hide internal directories.