gormpb

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ZeroUUID = "00000000-0000-0000-0000-000000000000"

ZeroUUID The Zero value used for non-nil, but uninitialized UUID type

Variables

View Source
var (
	// optional gorm.GormFieldOptions field = 52119;
	E_Field = &file_gorm_options_proto_extTypes[2]
)

Extension fields to descriptorpb.FieldOptions.

View Source
var (
	// optional gorm.GormFileOptions file_opts = 52119;
	E_FileOpts = &file_gorm_options_proto_extTypes[0]
)

Extension fields to descriptorpb.FileOptions.

View Source
var (
	// optional gorm.MethodOptions method = 52119;
	E_Method = &file_gorm_options_proto_extTypes[4]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var (
	// ormable will cause orm code to be generated for this message/object
	//
	// optional gorm.GormMessageOptions opts = 52119;
	E_Opts = &file_gorm_options_proto_extTypes[1]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var (
	// optional gorm.AutoServerOptions server = 52119;
	E_Server = &file_gorm_options_proto_extTypes[3]
)

Extension fields to descriptorpb.ServiceOptions.

View Source
var File_gorm_options_proto protoreflect.FileDescriptor
View Source
var File_gorm_types_proto protoreflect.FileDescriptor

Functions

func ParseTime

func ParseTime(value uint32) (string, error)

Types

type AutoServerOptions

type AutoServerOptions struct {
	Autogen       bool `protobuf:"varint,1,opt,name=autogen,proto3" json:"autogen,omitempty"`
	TxnMiddleware bool `protobuf:"varint,2,opt,name=txn_middleware,json=txnMiddleware,proto3" json:"txn_middleware,omitempty"`
	WithTracing   bool `protobuf:"varint,3,opt,name=with_tracing,json=withTracing,proto3" json:"with_tracing,omitempty"`
	// contains filtered or unexported fields
}

func (*AutoServerOptions) Descriptor deprecated

func (*AutoServerOptions) Descriptor() ([]byte, []int)

Deprecated: Use AutoServerOptions.ProtoReflect.Descriptor instead.

func (*AutoServerOptions) GetAutogen

func (x *AutoServerOptions) GetAutogen() bool

func (*AutoServerOptions) GetTxnMiddleware

func (x *AutoServerOptions) GetTxnMiddleware() bool

func (*AutoServerOptions) GetWithTracing

func (x *AutoServerOptions) GetWithTracing() bool

func (*AutoServerOptions) ProtoMessage

func (*AutoServerOptions) ProtoMessage()

func (*AutoServerOptions) ProtoReflect

func (x *AutoServerOptions) ProtoReflect() protoreflect.Message

func (*AutoServerOptions) Reset

func (x *AutoServerOptions) Reset()

func (*AutoServerOptions) String

func (x *AutoServerOptions) String() string

type BelongsToOptions

type BelongsToOptions struct {
	Foreignkey                   string   `protobuf:"bytes,1,opt,name=foreignkey,proto3" json:"foreignkey,omitempty"`
	ForeignkeyTag                *GormTag `protobuf:"bytes,2,opt,name=foreignkey_tag,json=foreignkeyTag,proto3" json:"foreignkey_tag,omitempty"`
	AssociationForeignkey        string   `protobuf:"bytes,3,opt,name=association_foreignkey,json=associationForeignkey,proto3" json:"association_foreignkey,omitempty"`
	DisableAssociationAutoupdate bool     `` /* 148-byte string literal not displayed */
	DisableAssociationAutocreate bool     `` /* 148-byte string literal not displayed */
	AssociationSaveReference     bool     `` /* 136-byte string literal not displayed */
	Preload                      bool     `protobuf:"varint,7,opt,name=preload,proto3" json:"preload,omitempty"`
	// contains filtered or unexported fields
}

func (*BelongsToOptions) Descriptor deprecated

func (*BelongsToOptions) Descriptor() ([]byte, []int)

Deprecated: Use BelongsToOptions.ProtoReflect.Descriptor instead.

func (*BelongsToOptions) GetAssociationForeignkey

func (x *BelongsToOptions) GetAssociationForeignkey() string

func (*BelongsToOptions) GetAssociationSaveReference

func (x *BelongsToOptions) GetAssociationSaveReference() bool

func (*BelongsToOptions) GetDisableAssociationAutocreate

func (x *BelongsToOptions) GetDisableAssociationAutocreate() bool

func (*BelongsToOptions) GetDisableAssociationAutoupdate

func (x *BelongsToOptions) GetDisableAssociationAutoupdate() bool

func (*BelongsToOptions) GetForeignkey

func (x *BelongsToOptions) GetForeignkey() string

func (*BelongsToOptions) GetForeignkeyTag

func (x *BelongsToOptions) GetForeignkeyTag() *GormTag

func (*BelongsToOptions) GetPreload

func (x *BelongsToOptions) GetPreload() bool

func (*BelongsToOptions) ProtoMessage

func (*BelongsToOptions) ProtoMessage()

func (*BelongsToOptions) ProtoReflect

func (x *BelongsToOptions) ProtoReflect() protoreflect.Message

func (*BelongsToOptions) Reset

func (x *BelongsToOptions) Reset()

func (*BelongsToOptions) String

func (x *BelongsToOptions) String() string

type BigInt

type BigInt struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*BigInt) Descriptor deprecated

func (*BigInt) Descriptor() ([]byte, []int)

Deprecated: Use BigInt.ProtoReflect.Descriptor instead.

func (*BigInt) GetValue

func (x *BigInt) GetValue() string

func (*BigInt) MarshalJSONPB

func (m *BigInt) MarshalJSONPB(*jsonpb.Marshaler) ([]byte, error)

MarshalJSONPB overloads UUID's standard PB -> JSON conversion

func (*BigInt) ProtoMessage

func (*BigInt) ProtoMessage()

func (*BigInt) ProtoReflect

func (x *BigInt) ProtoReflect() protoreflect.Message

func (*BigInt) Reset

func (x *BigInt) Reset()

func (*BigInt) String

func (x *BigInt) String() string

func (*BigInt) UnmarshalJSONPB

func (m *BigInt) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, data []byte) error

UnmarshalJSONPB overloads UUID's standard JSON -> PB conversion.

type Decimal

type Decimal struct {
	Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	Scale int32 `protobuf:"varint,2,opt,name=scale,proto3" json:"scale,omitempty"`
	// contains filtered or unexported fields
}

func FromDecimal

func FromDecimal(d decimal.Decimal) *Decimal

func FromNullDecimal

func FromNullDecimal(d decimal.NullDecimal) *Decimal

func (*Decimal) Descriptor deprecated

func (*Decimal) Descriptor() ([]byte, []int)

Deprecated: Use Decimal.ProtoReflect.Descriptor instead.

func (*Decimal) GetScale

func (x *Decimal) GetScale() int32

func (*Decimal) GetValue

func (x *Decimal) GetValue() int64

func (*Decimal) ProtoMessage

func (*Decimal) ProtoMessage()

func (*Decimal) ProtoReflect

func (x *Decimal) ProtoReflect() protoreflect.Message

func (*Decimal) Reset

func (x *Decimal) Reset()

func (*Decimal) String

func (x *Decimal) String() string

func (*Decimal) ToDecimal

func (d *Decimal) ToDecimal() decimal.Decimal

func (*Decimal) ToNullDecimal

func (d *Decimal) ToNullDecimal() decimal.NullDecimal

type ExtraField

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

func (*ExtraField) Descriptor() ([]byte, []int)

Deprecated: Use ExtraField.ProtoReflect.Descriptor instead.

func (*ExtraField) GetName

func (x *ExtraField) GetName() string

func (*ExtraField) GetPackage

func (x *ExtraField) GetPackage() string

func (*ExtraField) GetTag

func (x *ExtraField) GetTag() *GormTag

func (*ExtraField) GetType

func (x *ExtraField) GetType() string

func (*ExtraField) ProtoMessage

func (*ExtraField) ProtoMessage()

func (*ExtraField) ProtoReflect

func (x *ExtraField) ProtoReflect() protoreflect.Message

func (*ExtraField) Reset

func (x *ExtraField) Reset()

func (*ExtraField) String

func (x *ExtraField) String() string

type GormFieldOptions

type GormFieldOptions struct {
	Tag  *GormTag `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
	Drop bool     `protobuf:"varint,2,opt,name=drop,proto3" json:"drop,omitempty"`
	// Types that are assignable 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,proto3" json:"reference_of,omitempty"`
	Nilable     bool                           `protobuf:"varint,8,opt,name=nilable,proto3" json:"nilable,omitempty"` // nilable is for nil type
	// contains filtered or unexported fields
}

func (*GormFieldOptions) Descriptor deprecated

func (*GormFieldOptions) Descriptor() ([]byte, []int)

Deprecated: Use GormFieldOptions.ProtoReflect.Descriptor instead.

func (*GormFieldOptions) GetAssociation

func (m *GormFieldOptions) GetAssociation() isGormFieldOptions_Association

func (*GormFieldOptions) GetBelongsTo

func (x *GormFieldOptions) GetBelongsTo() *BelongsToOptions

func (*GormFieldOptions) GetDrop

func (x *GormFieldOptions) GetDrop() bool

func (*GormFieldOptions) GetHasMany

func (x *GormFieldOptions) GetHasMany() *HasManyOptions

func (*GormFieldOptions) GetHasOne

func (x *GormFieldOptions) GetHasOne() *HasOneOptions

func (*GormFieldOptions) GetManyToMany

func (x *GormFieldOptions) GetManyToMany() *ManyToManyOptions

func (*GormFieldOptions) GetNilable

func (x *GormFieldOptions) GetNilable() bool

func (*GormFieldOptions) GetReferenceOf

func (x *GormFieldOptions) GetReferenceOf() string

func (*GormFieldOptions) GetTag

func (x *GormFieldOptions) GetTag() *GormTag

func (*GormFieldOptions) ProtoMessage

func (*GormFieldOptions) ProtoMessage()

func (*GormFieldOptions) ProtoReflect

func (x *GormFieldOptions) ProtoReflect() protoreflect.Message

func (*GormFieldOptions) Reset

func (x *GormFieldOptions) Reset()

func (*GormFieldOptions) String

func (x *GormFieldOptions) String() string

type GormFieldOptions_BelongsTo

type GormFieldOptions_BelongsTo struct {
	BelongsTo *BelongsToOptions `protobuf:"bytes,4,opt,name=belongs_to,json=belongsTo,proto3,oneof"`
}

type GormFieldOptions_HasMany

type GormFieldOptions_HasMany struct {
	HasMany *HasManyOptions `protobuf:"bytes,5,opt,name=has_many,json=hasMany,proto3,oneof"`
}

type GormFieldOptions_HasOne

type GormFieldOptions_HasOne struct {
	HasOne *HasOneOptions `protobuf:"bytes,3,opt,name=has_one,json=hasOne,proto3,oneof"`
}

type GormFieldOptions_ManyToMany

type GormFieldOptions_ManyToMany struct {
	ManyToMany *ManyToManyOptions `protobuf:"bytes,6,opt,name=many_to_many,json=manyToMany,proto3,oneof"`
}

type GormFileOptions

type GormFileOptions struct {
	// contains filtered or unexported fields
}

func (*GormFileOptions) Descriptor deprecated

func (*GormFileOptions) Descriptor() ([]byte, []int)

Deprecated: Use GormFileOptions.ProtoReflect.Descriptor instead.

func (*GormFileOptions) ProtoMessage

func (*GormFileOptions) ProtoMessage()

func (*GormFileOptions) ProtoReflect

func (x *GormFileOptions) ProtoReflect() protoreflect.Message

func (*GormFileOptions) Reset

func (x *GormFileOptions) Reset()

func (*GormFileOptions) String

func (x *GormFileOptions) String() string

type GormMessageOptions

type GormMessageOptions struct {
	Ormable      bool          `protobuf:"varint,1,opt,name=ormable,proto3" json:"ormable,omitempty"`
	Include      []*ExtraField `protobuf:"bytes,2,rep,name=include,proto3" json:"include,omitempty"`
	Table        string        `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"`
	MultiAccount bool          `protobuf:"varint,4,opt,name=multi_account,json=multiAccount,proto3" json:"multi_account,omitempty"`
	Json         bool          `protobuf:"varint,5,opt,name=json,proto3" json:"json,omitempty"`
	// contains filtered or unexported fields
}

func (*GormMessageOptions) Descriptor deprecated

func (*GormMessageOptions) Descriptor() ([]byte, []int)

Deprecated: Use GormMessageOptions.ProtoReflect.Descriptor instead.

func (*GormMessageOptions) GetInclude

func (x *GormMessageOptions) GetInclude() []*ExtraField

func (*GormMessageOptions) GetJson

func (x *GormMessageOptions) GetJson() bool

func (*GormMessageOptions) GetMultiAccount

func (x *GormMessageOptions) GetMultiAccount() bool

func (*GormMessageOptions) GetOrmable

func (x *GormMessageOptions) GetOrmable() bool

func (*GormMessageOptions) GetTable

func (x *GormMessageOptions) GetTable() string

func (*GormMessageOptions) ProtoMessage

func (*GormMessageOptions) ProtoMessage()

func (*GormMessageOptions) ProtoReflect

func (x *GormMessageOptions) ProtoReflect() protoreflect.Message

func (*GormMessageOptions) Reset

func (x *GormMessageOptions) Reset()

func (*GormMessageOptions) String

func (x *GormMessageOptions) String() string

type GormTag

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"`
	PrimaryKey                     bool   `protobuf:"varint,5,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,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"`
	Foreignkey                     string `protobuf:"bytes,15,opt,name=foreignkey,proto3" json:"foreignkey,omitempty"`
	AssociationForeignkey          string `protobuf:"bytes,16,opt,name=association_foreignkey,json=associationForeignkey,proto3" json:"association_foreignkey,omitempty"`
	ManyToMany                     string `protobuf:"bytes,17,opt,name=many_to_many,json=manyToMany,proto3" json:"many_to_many,omitempty"`
	JointableForeignkey            string `protobuf:"bytes,18,opt,name=jointable_foreignkey,json=jointableForeignkey,proto3" json:"jointable_foreignkey,omitempty"`
	AssociationJointableForeignkey string `` /* 154-byte string literal not displayed */
	DisableAssociationAutoupdate   bool   `` /* 149-byte string literal not displayed */
	DisableAssociationAutocreate   bool   `` /* 149-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"`
	// contains filtered or unexported fields
}

func (*GormTag) Descriptor deprecated

func (*GormTag) Descriptor() ([]byte, []int)

Deprecated: Use GormTag.ProtoReflect.Descriptor instead.

func (*GormTag) GetAssociationForeignkey

func (x *GormTag) GetAssociationForeignkey() string

func (*GormTag) GetAssociationJointableForeignkey

func (x *GormTag) GetAssociationJointableForeignkey() string

func (*GormTag) GetAssociationSaveReference

func (x *GormTag) GetAssociationSaveReference() bool

func (*GormTag) GetAutoIncrement

func (x *GormTag) GetAutoIncrement() bool

func (*GormTag) GetColumn

func (x *GormTag) GetColumn() string

func (*GormTag) GetDefault

func (x *GormTag) GetDefault() string

func (*GormTag) GetDisableAssociationAutocreate

func (x *GormTag) GetDisableAssociationAutocreate() bool

func (*GormTag) GetDisableAssociationAutoupdate

func (x *GormTag) GetDisableAssociationAutoupdate() bool

func (*GormTag) GetEmbedded

func (x *GormTag) GetEmbedded() bool

func (*GormTag) GetEmbeddedPrefix

func (x *GormTag) GetEmbeddedPrefix() string

func (*GormTag) GetForeignkey

func (x *GormTag) GetForeignkey() string

func (*GormTag) GetIgnore

func (x *GormTag) GetIgnore() bool

func (*GormTag) GetIndex

func (x *GormTag) GetIndex() string

func (*GormTag) GetJointableForeignkey

func (x *GormTag) GetJointableForeignkey() string

func (*GormTag) GetManyToMany

func (x *GormTag) GetManyToMany() string

func (*GormTag) GetNotNull

func (x *GormTag) GetNotNull() bool

func (*GormTag) GetPrecision

func (x *GormTag) GetPrecision() int32

func (*GormTag) GetPreload

func (x *GormTag) GetPreload() bool

func (*GormTag) GetPrimaryKey

func (x *GormTag) GetPrimaryKey() bool

func (*GormTag) GetSerializer

func (x *GormTag) GetSerializer() string

func (*GormTag) GetSize

func (x *GormTag) GetSize() int32

func (*GormTag) GetType

func (x *GormTag) GetType() string

func (*GormTag) GetUnique

func (x *GormTag) GetUnique() bool

func (*GormTag) GetUniqueIndex

func (x *GormTag) GetUniqueIndex() string

func (*GormTag) ProtoMessage

func (*GormTag) ProtoMessage()

func (*GormTag) ProtoReflect

func (x *GormTag) ProtoReflect() protoreflect.Message

func (*GormTag) Reset

func (x *GormTag) Reset()

func (*GormTag) String

func (x *GormTag) String() string

type HasManyOptions

type HasManyOptions struct {
	Foreignkey                   string   `protobuf:"bytes,1,opt,name=foreignkey,proto3" json:"foreignkey,omitempty"`
	ForeignkeyTag                *GormTag `protobuf:"bytes,2,opt,name=foreignkey_tag,json=foreignkeyTag,proto3" json:"foreignkey_tag,omitempty"`
	AssociationForeignkey        string   `protobuf:"bytes,3,opt,name=association_foreignkey,json=associationForeignkey,proto3" json:"association_foreignkey,omitempty"`
	PositionField                string   `protobuf:"bytes,4,opt,name=position_field,json=positionField,proto3" json:"position_field,omitempty"`
	PositionFieldTag             *GormTag `protobuf:"bytes,5,opt,name=position_field_tag,json=positionFieldTag,proto3" json:"position_field_tag,omitempty"`
	DisableAssociationAutoupdate bool     `` /* 148-byte string literal not displayed */
	DisableAssociationAutocreate bool     `` /* 148-byte string literal not displayed */
	AssociationSaveReference     bool     `` /* 136-byte string literal not displayed */
	Preload                      bool     `protobuf:"varint,9,opt,name=preload,proto3" json:"preload,omitempty"`
	Replace                      bool     `protobuf:"varint,10,opt,name=replace,proto3" json:"replace,omitempty"`
	Append                       bool     `protobuf:"varint,11,opt,name=append,proto3" json:"append,omitempty"`
	Clear                        bool     `protobuf:"varint,12,opt,name=clear,proto3" json:"clear,omitempty"`
	// contains filtered or unexported fields
}

func (*HasManyOptions) Descriptor deprecated

func (*HasManyOptions) Descriptor() ([]byte, []int)

Deprecated: Use HasManyOptions.ProtoReflect.Descriptor instead.

func (*HasManyOptions) GetAppend

func (x *HasManyOptions) GetAppend() bool

func (*HasManyOptions) GetAssociationForeignkey

func (x *HasManyOptions) GetAssociationForeignkey() string

func (*HasManyOptions) GetAssociationSaveReference

func (x *HasManyOptions) GetAssociationSaveReference() bool

func (*HasManyOptions) GetClear

func (x *HasManyOptions) GetClear() bool

func (*HasManyOptions) GetDisableAssociationAutocreate

func (x *HasManyOptions) GetDisableAssociationAutocreate() bool

func (*HasManyOptions) GetDisableAssociationAutoupdate

func (x *HasManyOptions) GetDisableAssociationAutoupdate() bool

func (*HasManyOptions) GetForeignkey

func (x *HasManyOptions) GetForeignkey() string

func (*HasManyOptions) GetForeignkeyTag

func (x *HasManyOptions) GetForeignkeyTag() *GormTag

func (*HasManyOptions) GetPositionField

func (x *HasManyOptions) GetPositionField() string

func (*HasManyOptions) GetPositionFieldTag

func (x *HasManyOptions) GetPositionFieldTag() *GormTag

func (*HasManyOptions) GetPreload

func (x *HasManyOptions) GetPreload() bool

func (*HasManyOptions) GetReplace

func (x *HasManyOptions) GetReplace() bool

func (*HasManyOptions) ProtoMessage

func (*HasManyOptions) ProtoMessage()

func (*HasManyOptions) ProtoReflect

func (x *HasManyOptions) ProtoReflect() protoreflect.Message

func (*HasManyOptions) Reset

func (x *HasManyOptions) Reset()

func (*HasManyOptions) String

func (x *HasManyOptions) String() string

type HasOneOptions

type HasOneOptions struct {
	Foreignkey                   string   `protobuf:"bytes,1,opt,name=foreignkey,proto3" json:"foreignkey,omitempty"`
	ForeignkeyTag                *GormTag `protobuf:"bytes,2,opt,name=foreignkey_tag,json=foreignkeyTag,proto3" json:"foreignkey_tag,omitempty"`
	AssociationForeignkey        string   `protobuf:"bytes,3,opt,name=association_foreignkey,json=associationForeignkey,proto3" json:"association_foreignkey,omitempty"`
	DisableAssociationAutoupdate bool     `` /* 148-byte string literal not displayed */
	DisableAssociationAutocreate bool     `` /* 148-byte string literal not displayed */
	AssociationSaveReference     bool     `` /* 136-byte string literal not displayed */
	Preload                      bool     `protobuf:"varint,7,opt,name=preload,proto3" json:"preload,omitempty"`
	Replace                      bool     `protobuf:"varint,8,opt,name=replace,proto3" json:"replace,omitempty"`
	Append                       bool     `protobuf:"varint,9,opt,name=append,proto3" json:"append,omitempty"`
	Clear                        bool     `protobuf:"varint,10,opt,name=clear,proto3" json:"clear,omitempty"`
	// contains filtered or unexported fields
}

func (*HasOneOptions) Descriptor deprecated

func (*HasOneOptions) Descriptor() ([]byte, []int)

Deprecated: Use HasOneOptions.ProtoReflect.Descriptor instead.

func (*HasOneOptions) GetAppend

func (x *HasOneOptions) GetAppend() bool

func (*HasOneOptions) GetAssociationForeignkey

func (x *HasOneOptions) GetAssociationForeignkey() string

func (*HasOneOptions) GetAssociationSaveReference

func (x *HasOneOptions) GetAssociationSaveReference() bool

func (*HasOneOptions) GetClear

func (x *HasOneOptions) GetClear() bool

func (*HasOneOptions) GetDisableAssociationAutocreate

func (x *HasOneOptions) GetDisableAssociationAutocreate() bool

func (*HasOneOptions) GetDisableAssociationAutoupdate

func (x *HasOneOptions) GetDisableAssociationAutoupdate() bool

func (*HasOneOptions) GetForeignkey

func (x *HasOneOptions) GetForeignkey() string

func (*HasOneOptions) GetForeignkeyTag

func (x *HasOneOptions) GetForeignkeyTag() *GormTag

func (*HasOneOptions) GetPreload

func (x *HasOneOptions) GetPreload() bool

func (*HasOneOptions) GetReplace

func (x *HasOneOptions) GetReplace() bool

func (*HasOneOptions) ProtoMessage

func (*HasOneOptions) ProtoMessage()

func (*HasOneOptions) ProtoReflect

func (x *HasOneOptions) ProtoReflect() protoreflect.Message

func (*HasOneOptions) Reset

func (x *HasOneOptions) Reset()

func (*HasOneOptions) String

func (x *HasOneOptions) String() string

type Inet

type Inet struct {
	*net.IPNet
}

Inet is a special scannable type for an IP/Netmask

func ParseInet

func ParseInet(addr string) (*Inet, error)

ParseInet will return the Inet address/netmask represented in the input string

func (*Inet) Scan

func (i *Inet) Scan(value interface{}) error

Scan implements the scan part of the sql scannable interface

func (*Inet) String

func (i *Inet) String() string

func (Inet) Value

func (i Inet) Value() (driver.Value, error)

Value implements the Value part of the sql scannable interface

type InetValue

type InetValue struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*InetValue) Descriptor deprecated

func (*InetValue) Descriptor() ([]byte, []int)

Deprecated: Use InetValue.ProtoReflect.Descriptor instead.

func (*InetValue) GetValue

func (x *InetValue) GetValue() string

func (*InetValue) MarshalJSONPB

func (m *InetValue) MarshalJSONPB(*jsonpb.Marshaler) ([]byte, error)

MarshalJSONPB overloads InetValue's standard PB -> JSON conversion

func (*InetValue) ProtoMessage

func (*InetValue) ProtoMessage()

func (*InetValue) ProtoReflect

func (x *InetValue) ProtoReflect() protoreflect.Message

func (*InetValue) Reset

func (x *InetValue) Reset()

func (*InetValue) String

func (x *InetValue) String() string

func (*InetValue) UnmarshalJSONPB

func (m *InetValue) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, data []byte) error

UnmarshalJSONPB overloads InetValue's standard JSON -> PB conversion. If data is null, can't create nil object, but will marshal as null later

type JSONValue

type JSONValue struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*JSONValue) Descriptor deprecated

func (*JSONValue) Descriptor() ([]byte, []int)

Deprecated: Use JSONValue.ProtoReflect.Descriptor instead.

func (*JSONValue) GetValue

func (x *JSONValue) GetValue() string

func (*JSONValue) MarshalJSONPB

func (m *JSONValue) MarshalJSONPB(*jsonpb.Marshaler) ([]byte, error)

MarshalJSONPB overloads JSONValue's standard PB -> JSON conversion

func (*JSONValue) ProtoMessage

func (*JSONValue) ProtoMessage()

func (*JSONValue) ProtoReflect

func (x *JSONValue) ProtoReflect() protoreflect.Message

func (*JSONValue) Reset

func (x *JSONValue) Reset()

func (*JSONValue) String

func (x *JSONValue) String() string

func (*JSONValue) UnmarshalJSONPB

func (m *JSONValue) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, data []byte) error

UnmarshalJSONPB overloads JSONValue's standard JSON -> PB conversion. If data is null, can't create nil object, but will marshal as null later

type Jsonb

type Jsonb struct {
	json.RawMessage
}

func (*Jsonb) Scan

func (j *Jsonb) Scan(value interface{}) error

Scan scan value into Jsonb

func (Jsonb) Value

func (j Jsonb) Value() (driver.Value, error)

Value get value of Jsonb

type ManyToManyOptions

type ManyToManyOptions struct {
	Jointable                      string `protobuf:"bytes,1,opt,name=jointable,proto3" json:"jointable,omitempty"`
	Foreignkey                     string `protobuf:"bytes,2,opt,name=foreignkey,proto3" json:"foreignkey,omitempty"`
	JointableForeignkey            string `protobuf:"bytes,3,opt,name=jointable_foreignkey,json=jointableForeignkey,proto3" json:"jointable_foreignkey,omitempty"`
	AssociationForeignkey          string `protobuf:"bytes,4,opt,name=association_foreignkey,json=associationForeignkey,proto3" json:"association_foreignkey,omitempty"`
	AssociationJointableForeignkey string `` /* 153-byte string literal not displayed */
	DisableAssociationAutoupdate   bool   `` /* 148-byte string literal not displayed */
	DisableAssociationAutocreate   bool   `` /* 148-byte string literal not displayed */
	AssociationSaveReference       bool   `` /* 136-byte string literal not displayed */
	Preload                        bool   `protobuf:"varint,9,opt,name=preload,proto3" json:"preload,omitempty"`
	Replace                        bool   `protobuf:"varint,10,opt,name=replace,proto3" json:"replace,omitempty"`
	Append                         bool   `protobuf:"varint,11,opt,name=append,proto3" json:"append,omitempty"`
	Clear                          bool   `protobuf:"varint,13,opt,name=clear,proto3" json:"clear,omitempty"`
	// contains filtered or unexported fields
}

func (*ManyToManyOptions) Descriptor deprecated

func (*ManyToManyOptions) Descriptor() ([]byte, []int)

Deprecated: Use ManyToManyOptions.ProtoReflect.Descriptor instead.

func (*ManyToManyOptions) GetAppend

func (x *ManyToManyOptions) GetAppend() bool

func (*ManyToManyOptions) GetAssociationForeignkey

func (x *ManyToManyOptions) GetAssociationForeignkey() string

func (*ManyToManyOptions) GetAssociationJointableForeignkey

func (x *ManyToManyOptions) GetAssociationJointableForeignkey() string

func (*ManyToManyOptions) GetAssociationSaveReference

func (x *ManyToManyOptions) GetAssociationSaveReference() bool

func (*ManyToManyOptions) GetClear

func (x *ManyToManyOptions) GetClear() bool

func (*ManyToManyOptions) GetDisableAssociationAutocreate

func (x *ManyToManyOptions) GetDisableAssociationAutocreate() bool

func (*ManyToManyOptions) GetDisableAssociationAutoupdate

func (x *ManyToManyOptions) GetDisableAssociationAutoupdate() bool

func (*ManyToManyOptions) GetForeignkey

func (x *ManyToManyOptions) GetForeignkey() string

func (*ManyToManyOptions) GetJointable

func (x *ManyToManyOptions) GetJointable() string

func (*ManyToManyOptions) GetJointableForeignkey

func (x *ManyToManyOptions) GetJointableForeignkey() string

func (*ManyToManyOptions) GetPreload

func (x *ManyToManyOptions) GetPreload() bool

func (*ManyToManyOptions) GetReplace

func (x *ManyToManyOptions) GetReplace() bool

func (*ManyToManyOptions) ProtoMessage

func (*ManyToManyOptions) ProtoMessage()

func (*ManyToManyOptions) ProtoReflect

func (x *ManyToManyOptions) ProtoReflect() protoreflect.Message

func (*ManyToManyOptions) Reset

func (x *ManyToManyOptions) Reset()

func (*ManyToManyOptions) String

func (x *ManyToManyOptions) String() string

type MethodOptions

type MethodOptions struct {
	ObjectType string `protobuf:"bytes,1,opt,name=object_type,json=objectType,proto3" json:"object_type,omitempty"`
	// contains filtered or unexported fields
}

func (*MethodOptions) Descriptor deprecated

func (*MethodOptions) Descriptor() ([]byte, []int)

Deprecated: Use MethodOptions.ProtoReflect.Descriptor instead.

func (*MethodOptions) GetObjectType

func (x *MethodOptions) GetObjectType() string

func (*MethodOptions) ProtoMessage

func (*MethodOptions) ProtoMessage()

func (*MethodOptions) ProtoReflect

func (x *MethodOptions) ProtoReflect() protoreflect.Message

func (*MethodOptions) Reset

func (x *MethodOptions) Reset()

func (*MethodOptions) String

func (x *MethodOptions) String() string

type TimeOnly

type TimeOnly struct {
	Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func TimeOnlyByString

func TimeOnlyByString(s string) (*TimeOnly, error)

func (*TimeOnly) Descriptor deprecated

func (*TimeOnly) Descriptor() ([]byte, []int)

Deprecated: Use TimeOnly.ProtoReflect.Descriptor instead.

func (*TimeOnly) GetValue

func (x *TimeOnly) GetValue() uint32

func (*TimeOnly) MarshalJSONPB

func (t *TimeOnly) MarshalJSONPB(*jsonpb.Marshaler) ([]byte, error)

func (*TimeOnly) ProtoMessage

func (*TimeOnly) ProtoMessage()

func (*TimeOnly) ProtoReflect

func (x *TimeOnly) ProtoReflect() protoreflect.Message

func (*TimeOnly) Reset

func (x *TimeOnly) Reset()

func (*TimeOnly) String

func (x *TimeOnly) String() string

func (*TimeOnly) StringRepresentation

func (t *TimeOnly) StringRepresentation() (string, error)

func (*TimeOnly) UnmarshalJSONPB

func (t *TimeOnly) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, data []byte) error

func (*TimeOnly) Valid

func (t *TimeOnly) Valid() bool

type UUID

type UUID struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*UUID) Descriptor deprecated

func (*UUID) Descriptor() ([]byte, []int)

Deprecated: Use UUID.ProtoReflect.Descriptor instead.

func (*UUID) GetValue

func (x *UUID) GetValue() string

func (*UUID) MarshalJSONPB

func (m *UUID) MarshalJSONPB(*jsonpb.Marshaler) ([]byte, error)

MarshalJSONPB overloads UUID's standard PB -> JSON conversion

func (*UUID) ProtoMessage

func (*UUID) ProtoMessage()

func (*UUID) ProtoReflect

func (x *UUID) ProtoReflect() protoreflect.Message

func (*UUID) Reset

func (x *UUID) Reset()

func (*UUID) String

func (x *UUID) String() string

func (*UUID) UnmarshalJSONPB

func (m *UUID) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, data []byte) error

UnmarshalJSONPB overloads UUID's standard JSON -> PB conversion. If data is null, can't create nil object, but will marshal as null later

type UUIDValue

type UUIDValue struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*UUIDValue) Descriptor deprecated

func (*UUIDValue) Descriptor() ([]byte, []int)

Deprecated: Use UUIDValue.ProtoReflect.Descriptor instead.

func (*UUIDValue) GetValue

func (x *UUIDValue) GetValue() string

func (*UUIDValue) MarshalJSONPB

func (m *UUIDValue) MarshalJSONPB(*jsonpb.Marshaler) ([]byte, error)

MarshalJSONPB overloads UUIDValue's standard PB -> JSON conversion

func (*UUIDValue) ProtoMessage

func (*UUIDValue) ProtoMessage()

func (*UUIDValue) ProtoReflect

func (x *UUIDValue) ProtoReflect() protoreflect.Message

func (*UUIDValue) Reset

func (x *UUIDValue) Reset()

func (*UUIDValue) String

func (x *UUIDValue) String() string

func (*UUIDValue) UnmarshalJSONPB

func (m *UUIDValue) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, data []byte) error

UnmarshalJSONPB overloads UUIDValue's standard JSON -> PB conversion. If data is null, can't create nil object, but will marshal as null later

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL