Documentation ¶
Index ¶
- Variables
- type File
- func (*File) Descriptor() ([]byte, []int)deprecated
- func (x *File) GetBytes() int64
- func (x *File) GetCreated() *timestamppb.Timestamp
- func (x *File) GetName() string
- func (x *File) GetUpdated() *timestamppb.Timestamp
- func (x *File) GetUuid() string
- func (*File) ProtoMessage()
- func (x *File) ProtoReflect() protoreflect.Message
- func (x *File) Reset()
- func (x *File) String() string
- func (p *File) ToModel() (*FileModel, error)
- type FileModel
Constants ¶
This section is empty.
Variables ¶
View Source
var File_models_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Bytes int64 `protobuf:"varint,3,opt,name=bytes,proto3" json:"bytes,omitempty"` Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` Updated *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated,proto3" json:"updated,omitempty"` // contains filtered or unexported fields }
func (*File) Descriptor
deprecated
func (*File) GetCreated ¶
func (x *File) GetCreated() *timestamppb.Timestamp
func (*File) GetUpdated ¶
func (x *File) GetUpdated() *timestamppb.Timestamp
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
type FileModel ¶
type FileModel struct { Uuid string `gorm:"not null;unique;primaryKey"` Name string `gorm:"not null;index"` Bytes int64 `gorm:"not null"` Created sql.NullTime `gorm:"not null;autoCreateTime;<-:create"` Updated sql.NullTime `gorm:"autoUpdateTime"` }
FileModel is the GORM model for pb.File.
Click to show internal directories.
Click to hide internal directories.