Documentation
¶
Index ¶
- Variables
- type ExtraField
- func (*ExtraField) Descriptor() ([]byte, []int)deprecated
- func (x *ExtraField) GetName() string
- func (x *ExtraField) GetPackage() string
- func (x *ExtraField) GetTag() *GormTag
- func (x *ExtraField) GetType() string
- func (*ExtraField) ProtoMessage()
- func (x *ExtraField) ProtoReflect() protoreflect.Message
- func (x *ExtraField) Reset()
- func (x *ExtraField) String() string
- type GormMessageOptions
- func (*GormMessageOptions) Descriptor() ([]byte, []int)deprecated
- func (x *GormMessageOptions) GetEnabled() bool
- func (x *GormMessageOptions) GetService() bool
- func (x *GormMessageOptions) GetTable() string
- func (*GormMessageOptions) ProtoMessage()
- func (x *GormMessageOptions) ProtoReflect() protoreflect.Message
- func (x *GormMessageOptions) Reset()
- func (x *GormMessageOptions) String() string
- type GormTag
- func (*GormTag) Descriptor() ([]byte, []int)deprecated
- func (x *GormTag) GetAllowAll() bool
- func (x *GormTag) GetAllowCreate() bool
- func (x *GormTag) GetAllowDetail() bool
- func (x *GormTag) GetAllowList() bool
- func (x *GormTag) GetAllowUpdate() bool
- func (x *GormTag) GetAssociationAutocreate() bool
- func (x *GormTag) GetAssociationAutoupdate() bool
- func (x *GormTag) GetAssociationFk() string
- func (x *GormTag) GetAssociationJointableFk() string
- func (x *GormTag) GetAssociationSaveReference() bool
- func (x *GormTag) GetAutoIncrement() bool
- func (x *GormTag) GetColumn() string
- func (x *GormTag) GetDefault() string
- func (x *GormTag) GetEmbedded() bool
- func (x *GormTag) GetEmbeddedPrefix() string
- func (x *GormTag) GetFk() string
- func (x *GormTag) GetIgnore() bool
- func (x *GormTag) GetIndex() string
- func (x *GormTag) GetJointableFk() string
- func (x *GormTag) GetManyToMany() string
- func (x *GormTag) GetNotNull() bool
- func (x *GormTag) GetPk() bool
- func (x *GormTag) GetPrecision() int32
- func (x *GormTag) GetPreload() bool
- func (x *GormTag) GetSerializer() string
- func (x *GormTag) GetSize() int32
- func (x *GormTag) GetType() string
- func (x *GormTag) GetUnique() bool
- func (x *GormTag) GetUniqueIndex() string
- func (*GormTag) ProtoMessage()
- func (x *GormTag) ProtoReflect() protoreflect.Message
- func (x *GormTag) Reset()
- func (x *GormTag) String() string
- type Model
- func (*Model) Descriptor() ([]byte, []int)deprecated
- func (x *Model) GetCreatedAt() int64
- func (x *Model) GetDeletedAt() int64
- func (x *Model) GetId() uint64
- func (x *Model) GetUpdatedAt() int64
- func (*Model) ProtoMessage()
- func (x *Model) ProtoReflect() protoreflect.Message
- func (x *Model) Reset()
- func (x *Model) String() string
- type Protobuf
- type Timestamp
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// optional gorm.GormTag field = 100001;
E_Field = &file_orm_gorm_proto_extTypes[0]
)
Extension fields to descriptorpb.FieldOptions.
View Source
var (
// optional gorm.GormMessageOptions opts = 100001;
E_Opts = &file_orm_gorm_proto_extTypes[1]
)
Extension fields to descriptorpb.MessageOptions.
View Source
var (
// optional gorm.GormMessageOptions server = 100001;
E_Server = &file_orm_gorm_proto_extTypes[2]
)
Extension fields to descriptorpb.ServiceOptions.
View Source
var File_orm_gorm_proto protoreflect.FileDescriptor
View Source
var File_orm_model_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ExtraField ¶ added in v0.0.13
type ExtraField struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Tag *GormTag `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"`
Package string `protobuf:"bytes,4,opt,name=package,proto3" json:"package,omitempty"`
// contains filtered or unexported fields
}
func (*ExtraField) Descriptor
deprecated
added in
v0.0.13
func (*ExtraField) Descriptor() ([]byte, []int)
Deprecated: Use ExtraField.ProtoReflect.Descriptor instead.
func (*ExtraField) GetName ¶ added in v0.0.13
func (x *ExtraField) GetName() string
func (*ExtraField) GetPackage ¶ added in v0.0.13
func (x *ExtraField) GetPackage() string
func (*ExtraField) GetTag ¶ added in v0.0.13
func (x *ExtraField) GetTag() *GormTag
func (*ExtraField) GetType ¶ added in v0.0.13
func (x *ExtraField) GetType() string
func (*ExtraField) ProtoMessage ¶ added in v0.0.13
func (*ExtraField) ProtoMessage()
func (*ExtraField) ProtoReflect ¶ added in v0.0.13
func (x *ExtraField) ProtoReflect() protoreflect.Message
func (*ExtraField) Reset ¶ added in v0.0.13
func (x *ExtraField) Reset()
func (*ExtraField) String ¶ added in v0.0.13
func (x *ExtraField) String() string
type GormMessageOptions ¶ added in v0.0.13
type GormMessageOptions struct {
Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`
Service bool `protobuf:"varint,3,opt,name=service,proto3" json:"service,omitempty"`
// contains filtered or unexported fields
}
func (*GormMessageOptions) Descriptor
deprecated
added in
v0.0.13
func (*GormMessageOptions) Descriptor() ([]byte, []int)
Deprecated: Use GormMessageOptions.ProtoReflect.Descriptor instead.
func (*GormMessageOptions) GetEnabled ¶ added in v0.0.13
func (x *GormMessageOptions) GetEnabled() bool
func (*GormMessageOptions) GetService ¶ added in v0.0.13
func (x *GormMessageOptions) GetService() bool
func (*GormMessageOptions) GetTable ¶ added in v0.0.13
func (x *GormMessageOptions) GetTable() string
func (*GormMessageOptions) ProtoMessage ¶ added in v0.0.13
func (*GormMessageOptions) ProtoMessage()
func (*GormMessageOptions) ProtoReflect ¶ added in v0.0.13
func (x *GormMessageOptions) ProtoReflect() protoreflect.Message
func (*GormMessageOptions) Reset ¶ added in v0.0.13
func (x *GormMessageOptions) Reset()
func (*GormMessageOptions) String ¶ added in v0.0.13
func (x *GormMessageOptions) String() string
type GormTag ¶ added in v0.0.13
type GormTag struct {
Column string `protobuf:"bytes,1,opt,name=column,proto3" json:"column,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
Precision int32 `protobuf:"varint,4,opt,name=precision,proto3" json:"precision,omitempty"`
// primary_key
Pk bool `protobuf:"varint,5,opt,name=pk,proto3" json:"pk,omitempty"`
Unique bool `protobuf:"varint,6,opt,name=unique,proto3" json:"unique,omitempty"`
Default string `protobuf:"bytes,7,opt,name=default,proto3" json:"default,omitempty"`
NotNull bool `protobuf:"varint,8,opt,name=not_null,json=notNull,proto3" json:"not_null,omitempty"`
AutoIncrement bool `protobuf:"varint,9,opt,name=auto_increment,json=autoIncrement,proto3" json:"auto_increment,omitempty"`
Index string `protobuf:"bytes,10,opt,name=index,proto3" json:"index,omitempty"`
UniqueIndex string `protobuf:"bytes,11,opt,name=unique_index,json=uniqueIndex,proto3" json:"unique_index,omitempty"`
Embedded bool `protobuf:"varint,12,opt,name=embedded,proto3" json:"embedded,omitempty"`
EmbeddedPrefix string `protobuf:"bytes,13,opt,name=embedded_prefix,json=embeddedPrefix,proto3" json:"embedded_prefix,omitempty"`
Ignore bool `protobuf:"varint,14,opt,name=ignore,proto3" json:"ignore,omitempty"`
// foreign_key
Fk string `protobuf:"bytes,15,opt,name=fk,proto3" json:"fk,omitempty"`
AssociationFk string `protobuf:"bytes,16,opt,name=association_fk,json=associationFk,proto3" json:"association_fk,omitempty"`
ManyToMany string `protobuf:"bytes,17,opt,name=many_to_many,json=manyToMany,proto3" json:"many_to_many,omitempty"`
JointableFk string `protobuf:"bytes,18,opt,name=jointable_fk,json=jointableFk,proto3" json:"jointable_fk,omitempty"`
AssociationJointableFk string `` /* 130-byte string literal not displayed */
AssociationAutoupdate bool `` /* 126-byte string literal not displayed */
AssociationAutocreate bool `` /* 126-byte string literal not displayed */
AssociationSaveReference bool `` /* 137-byte string literal not displayed */
Preload bool `protobuf:"varint,23,opt,name=preload,proto3" json:"preload,omitempty"`
Serializer string `protobuf:"bytes,24,opt,name=serializer,proto3" json:"serializer,omitempty"`
AllowCreate bool `protobuf:"varint,25,opt,name=allow_create,json=allowCreate,proto3" json:"allow_create,omitempty"`
AllowUpdate bool `protobuf:"varint,26,opt,name=allow_update,json=allowUpdate,proto3" json:"allow_update,omitempty"`
AllowDetail bool `protobuf:"varint,27,opt,name=allow_detail,json=allowDetail,proto3" json:"allow_detail,omitempty"`
AllowList bool `protobuf:"varint,28,opt,name=allow_list,json=allowList,proto3" json:"allow_list,omitempty"`
AllowAll bool `protobuf:"varint,29,opt,name=allow_all,json=allowAll,proto3" json:"allow_all,omitempty"`
// contains filtered or unexported fields
}
func (*GormTag) Descriptor
deprecated
added in
v0.0.13
func (*GormTag) GetAllowAll ¶ added in v0.0.13
func (*GormTag) GetAllowCreate ¶ added in v0.0.13
func (*GormTag) GetAllowDetail ¶ added in v0.0.13
func (*GormTag) GetAllowList ¶ added in v0.0.13
func (*GormTag) GetAllowUpdate ¶ added in v0.0.13
func (*GormTag) GetAssociationAutocreate ¶ added in v0.0.13
func (*GormTag) GetAssociationAutoupdate ¶ added in v0.0.13
func (*GormTag) GetAssociationFk ¶ added in v0.0.13
func (*GormTag) GetAssociationJointableFk ¶ added in v0.0.13
func (*GormTag) GetAssociationSaveReference ¶ added in v0.0.13
func (*GormTag) GetAutoIncrement ¶ added in v0.0.13
func (*GormTag) GetDefault ¶ added in v0.0.13
func (*GormTag) GetEmbedded ¶ added in v0.0.13
func (*GormTag) GetEmbeddedPrefix ¶ added in v0.0.13
func (*GormTag) GetJointableFk ¶ added in v0.0.13
func (*GormTag) GetManyToMany ¶ added in v0.0.13
func (*GormTag) GetNotNull ¶ added in v0.0.13
func (*GormTag) GetPrecision ¶ added in v0.0.13
func (*GormTag) GetPreload ¶ added in v0.0.13
func (*GormTag) GetSerializer ¶ added in v0.0.13
func (*GormTag) GetUniqueIndex ¶ added in v0.0.13
func (*GormTag) ProtoMessage ¶ added in v0.0.13
func (*GormTag) ProtoMessage()
func (*GormTag) ProtoReflect ¶ added in v0.0.13
func (x *GormTag) ProtoReflect() protoreflect.Message
type Model ¶ added in v0.0.13
type Model struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primary_key"`
CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt int64 `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
DeletedAt int64 `protobuf:"varint,4,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty" gorm:"index"`
// contains filtered or unexported fields
}
func (*Model) Descriptor
deprecated
added in
v0.0.13
func (*Model) GetCreatedAt ¶ added in v0.0.13
func (*Model) GetDeletedAt ¶ added in v0.0.13
func (*Model) GetUpdatedAt ¶ added in v0.0.13
func (*Model) ProtoMessage ¶ added in v0.0.13
func (*Model) ProtoMessage()
func (*Model) ProtoReflect ¶ added in v0.0.13
func (x *Model) ProtoReflect() protoreflect.Message
type Protobuf ¶ added in v0.0.13
type Protobuf struct {
Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*Protobuf) Descriptor
deprecated
added in
v0.0.13
func (*Protobuf) ProtoMessage ¶ added in v0.0.13
func (*Protobuf) ProtoMessage()
func (*Protobuf) ProtoReflect ¶ added in v0.0.13
func (x *Protobuf) ProtoReflect() protoreflect.Message
type Timestamp ¶
type Timestamp struct {
Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty" gorm:"-:all"`
// contains filtered or unexported fields
}
func (*Timestamp) Descriptor
deprecated
func (*Timestamp) GetTimestamp ¶
func (x *Timestamp) GetTimestamp() *timestamppb.Timestamp
func (*Timestamp) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
func (*Timestamp) ProtoReflect ¶
func (x *Timestamp) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.