Documentation
¶
Index ¶
- Variables
- type Date
- type Duration
- type Model
- func (*Model) Descriptor() ([]byte, []int)deprecated
- func (x *Model) GetCreatedAt() string
- func (x *Model) GetDeletedAt() string
- func (x *Model) GetUpdateAt() string
- func (*Model) ProtoMessage()
- func (x *Model) ProtoReflect() protoreflect.Message
- func (x *Model) Reset()
- func (x *Model) String() string
- type Time
- func (*Time) Descriptor() ([]byte, []int)deprecated
- func (ts Time) Format(foramt string) string
- func (x *Time) GetT() int64
- func (ts *Time) GobDecode(data []byte) error
- func (ts Time) GobEncode() ([]byte, error)
- func (ts Time) GormDataType() string
- func (ts Time) MarshalBinary() ([]byte, error)
- func (ts Time) MarshalJSON() ([]byte, error)
- func (*Time) ProtoMessage()
- func (x *Time) ProtoReflect() protoreflect.Message
- func (x *Time) Reset()
- func (ts *Time) Scan(value interface{}) (err error)
- func (x *Time) String() string
- func (ts *Time) UnmarshalBinary(data []byte) error
- func (ts *Time) UnmarshalJSON(data []byte) error
- func (ts Time) Value() (driver.Value, error)
- type Timestamp
Constants ¶
This section is empty.
Variables ¶
View Source
var File_cherry_protobuf_time_time_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Date ¶
type Date struct {
T int64 `protobuf:"varint,1,opt,name=t,proto3" json:"t,omitempty"`
// contains filtered or unexported fields
}
func (*Date) Descriptor
deprecated
func (*Date) ProtoMessage ¶
func (*Date) ProtoMessage()
func (*Date) ProtoReflect ¶
func (x *Date) ProtoReflect() protoreflect.Message
type Duration ¶ added in v1.5.11
type Duration struct {
// Signed seconds of the span of time. Must be from -315,576,000,000
// to +315,576,000,000 inclusive. Note: these bounds are computed from:
// 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
// Signed fractions of a second at nanosecond resolution of the span
// of time. Durations less than one second are represented with a 0
// `seconds` field and a positive or negative `nanos` field. For durations
// of one second or more, a non-zero value for the `nanos` field must be
// of the same sign as the `seconds` field. Must be from -999,999,999
// to +999,999,999 inclusive.
Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
// contains filtered or unexported fields
}
func (*Duration) Descriptor
deprecated
added in
v1.5.11
func (*Duration) GetSeconds ¶ added in v1.6.15
func (*Duration) ProtoMessage ¶ added in v1.5.11
func (*Duration) ProtoMessage()
func (*Duration) ProtoReflect ¶ added in v1.5.11
func (x *Duration) ProtoReflect() protoreflect.Message
type Model ¶
type Model struct {
CreatedAt string `protobuf:"bytes,1,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"`
UpdateAt string `protobuf:"bytes,2,opt,name=updateAt,proto3" json:"updateAt,omitempty" gorm:"type:timestamptz(6);default:now();index"`
DeletedAt string `protobuf:"bytes,3,opt,name=deletedAt,proto3" json:"deletedAt,omitempty" gorm:"<-:false;type:timestamptz(6);index"`
// contains filtered or unexported fields
}
func (*Model) Descriptor
deprecated
func (*Model) GetCreatedAt ¶
func (*Model) GetDeletedAt ¶
func (*Model) GetUpdateAt ¶
func (*Model) ProtoMessage ¶
func (*Model) ProtoMessage()
func (*Model) ProtoReflect ¶
func (x *Model) ProtoReflect() protoreflect.Message
type Time ¶
type Time struct {
T int64 `protobuf:"varint,1,opt,name=t,proto3" json:"t,omitempty"`
// contains filtered or unexported fields
}
func (*Time) Descriptor
deprecated
func (Time) MarshalBinary ¶
func (Time) MarshalJSON ¶
func (*Time) ProtoMessage ¶
func (*Time) ProtoMessage()
func (*Time) ProtoReflect ¶
func (x *Time) ProtoReflect() protoreflect.Message
func (*Time) UnmarshalBinary ¶
UnmarshalBinary implements the encoding.BinaryUnmarshaler interface.
func (*Time) UnmarshalJSON ¶
type Timestamp ¶ added in v1.5.11
type Timestamp struct {
// Represents seconds of UTC time since Unix epoch
// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
// 9999-12-31T23:59:59Z inclusive.
Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
// Non-negative fractions of a second at nanosecond resolution. Negative
// second values with fractions must still have non-negative nanos values
// that count forward in time. Must be from 0 to 999,999,999
// inclusive.
Nanos int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
// contains filtered or unexported fields
}
func (*Timestamp) Descriptor
deprecated
added in
v1.5.11
func (*Timestamp) GetSeconds ¶ added in v1.6.15
func (*Timestamp) ProtoMessage ¶ added in v1.5.11
func (*Timestamp) ProtoMessage()
func (*Timestamp) ProtoReflect ¶ added in v1.5.11
func (x *Timestamp) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.