Documentation ¶
Overview ¶
Package gorm is a generated protocol buffer package.
It is generated from these files:
options/gorm.proto
It has these top-level messages:
GormFileOptions GormMessageOptions ExtraField GormFieldOptions GormTag HasOneOptions BelongsToOptions HasManyOptions ManyToManyOptions AutoServerOptions MethodOptions
Index ¶
- Variables
- type AutoServerOptions
- type BelongsToOptions
- func (*BelongsToOptions) Descriptor() ([]byte, []int)
- func (m *BelongsToOptions) GetAssociationAutocreate() bool
- func (m *BelongsToOptions) GetAssociationAutoupdate() bool
- func (m *BelongsToOptions) GetAssociationForeignkey() string
- func (m *BelongsToOptions) GetAssociationSaveReference() bool
- func (m *BelongsToOptions) GetForeignkey() string
- func (m *BelongsToOptions) GetForeignkeyTag() *GormTag
- func (m *BelongsToOptions) GetPreload() bool
- func (*BelongsToOptions) ProtoMessage()
- func (m *BelongsToOptions) Reset()
- func (m *BelongsToOptions) String() string
- type ExtraField
- func (*ExtraField) Descriptor() ([]byte, []int)
- func (m *ExtraField) GetName() string
- func (m *ExtraField) GetPackage() string
- func (m *ExtraField) GetTag() *GormTag
- func (m *ExtraField) GetType() string
- func (*ExtraField) ProtoMessage()
- func (m *ExtraField) Reset()
- func (m *ExtraField) String() string
- type GormFieldOptions
- func (*GormFieldOptions) Descriptor() ([]byte, []int)
- func (m *GormFieldOptions) GetAssociation() isGormFieldOptions_Association
- func (m *GormFieldOptions) GetBelongsTo() *BelongsToOptions
- func (m *GormFieldOptions) GetDrop() bool
- func (m *GormFieldOptions) GetHasMany() *HasManyOptions
- func (m *GormFieldOptions) GetHasOne() *HasOneOptions
- func (m *GormFieldOptions) GetManyToMany() *ManyToManyOptions
- func (m *GormFieldOptions) GetReferenceOf() string
- func (m *GormFieldOptions) GetTag() *GormTag
- func (*GormFieldOptions) ProtoMessage()
- func (m *GormFieldOptions) Reset()
- func (m *GormFieldOptions) String() string
- func (*GormFieldOptions) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type GormFieldOptions_BelongsTo
- type GormFieldOptions_HasMany
- type GormFieldOptions_HasOne
- type GormFieldOptions_ManyToMany
- type GormFileOptions
- type GormMessageOptions
- func (*GormMessageOptions) Descriptor() ([]byte, []int)
- func (m *GormMessageOptions) GetInclude() []*ExtraField
- func (m *GormMessageOptions) GetMultiAccount() bool
- func (m *GormMessageOptions) GetOrmable() bool
- func (m *GormMessageOptions) GetTable() string
- func (*GormMessageOptions) ProtoMessage()
- func (m *GormMessageOptions) Reset()
- func (m *GormMessageOptions) String() string
- type GormTag
- func (*GormTag) Descriptor() ([]byte, []int)
- func (m *GormTag) GetAssociationAutocreate() bool
- func (m *GormTag) GetAssociationAutoupdate() bool
- func (m *GormTag) GetAssociationForeignkey() string
- func (m *GormTag) GetAssociationJointableForeignkey() string
- func (m *GormTag) GetAssociationSaveReference() bool
- func (m *GormTag) GetAutoIncrement() bool
- func (m *GormTag) GetColumn() string
- func (m *GormTag) GetDefault() string
- func (m *GormTag) GetEmbedded() bool
- func (m *GormTag) GetEmbeddedPrefix() string
- func (m *GormTag) GetForeignkey() string
- func (m *GormTag) GetIgnore() bool
- func (m *GormTag) GetIndex() string
- func (m *GormTag) GetJointableForeignkey() string
- func (m *GormTag) GetManyToMany() string
- func (m *GormTag) GetNotNull() bool
- func (m *GormTag) GetPrecision() int32
- func (m *GormTag) GetPreload() bool
- func (m *GormTag) GetPrimaryKey() bool
- func (m *GormTag) GetSize_() int32
- func (m *GormTag) GetType() string
- func (m *GormTag) GetUnique() bool
- func (m *GormTag) GetUniqueIndex() string
- func (*GormTag) ProtoMessage()
- func (m *GormTag) Reset()
- func (m *GormTag) String() string
- type HasManyOptions
- func (*HasManyOptions) Descriptor() ([]byte, []int)
- func (m *HasManyOptions) GetAssociationAutocreate() bool
- func (m *HasManyOptions) GetAssociationAutoupdate() bool
- func (m *HasManyOptions) GetAssociationForeignkey() string
- func (m *HasManyOptions) GetAssociationSaveReference() bool
- func (m *HasManyOptions) GetForeignkey() string
- func (m *HasManyOptions) GetForeignkeyTag() *GormTag
- func (m *HasManyOptions) GetPositionField() string
- func (m *HasManyOptions) GetPositionFieldTag() *GormTag
- func (m *HasManyOptions) GetPreload() bool
- func (*HasManyOptions) ProtoMessage()
- func (m *HasManyOptions) Reset()
- func (m *HasManyOptions) String() string
- type HasOneOptions
- func (*HasOneOptions) Descriptor() ([]byte, []int)
- func (m *HasOneOptions) GetAssociationAutocreate() bool
- func (m *HasOneOptions) GetAssociationAutoupdate() bool
- func (m *HasOneOptions) GetAssociationForeignkey() string
- func (m *HasOneOptions) GetAssociationSaveReference() bool
- func (m *HasOneOptions) GetForeignkey() string
- func (m *HasOneOptions) GetForeignkeyTag() *GormTag
- func (m *HasOneOptions) GetPreload() bool
- func (*HasOneOptions) ProtoMessage()
- func (m *HasOneOptions) Reset()
- func (m *HasOneOptions) String() string
- type ManyToManyOptions
- func (*ManyToManyOptions) Descriptor() ([]byte, []int)
- func (m *ManyToManyOptions) GetAssociationAutocreate() bool
- func (m *ManyToManyOptions) GetAssociationAutoupdate() bool
- func (m *ManyToManyOptions) GetAssociationForeignkey() string
- func (m *ManyToManyOptions) GetAssociationJointableForeignkey() string
- func (m *ManyToManyOptions) GetAssociationSaveReference() bool
- func (m *ManyToManyOptions) GetForeignkey() string
- func (m *ManyToManyOptions) GetJointable() string
- func (m *ManyToManyOptions) GetJointableForeignkey() string
- func (m *ManyToManyOptions) GetPreload() bool
- func (*ManyToManyOptions) ProtoMessage()
- func (m *ManyToManyOptions) Reset()
- func (m *ManyToManyOptions) String() string
- type MethodOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var E_Field = &proto.ExtensionDesc{ ExtendedType: (*google_protobuf.FieldOptions)(nil), ExtensionType: (*GormFieldOptions)(nil), Field: 52119, Name: "gorm.field", Tag: "bytes,52119,opt,name=field", Filename: "options/gorm.proto", }
View Source
var E_FileOpts = &proto.ExtensionDesc{ ExtendedType: (*google_protobuf.FileOptions)(nil), ExtensionType: (*GormFileOptions)(nil), Field: 52119, Name: "gorm.file_opts", Tag: "bytes,52119,opt,name=file_opts,json=fileOpts", Filename: "options/gorm.proto", }
View Source
var E_Method = &proto.ExtensionDesc{ ExtendedType: (*google_protobuf.MethodOptions)(nil), ExtensionType: (*MethodOptions)(nil), Field: 52119, Name: "gorm.method", Tag: "bytes,52119,opt,name=method", Filename: "options/gorm.proto", }
View Source
var E_Opts = &proto.ExtensionDesc{ ExtendedType: (*google_protobuf.MessageOptions)(nil), ExtensionType: (*GormMessageOptions)(nil), Field: 52119, Name: "gorm.opts", Tag: "bytes,52119,opt,name=opts", Filename: "options/gorm.proto", }
View Source
var E_Server = &proto.ExtensionDesc{ ExtendedType: (*google_protobuf.ServiceOptions)(nil), ExtensionType: (*AutoServerOptions)(nil), Field: 52119, Name: "gorm.server", Tag: "bytes,52119,opt,name=server", Filename: "options/gorm.proto", }
Functions ¶
This section is empty.
Types ¶
type AutoServerOptions ¶ added in v0.2.0
type AutoServerOptions struct { Autogen *bool `protobuf:"varint,1,opt,name=autogen" json:"autogen,omitempty"` TxnMiddleware *bool `protobuf:"varint,2,opt,name=txn_middleware,json=txnMiddleware" json:"txn_middleware,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*AutoServerOptions) Descriptor ¶ added in v0.2.0
func (*AutoServerOptions) Descriptor() ([]byte, []int)
func (*AutoServerOptions) GetAutogen ¶ added in v0.2.0
func (m *AutoServerOptions) GetAutogen() bool
func (*AutoServerOptions) GetTxnMiddleware ¶ added in v0.6.0
func (m *AutoServerOptions) GetTxnMiddleware() bool
func (*AutoServerOptions) ProtoMessage ¶ added in v0.2.0
func (*AutoServerOptions) ProtoMessage()
func (*AutoServerOptions) Reset ¶ added in v0.2.0
func (m *AutoServerOptions) Reset()
func (*AutoServerOptions) String ¶ added in v0.2.0
func (m *AutoServerOptions) String() string
type BelongsToOptions ¶ added in v0.5.0
type BelongsToOptions struct { Foreignkey *string `protobuf:"bytes,1,opt,name=foreignkey" json:"foreignkey,omitempty"` ForeignkeyTag *GormTag `protobuf:"bytes,2,opt,name=foreignkey_tag,json=foreignkeyTag" json:"foreignkey_tag,omitempty"` AssociationForeignkey *string `protobuf:"bytes,3,opt,name=association_foreignkey,json=associationForeignkey" json:"association_foreignkey,omitempty"` AssociationAutoupdate *bool `protobuf:"varint,4,opt,name=association_autoupdate,json=associationAutoupdate" json:"association_autoupdate,omitempty"` AssociationAutocreate *bool `protobuf:"varint,5,opt,name=association_autocreate,json=associationAutocreate" json:"association_autocreate,omitempty"` AssociationSaveReference *bool `` /* 129-byte string literal not displayed */ Preload *bool `protobuf:"varint,7,opt,name=preload" json:"preload,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*BelongsToOptions) Descriptor ¶ added in v0.5.0
func (*BelongsToOptions) Descriptor() ([]byte, []int)
func (*BelongsToOptions) GetAssociationAutocreate ¶ added in v0.12.0
func (m *BelongsToOptions) GetAssociationAutocreate() bool
func (*BelongsToOptions) GetAssociationAutoupdate ¶ added in v0.12.0
func (m *BelongsToOptions) GetAssociationAutoupdate() bool
func (*BelongsToOptions) GetAssociationForeignkey ¶ added in v0.5.0
func (m *BelongsToOptions) GetAssociationForeignkey() string
func (*BelongsToOptions) GetAssociationSaveReference ¶ added in v0.12.0
func (m *BelongsToOptions) GetAssociationSaveReference() bool
func (*BelongsToOptions) GetForeignkey ¶ added in v0.5.0
func (m *BelongsToOptions) GetForeignkey() string
func (*BelongsToOptions) GetForeignkeyTag ¶ added in v0.5.0
func (m *BelongsToOptions) GetForeignkeyTag() *GormTag
func (*BelongsToOptions) GetPreload ¶ added in v0.13.0
func (m *BelongsToOptions) GetPreload() bool
func (*BelongsToOptions) ProtoMessage ¶ added in v0.5.0
func (*BelongsToOptions) ProtoMessage()
func (*BelongsToOptions) Reset ¶ added in v0.5.0
func (m *BelongsToOptions) Reset()
func (*BelongsToOptions) String ¶ added in v0.5.0
func (m *BelongsToOptions) String() string
type ExtraField ¶
type ExtraField struct { Type *string `protobuf:"bytes,1,req,name=type" json:"type,omitempty"` Name *string `protobuf:"bytes,2,req,name=name" json:"name,omitempty"` Tag *GormTag `protobuf:"bytes,3,opt,name=tag" json:"tag,omitempty"` Package *string `protobuf:"bytes,4,opt,name=package" json:"package,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ExtraField) Descriptor ¶
func (*ExtraField) Descriptor() ([]byte, []int)
func (*ExtraField) GetName ¶
func (m *ExtraField) GetName() string
func (*ExtraField) GetPackage ¶ added in v0.6.0
func (m *ExtraField) GetPackage() string
func (*ExtraField) GetTag ¶ added in v0.5.0
func (m *ExtraField) GetTag() *GormTag
func (*ExtraField) GetType ¶
func (m *ExtraField) GetType() string
func (*ExtraField) ProtoMessage ¶
func (*ExtraField) ProtoMessage()
func (*ExtraField) Reset ¶
func (m *ExtraField) Reset()
func (*ExtraField) String ¶
func (m *ExtraField) String() string
type GormFieldOptions ¶
type GormFieldOptions struct { Tag *GormTag `protobuf:"bytes,1,opt,name=tag" json:"tag,omitempty"` Drop *bool `protobuf:"varint,2,opt,name=drop" json:"drop,omitempty"` // Types that are valid to be assigned to Association: // *GormFieldOptions_HasOne // *GormFieldOptions_BelongsTo // *GormFieldOptions_HasMany // *GormFieldOptions_ManyToMany Association isGormFieldOptions_Association `protobuf_oneof:"association"` ReferenceOf *string `protobuf:"bytes,7,opt,name=reference_of,json=referenceOf" json:"reference_of,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*GormFieldOptions) Descriptor ¶
func (*GormFieldOptions) Descriptor() ([]byte, []int)
func (*GormFieldOptions) GetAssociation ¶ added in v0.5.0
func (m *GormFieldOptions) GetAssociation() isGormFieldOptions_Association
func (*GormFieldOptions) GetBelongsTo ¶ added in v0.5.0
func (m *GormFieldOptions) GetBelongsTo() *BelongsToOptions
func (*GormFieldOptions) GetDrop ¶
func (m *GormFieldOptions) GetDrop() bool
func (*GormFieldOptions) GetHasMany ¶ added in v0.5.0
func (m *GormFieldOptions) GetHasMany() *HasManyOptions
func (*GormFieldOptions) GetHasOne ¶ added in v0.5.0
func (m *GormFieldOptions) GetHasOne() *HasOneOptions
func (*GormFieldOptions) GetManyToMany ¶ added in v0.5.0
func (m *GormFieldOptions) GetManyToMany() *ManyToManyOptions
func (*GormFieldOptions) GetReferenceOf ¶ added in v0.8.0
func (m *GormFieldOptions) GetReferenceOf() string
func (*GormFieldOptions) GetTag ¶ added in v0.5.0
func (m *GormFieldOptions) GetTag() *GormTag
func (*GormFieldOptions) ProtoMessage ¶
func (*GormFieldOptions) ProtoMessage()
func (*GormFieldOptions) Reset ¶
func (m *GormFieldOptions) Reset()
func (*GormFieldOptions) String ¶
func (m *GormFieldOptions) String() string
func (*GormFieldOptions) XXX_OneofFuncs ¶ added in v0.5.0
func (*GormFieldOptions) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type GormFieldOptions_BelongsTo ¶ added in v0.5.0
type GormFieldOptions_BelongsTo struct {
BelongsTo *BelongsToOptions `protobuf:"bytes,4,opt,name=belongs_to,json=belongsTo,oneof"`
}
type GormFieldOptions_HasMany ¶ added in v0.5.0
type GormFieldOptions_HasMany struct {
HasMany *HasManyOptions `protobuf:"bytes,5,opt,name=has_many,json=hasMany,oneof"`
}
type GormFieldOptions_HasOne ¶ added in v0.5.0
type GormFieldOptions_HasOne struct {
HasOne *HasOneOptions `protobuf:"bytes,3,opt,name=has_one,json=hasOne,oneof"`
}
type GormFieldOptions_ManyToMany ¶ added in v0.5.0
type GormFieldOptions_ManyToMany struct {
ManyToMany *ManyToManyOptions `protobuf:"bytes,6,opt,name=many_to_many,json=manyToMany,oneof"`
}
type GormFileOptions ¶
type GormFileOptions struct {
XXX_unrecognized []byte `json:"-"`
}
func (*GormFileOptions) Descriptor ¶
func (*GormFileOptions) Descriptor() ([]byte, []int)
func (*GormFileOptions) ProtoMessage ¶
func (*GormFileOptions) ProtoMessage()
func (*GormFileOptions) Reset ¶
func (m *GormFileOptions) Reset()
func (*GormFileOptions) String ¶
func (m *GormFileOptions) String() string
type GormMessageOptions ¶
type GormMessageOptions struct { Ormable *bool `protobuf:"varint,1,req,name=ormable" json:"ormable,omitempty"` Include []*ExtraField `protobuf:"bytes,2,rep,name=include" json:"include,omitempty"` Table *string `protobuf:"bytes,3,opt,name=table" json:"table,omitempty"` MultiAccount *bool `protobuf:"varint,4,opt,name=multi_account,json=multiAccount" json:"multi_account,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*GormMessageOptions) Descriptor ¶
func (*GormMessageOptions) Descriptor() ([]byte, []int)
func (*GormMessageOptions) GetInclude ¶
func (m *GormMessageOptions) GetInclude() []*ExtraField
func (*GormMessageOptions) GetMultiAccount ¶ added in v0.2.0
func (m *GormMessageOptions) GetMultiAccount() bool
func (*GormMessageOptions) GetOrmable ¶
func (m *GormMessageOptions) GetOrmable() bool
func (*GormMessageOptions) GetTable ¶
func (m *GormMessageOptions) GetTable() string
func (*GormMessageOptions) ProtoMessage ¶
func (*GormMessageOptions) ProtoMessage()
func (*GormMessageOptions) Reset ¶
func (m *GormMessageOptions) Reset()
func (*GormMessageOptions) String ¶
func (m *GormMessageOptions) String() string
type GormTag ¶ added in v0.5.0
type GormTag struct { Column *string `protobuf:"bytes,1,opt,name=column" json:"column,omitempty"` Type *string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` Size_ *int32 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"` Precision *int32 `protobuf:"varint,4,opt,name=precision" json:"precision,omitempty"` PrimaryKey *bool `protobuf:"varint,5,opt,name=primary_key,json=primaryKey" json:"primary_key,omitempty"` Unique *bool `protobuf:"varint,6,opt,name=unique" json:"unique,omitempty"` Default *string `protobuf:"bytes,7,opt,name=default" json:"default,omitempty"` NotNull *bool `protobuf:"varint,8,opt,name=not_null,json=notNull" json:"not_null,omitempty"` AutoIncrement *bool `protobuf:"varint,9,opt,name=auto_increment,json=autoIncrement" json:"auto_increment,omitempty"` Index *string `protobuf:"bytes,10,opt,name=index" json:"index,omitempty"` UniqueIndex *string `protobuf:"bytes,11,opt,name=unique_index,json=uniqueIndex" json:"unique_index,omitempty"` Embedded *bool `protobuf:"varint,12,opt,name=embedded" json:"embedded,omitempty"` EmbeddedPrefix *string `protobuf:"bytes,13,opt,name=embedded_prefix,json=embeddedPrefix" json:"embedded_prefix,omitempty"` Ignore *bool `protobuf:"varint,14,opt,name=ignore" json:"ignore,omitempty"` Foreignkey *string `protobuf:"bytes,15,opt,name=foreignkey" json:"foreignkey,omitempty"` AssociationForeignkey *string `protobuf:"bytes,16,opt,name=association_foreignkey,json=associationForeignkey" json:"association_foreignkey,omitempty"` ManyToMany *string `protobuf:"bytes,17,opt,name=many_to_many,json=manyToMany" json:"many_to_many,omitempty"` JointableForeignkey *string `protobuf:"bytes,18,opt,name=jointable_foreignkey,json=jointableForeignkey" json:"jointable_foreignkey,omitempty"` AssociationJointableForeignkey *string `` /* 147-byte string literal not displayed */ AssociationAutoupdate *bool `protobuf:"varint,20,opt,name=association_autoupdate,json=associationAutoupdate" json:"association_autoupdate,omitempty"` AssociationAutocreate *bool `protobuf:"varint,21,opt,name=association_autocreate,json=associationAutocreate" json:"association_autocreate,omitempty"` AssociationSaveReference *bool `` /* 130-byte string literal not displayed */ Preload *bool `protobuf:"varint,23,opt,name=preload" json:"preload,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*GormTag) Descriptor ¶ added in v0.5.0
func (*GormTag) GetAssociationAutocreate ¶ added in v0.12.0
func (*GormTag) GetAssociationAutoupdate ¶ added in v0.12.0
func (*GormTag) GetAssociationForeignkey ¶ added in v0.11.0
func (*GormTag) GetAssociationJointableForeignkey ¶ added in v0.7.0
func (*GormTag) GetAssociationSaveReference ¶ added in v0.12.0
func (*GormTag) GetAutoIncrement ¶ added in v0.5.0
func (*GormTag) GetDefault ¶ added in v0.5.0
func (*GormTag) GetEmbedded ¶ added in v0.5.0
func (*GormTag) GetEmbeddedPrefix ¶ added in v0.5.0
func (*GormTag) GetForeignkey ¶ added in v0.11.0
func (*GormTag) GetJointableForeignkey ¶ added in v0.7.0
func (*GormTag) GetManyToMany ¶ added in v0.7.0
func (*GormTag) GetNotNull ¶ added in v0.5.0
func (*GormTag) GetPrecision ¶ added in v0.5.0
func (*GormTag) GetPreload ¶ added in v0.13.0
func (*GormTag) GetPrimaryKey ¶ added in v0.5.0
func (*GormTag) GetUniqueIndex ¶ added in v0.5.0
func (*GormTag) ProtoMessage ¶ added in v0.5.0
func (*GormTag) ProtoMessage()
type HasManyOptions ¶ added in v0.5.0
type HasManyOptions struct { Foreignkey *string `protobuf:"bytes,1,opt,name=foreignkey" json:"foreignkey,omitempty"` ForeignkeyTag *GormTag `protobuf:"bytes,2,opt,name=foreignkey_tag,json=foreignkeyTag" json:"foreignkey_tag,omitempty"` AssociationForeignkey *string `protobuf:"bytes,3,opt,name=association_foreignkey,json=associationForeignkey" json:"association_foreignkey,omitempty"` PositionField *string `protobuf:"bytes,4,opt,name=position_field,json=positionField" json:"position_field,omitempty"` PositionFieldTag *GormTag `protobuf:"bytes,5,opt,name=position_field_tag,json=positionFieldTag" json:"position_field_tag,omitempty"` AssociationAutoupdate *bool `protobuf:"varint,6,opt,name=association_autoupdate,json=associationAutoupdate" json:"association_autoupdate,omitempty"` AssociationAutocreate *bool `protobuf:"varint,7,opt,name=association_autocreate,json=associationAutocreate" json:"association_autocreate,omitempty"` AssociationSaveReference *bool `` /* 129-byte string literal not displayed */ Preload *bool `protobuf:"varint,9,opt,name=preload" json:"preload,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*HasManyOptions) Descriptor ¶ added in v0.5.0
func (*HasManyOptions) Descriptor() ([]byte, []int)
func (*HasManyOptions) GetAssociationAutocreate ¶ added in v0.12.0
func (m *HasManyOptions) GetAssociationAutocreate() bool
func (*HasManyOptions) GetAssociationAutoupdate ¶ added in v0.12.0
func (m *HasManyOptions) GetAssociationAutoupdate() bool
func (*HasManyOptions) GetAssociationForeignkey ¶ added in v0.5.0
func (m *HasManyOptions) GetAssociationForeignkey() string
func (*HasManyOptions) GetAssociationSaveReference ¶ added in v0.12.0
func (m *HasManyOptions) GetAssociationSaveReference() bool
func (*HasManyOptions) GetForeignkey ¶ added in v0.5.0
func (m *HasManyOptions) GetForeignkey() string
func (*HasManyOptions) GetForeignkeyTag ¶ added in v0.5.0
func (m *HasManyOptions) GetForeignkeyTag() *GormTag
func (*HasManyOptions) GetPositionField ¶ added in v0.5.0
func (m *HasManyOptions) GetPositionField() string
func (*HasManyOptions) GetPositionFieldTag ¶ added in v0.5.0
func (m *HasManyOptions) GetPositionFieldTag() *GormTag
func (*HasManyOptions) GetPreload ¶ added in v0.13.0
func (m *HasManyOptions) GetPreload() bool
func (*HasManyOptions) ProtoMessage ¶ added in v0.5.0
func (*HasManyOptions) ProtoMessage()
func (*HasManyOptions) Reset ¶ added in v0.5.0
func (m *HasManyOptions) Reset()
func (*HasManyOptions) String ¶ added in v0.5.0
func (m *HasManyOptions) String() string
type HasOneOptions ¶ added in v0.5.0
type HasOneOptions struct { Foreignkey *string `protobuf:"bytes,1,opt,name=foreignkey" json:"foreignkey,omitempty"` ForeignkeyTag *GormTag `protobuf:"bytes,2,opt,name=foreignkey_tag,json=foreignkeyTag" json:"foreignkey_tag,omitempty"` AssociationForeignkey *string `protobuf:"bytes,3,opt,name=association_foreignkey,json=associationForeignkey" json:"association_foreignkey,omitempty"` AssociationAutoupdate *bool `protobuf:"varint,4,opt,name=association_autoupdate,json=associationAutoupdate" json:"association_autoupdate,omitempty"` AssociationAutocreate *bool `protobuf:"varint,5,opt,name=association_autocreate,json=associationAutocreate" json:"association_autocreate,omitempty"` AssociationSaveReference *bool `` /* 129-byte string literal not displayed */ Preload *bool `protobuf:"varint,7,opt,name=preload" json:"preload,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*HasOneOptions) Descriptor ¶ added in v0.5.0
func (*HasOneOptions) Descriptor() ([]byte, []int)
func (*HasOneOptions) GetAssociationAutocreate ¶ added in v0.12.0
func (m *HasOneOptions) GetAssociationAutocreate() bool
func (*HasOneOptions) GetAssociationAutoupdate ¶ added in v0.12.0
func (m *HasOneOptions) GetAssociationAutoupdate() bool
func (*HasOneOptions) GetAssociationForeignkey ¶ added in v0.5.0
func (m *HasOneOptions) GetAssociationForeignkey() string
func (*HasOneOptions) GetAssociationSaveReference ¶ added in v0.12.0
func (m *HasOneOptions) GetAssociationSaveReference() bool
func (*HasOneOptions) GetForeignkey ¶ added in v0.5.0
func (m *HasOneOptions) GetForeignkey() string
func (*HasOneOptions) GetForeignkeyTag ¶ added in v0.5.0
func (m *HasOneOptions) GetForeignkeyTag() *GormTag
func (*HasOneOptions) GetPreload ¶ added in v0.13.0
func (m *HasOneOptions) GetPreload() bool
func (*HasOneOptions) ProtoMessage ¶ added in v0.5.0
func (*HasOneOptions) ProtoMessage()
func (*HasOneOptions) Reset ¶ added in v0.5.0
func (m *HasOneOptions) Reset()
func (*HasOneOptions) String ¶ added in v0.5.0
func (m *HasOneOptions) String() string
type ManyToManyOptions ¶ added in v0.5.0
type ManyToManyOptions struct { Jointable *string `protobuf:"bytes,1,opt,name=jointable" json:"jointable,omitempty"` Foreignkey *string `protobuf:"bytes,2,opt,name=foreignkey" json:"foreignkey,omitempty"` JointableForeignkey *string `protobuf:"bytes,3,opt,name=jointable_foreignkey,json=jointableForeignkey" json:"jointable_foreignkey,omitempty"` AssociationForeignkey *string `protobuf:"bytes,4,opt,name=association_foreignkey,json=associationForeignkey" json:"association_foreignkey,omitempty"` AssociationJointableForeignkey *string `` /* 146-byte string literal not displayed */ AssociationAutoupdate *bool `protobuf:"varint,6,opt,name=association_autoupdate,json=associationAutoupdate" json:"association_autoupdate,omitempty"` AssociationAutocreate *bool `protobuf:"varint,7,opt,name=association_autocreate,json=associationAutocreate" json:"association_autocreate,omitempty"` AssociationSaveReference *bool `` /* 129-byte string literal not displayed */ Preload *bool `protobuf:"varint,9,opt,name=preload" json:"preload,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*ManyToManyOptions) Descriptor ¶ added in v0.5.0
func (*ManyToManyOptions) Descriptor() ([]byte, []int)
func (*ManyToManyOptions) GetAssociationAutocreate ¶ added in v0.12.0
func (m *ManyToManyOptions) GetAssociationAutocreate() bool
func (*ManyToManyOptions) GetAssociationAutoupdate ¶ added in v0.12.0
func (m *ManyToManyOptions) GetAssociationAutoupdate() bool
func (*ManyToManyOptions) GetAssociationForeignkey ¶ added in v0.5.0
func (m *ManyToManyOptions) GetAssociationForeignkey() string
func (*ManyToManyOptions) GetAssociationJointableForeignkey ¶ added in v0.5.0
func (m *ManyToManyOptions) GetAssociationJointableForeignkey() string
func (*ManyToManyOptions) GetAssociationSaveReference ¶ added in v0.12.0
func (m *ManyToManyOptions) GetAssociationSaveReference() bool
func (*ManyToManyOptions) GetForeignkey ¶ added in v0.5.0
func (m *ManyToManyOptions) GetForeignkey() string
func (*ManyToManyOptions) GetJointable ¶ added in v0.5.0
func (m *ManyToManyOptions) GetJointable() string
func (*ManyToManyOptions) GetJointableForeignkey ¶ added in v0.5.0
func (m *ManyToManyOptions) GetJointableForeignkey() string
func (*ManyToManyOptions) GetPreload ¶ added in v0.13.0
func (m *ManyToManyOptions) GetPreload() bool
func (*ManyToManyOptions) ProtoMessage ¶ added in v0.5.0
func (*ManyToManyOptions) ProtoMessage()
func (*ManyToManyOptions) Reset ¶ added in v0.5.0
func (m *ManyToManyOptions) Reset()
func (*ManyToManyOptions) String ¶ added in v0.5.0
func (m *ManyToManyOptions) String() string
type MethodOptions ¶ added in v0.2.0
type MethodOptions struct { ObjectType *string `protobuf:"bytes,1,opt,name=object_type,json=objectType" json:"object_type,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*MethodOptions) Descriptor ¶ added in v0.2.0
func (*MethodOptions) Descriptor() ([]byte, []int)
func (*MethodOptions) GetObjectType ¶ added in v0.2.0
func (m *MethodOptions) GetObjectType() string
func (*MethodOptions) ProtoMessage ¶ added in v0.2.0
func (*MethodOptions) ProtoMessage()
func (*MethodOptions) Reset ¶ added in v0.2.0
func (m *MethodOptions) Reset()
func (*MethodOptions) String ¶ added in v0.2.0
func (m *MethodOptions) String() string
Click to show internal directories.
Click to hide internal directories.