ormpb

package
v0.0.25-alpha-01 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use GormTag.ProtoReflect.Descriptor instead.

func (*GormTag) GetAllowAll added in v0.0.13

func (x *GormTag) GetAllowAll() bool

func (*GormTag) GetAllowCreate added in v0.0.13

func (x *GormTag) GetAllowCreate() bool

func (*GormTag) GetAllowDetail added in v0.0.13

func (x *GormTag) GetAllowDetail() bool

func (*GormTag) GetAllowList added in v0.0.13

func (x *GormTag) GetAllowList() bool

func (*GormTag) GetAllowUpdate added in v0.0.13

func (x *GormTag) GetAllowUpdate() bool

func (*GormTag) GetAssociationAutocreate added in v0.0.13

func (x *GormTag) GetAssociationAutocreate() bool

func (*GormTag) GetAssociationAutoupdate added in v0.0.13

func (x *GormTag) GetAssociationAutoupdate() bool

func (*GormTag) GetAssociationFk added in v0.0.13

func (x *GormTag) GetAssociationFk() string

func (*GormTag) GetAssociationJointableFk added in v0.0.13

func (x *GormTag) GetAssociationJointableFk() string

func (*GormTag) GetAssociationSaveReference added in v0.0.13

func (x *GormTag) GetAssociationSaveReference() bool

func (*GormTag) GetAutoIncrement added in v0.0.13

func (x *GormTag) GetAutoIncrement() bool

func (*GormTag) GetColumn added in v0.0.13

func (x *GormTag) GetColumn() string

func (*GormTag) GetDefault added in v0.0.13

func (x *GormTag) GetDefault() string

func (*GormTag) GetEmbedded added in v0.0.13

func (x *GormTag) GetEmbedded() bool

func (*GormTag) GetEmbeddedPrefix added in v0.0.13

func (x *GormTag) GetEmbeddedPrefix() string

func (*GormTag) GetFk added in v0.0.13

func (x *GormTag) GetFk() string

func (*GormTag) GetIgnore added in v0.0.13

func (x *GormTag) GetIgnore() bool

func (*GormTag) GetIndex added in v0.0.13

func (x *GormTag) GetIndex() string

func (*GormTag) GetJointableFk added in v0.0.13

func (x *GormTag) GetJointableFk() string

func (*GormTag) GetManyToMany added in v0.0.13

func (x *GormTag) GetManyToMany() string

func (*GormTag) GetNotNull added in v0.0.13

func (x *GormTag) GetNotNull() bool

func (*GormTag) GetPk added in v0.0.13

func (x *GormTag) GetPk() bool

func (*GormTag) GetPrecision added in v0.0.13

func (x *GormTag) GetPrecision() int32

func (*GormTag) GetPreload added in v0.0.13

func (x *GormTag) GetPreload() bool

func (*GormTag) GetSerializer added in v0.0.13

func (x *GormTag) GetSerializer() string

func (*GormTag) GetSize added in v0.0.13

func (x *GormTag) GetSize() int32

func (*GormTag) GetType added in v0.0.13

func (x *GormTag) GetType() string

func (*GormTag) GetUnique added in v0.0.13

func (x *GormTag) GetUnique() bool

func (*GormTag) GetUniqueIndex added in v0.0.13

func (x *GormTag) GetUniqueIndex() string

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

func (*GormTag) Reset added in v0.0.13

func (x *GormTag) Reset()

func (*GormTag) String added in v0.0.13

func (x *GormTag) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Model.ProtoReflect.Descriptor instead.

func (*Model) GetCreatedAt added in v0.0.13

func (x *Model) GetCreatedAt() int64

func (*Model) GetDeletedAt added in v0.0.13

func (x *Model) GetDeletedAt() int64

func (*Model) GetId added in v0.0.13

func (x *Model) GetId() uint64

func (*Model) GetUpdatedAt added in v0.0.13

func (x *Model) GetUpdatedAt() int64

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

func (*Model) Reset added in v0.0.13

func (x *Model) Reset()

func (*Model) String added in v0.0.13

func (x *Model) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Protobuf.ProtoReflect.Descriptor instead.

func (*Protobuf) GetName added in v0.0.13

func (x *Protobuf) GetName() string

func (*Protobuf) GetNumber added in v0.0.13

func (x *Protobuf) GetNumber() int32

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

func (*Protobuf) Reset added in v0.0.13

func (x *Protobuf) Reset()

func (*Protobuf) String added in v0.0.13

func (x *Protobuf) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Timestamp.ProtoReflect.Descriptor instead.

func (*Timestamp) GetTimestamp

func (x *Timestamp) GetTimestamp() *timestamppb.Timestamp

func (*Timestamp) ProtoMessage

func (*Timestamp) ProtoMessage()

func (*Timestamp) ProtoReflect

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

func (*Timestamp) Reset

func (x *Timestamp) Reset()

func (*Timestamp) String

func (x *Timestamp) String() string

Jump to

Keyboard shortcuts

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