Documentation ¶
Index ¶
- Variables
- type BelongsTo
- type GormOptions
- type GormRef
- type GormRef_BelongsTo
- type GormType
- func (*GormType) Descriptor() ([]byte, []int)deprecated
- func (x *GormType) GetAutoIncrement() bool
- func (x *GormType) GetIndex() bool
- func (x *GormType) GetNotNull() bool
- func (x *GormType) GetPrimary() bool
- func (m *GormType) GetType() isGormType_Type
- func (x *GormType) GetUniqueIndex() bool
- func (*GormType) ProtoMessage()
- func (x *GormType) ProtoReflect() protoreflect.Message
- func (x *GormType) Reset()
- func (x *GormType) String() string
- type GormType_AutoIncrement
- type GormType_Index
- type GormType_NotNull
- type GormType_Primary
- type GormType_UniqueIndex
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // optional gorm.GormOptions opts = 2025; E_Opts = &file_gorm_proto_extTypes[0] // optional gorm.GormRef ref = 2027; E_Ref = &file_gorm_proto_extTypes[1] )
Extension fields to descriptorpb.MessageOptions.
View Source
var (
// optional gorm.GormType type = 2026;
E_Type = &file_gorm_proto_extTypes[2]
)
Extension fields to descriptorpb.FieldOptions.
View Source
var File_gorm_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BelongsTo ¶
type BelongsTo struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*BelongsTo) Descriptor
deprecated
func (*BelongsTo) ProtoMessage ¶
func (*BelongsTo) ProtoMessage()
func (*BelongsTo) ProtoReflect ¶
func (x *BelongsTo) ProtoReflect() protoreflect.Message
type GormOptions ¶
type GormOptions struct { Orm bool `protobuf:"varint,1,opt,name=orm,proto3" json:"orm,omitempty"` // contains filtered or unexported fields }
func (*GormOptions) Descriptor
deprecated
func (*GormOptions) Descriptor() ([]byte, []int)
Deprecated: Use GormOptions.ProtoReflect.Descriptor instead.
func (*GormOptions) GetOrm ¶
func (x *GormOptions) GetOrm() bool
func (*GormOptions) ProtoMessage ¶
func (*GormOptions) ProtoMessage()
func (*GormOptions) ProtoReflect ¶
func (x *GormOptions) ProtoReflect() protoreflect.Message
func (*GormOptions) Reset ¶
func (x *GormOptions) Reset()
func (*GormOptions) String ¶
func (x *GormOptions) String() string
type GormRef ¶
type GormRef struct { // Types that are assignable to Ref: // // *GormRef_BelongsTo Ref isGormRef_Ref `protobuf_oneof:"ref"` // contains filtered or unexported fields }
func (*GormRef) Descriptor
deprecated
func (*GormRef) GetBelongsTo ¶
func (*GormRef) ProtoMessage ¶
func (*GormRef) ProtoMessage()
func (*GormRef) ProtoReflect ¶
func (x *GormRef) ProtoReflect() protoreflect.Message
type GormRef_BelongsTo ¶
type GormRef_BelongsTo struct {
BelongsTo *BelongsTo `protobuf:"bytes,1,opt,name=belongs_to,json=belongsTo,proto3,oneof"`
}
type GormType ¶
type GormType struct { // Types that are assignable to Type: // // *GormType_Primary // *GormType_AutoIncrement // *GormType_Index // *GormType_NotNull // *GormType_UniqueIndex Type isGormType_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
func (*GormType) Descriptor
deprecated
func (*GormType) GetAutoIncrement ¶
func (*GormType) GetNotNull ¶
func (*GormType) GetPrimary ¶
func (*GormType) GetUniqueIndex ¶
func (*GormType) ProtoMessage ¶
func (*GormType) ProtoMessage()
func (*GormType) ProtoReflect ¶
func (x *GormType) ProtoReflect() protoreflect.Message
type GormType_AutoIncrement ¶
type GormType_AutoIncrement struct {
AutoIncrement bool `protobuf:"varint,2,opt,name=auto_increment,json=autoIncrement,proto3,oneof"`
}
type GormType_Index ¶
type GormType_Index struct {
Index bool `protobuf:"varint,3,opt,name=index,proto3,oneof"`
}
type GormType_NotNull ¶
type GormType_NotNull struct {
NotNull bool `protobuf:"varint,4,opt,name=not_null,json=notNull,proto3,oneof"`
}
type GormType_Primary ¶
type GormType_Primary struct {
Primary bool `protobuf:"varint,1,opt,name=primary,proto3,oneof"`
}
type GormType_UniqueIndex ¶
type GormType_UniqueIndex struct {
UniqueIndex bool `protobuf:"varint,5,opt,name=unique_index,json=uniqueIndex,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.