Documentation ¶
Index ¶
- Variables
- type Date
- 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 (date *Time) GobDecode(data []byte) error
- func (date Time) GobEncode() ([]byte, error)
- func (ts Time) GormDataType() string
- func (ts Time) MarshalBinary() ([]byte, error)
- func (date 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 (date *Time) UnmarshalJSON(data []byte) error
- func (ts Time) Value() (driver.Value, error)
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 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 ¶
Click to show internal directories.
Click to hide internal directories.