Documentation
¶
Index ¶
- Variables
- type MethodOptions
- func (*MethodOptions) Descriptor() ([]byte, []int)
- func (m *MethodOptions) GetObjectType() string
- func (*MethodOptions) ProtoMessage()
- func (m *MethodOptions) Reset()
- func (m *MethodOptions) String() string
- func (m *MethodOptions) XXX_DiscardUnknown()
- func (m *MethodOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MethodOptions) XXX_Merge(src proto.Message)
- func (m *MethodOptions) XXX_Size() int
- func (m *MethodOptions) XXX_Unmarshal(b []byte) error
- type Relation
- func (*Relation) Descriptor() ([]byte, []int)
- func (m *Relation) GetField() string
- func (m *Relation) GetReference() string
- func (*Relation) ProtoMessage()
- func (m *Relation) Reset()
- func (m *Relation) String() string
- func (m *Relation) XXX_DiscardUnknown()
- func (m *Relation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Relation) XXX_Merge(src proto.Message)
- func (m *Relation) XXX_Size() int
- func (m *Relation) XXX_Unmarshal(b []byte) error
- type StructifyDBOptions
- func (*StructifyDBOptions) Descriptor() ([]byte, []int)
- func (m *StructifyDBOptions) GetProvider() string
- func (m *StructifyDBOptions) GetUrl() string
- func (m *StructifyDBOptions) GetUrlEnv() string
- func (*StructifyDBOptions) ProtoMessage()
- func (m *StructifyDBOptions) Reset()
- func (m *StructifyDBOptions) String() string
- func (m *StructifyDBOptions) XXX_DiscardUnknown()
- func (m *StructifyDBOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StructifyDBOptions) XXX_Merge(src proto.Message)
- func (m *StructifyDBOptions) XXX_Size() int
- func (m *StructifyDBOptions) XXX_Unmarshal(b []byte) error
- type StructifyFieldOptions
- func (*StructifyFieldOptions) Descriptor() ([]byte, []int)
- func (m *StructifyFieldOptions) GetAutoIncrement() bool
- func (m *StructifyFieldOptions) GetDefault() string
- func (m *StructifyFieldOptions) GetIndex() bool
- func (m *StructifyFieldOptions) GetJson() bool
- func (m *StructifyFieldOptions) GetNullable() bool
- func (m *StructifyFieldOptions) GetPrimaryKey() bool
- func (m *StructifyFieldOptions) GetRelation() *Relation
- func (m *StructifyFieldOptions) GetSkip() bool
- func (m *StructifyFieldOptions) GetUnique() bool
- func (m *StructifyFieldOptions) GetUuid() bool
- func (*StructifyFieldOptions) ProtoMessage()
- func (m *StructifyFieldOptions) Reset()
- func (m *StructifyFieldOptions) String() string
- func (m *StructifyFieldOptions) XXX_DiscardUnknown()
- func (m *StructifyFieldOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StructifyFieldOptions) XXX_Merge(src proto.Message)
- func (m *StructifyFieldOptions) XXX_Size() int
- func (m *StructifyFieldOptions) XXX_Unmarshal(b []byte) error
- type StructifyMessageOptions
- func (*StructifyMessageOptions) Descriptor() ([]byte, []int)
- func (m *StructifyMessageOptions) GetComment() string
- func (m *StructifyMessageOptions) GetTable() string
- func (*StructifyMessageOptions) ProtoMessage()
- func (m *StructifyMessageOptions) Reset()
- func (m *StructifyMessageOptions) String() string
- func (m *StructifyMessageOptions) XXX_DiscardUnknown()
- func (m *StructifyMessageOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StructifyMessageOptions) XXX_Merge(src proto.Message)
- func (m *StructifyMessageOptions) XXX_Size() int
- func (m *StructifyMessageOptions) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var E_Db = &proto.ExtensionDesc{ ExtendedType: (*descriptorpb.FileOptions)(nil), ExtensionType: (*StructifyDBOptions)(nil), Field: 50002, Name: "structify.db", Tag: "bytes,50002,opt,name=db", Filename: "plugin/options/structify.proto", }
View Source
var E_Field = &proto.ExtensionDesc{ ExtendedType: (*descriptorpb.FieldOptions)(nil), ExtensionType: (*StructifyFieldOptions)(nil), Field: 99432, Name: "structify.field", Tag: "bytes,99432,opt,name=field", Filename: "plugin/options/structify.proto", }
View Source
var E_Method = &proto.ExtensionDesc{ ExtendedType: (*descriptorpb.MethodOptions)(nil), ExtensionType: (*MethodOptions)(nil), Field: 99432, Name: "structify.method", Tag: "bytes,99432,opt,name=method", Filename: "plugin/options/structify.proto", }
View Source
var E_Opts = &proto.ExtensionDesc{ ExtendedType: (*descriptorpb.MessageOptions)(nil), ExtensionType: (*StructifyMessageOptions)(nil), Field: 99432, Name: "structify.opts", Tag: "bytes,99432,opt,name=opts", Filename: "plugin/options/structify.proto", }
Functions ¶
This section is empty.
Types ¶
type MethodOptions ¶
type MethodOptions struct {
ObjectType string `protobuf:"bytes,1,opt,name=object_type,json=objectType,proto3" json:"object_type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
MethodOptions defines the method options
func (*MethodOptions) Descriptor ¶
func (*MethodOptions) Descriptor() ([]byte, []int)
func (*MethodOptions) GetObjectType ¶
func (m *MethodOptions) GetObjectType() string
func (*MethodOptions) ProtoMessage ¶
func (*MethodOptions) ProtoMessage()
func (*MethodOptions) Reset ¶
func (m *MethodOptions) Reset()
func (*MethodOptions) String ¶
func (m *MethodOptions) String() string
func (*MethodOptions) XXX_DiscardUnknown ¶
func (m *MethodOptions) XXX_DiscardUnknown()
func (*MethodOptions) XXX_Marshal ¶
func (m *MethodOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MethodOptions) XXX_Merge ¶
func (m *MethodOptions) XXX_Merge(src proto.Message)
func (*MethodOptions) XXX_Size ¶
func (m *MethodOptions) XXX_Size() int
func (*MethodOptions) XXX_Unmarshal ¶
func (m *MethodOptions) XXX_Unmarshal(b []byte) error
type Relation ¶
type Relation struct {
// field defines the field name
Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
// reference defines the reference table
Reference string `protobuf:"bytes,2,opt,name=reference,proto3" json:"reference,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
Relation defines the relation between two tables
func (*Relation) Descriptor ¶
func (*Relation) GetReference ¶
func (*Relation) ProtoMessage ¶
func (*Relation) ProtoMessage()
func (*Relation) XXX_DiscardUnknown ¶
func (m *Relation) XXX_DiscardUnknown()
func (*Relation) XXX_Marshal ¶
func (*Relation) XXX_Unmarshal ¶
type StructifyDBOptions ¶
type StructifyDBOptions struct {
Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
UrlEnv string `protobuf:"bytes,3,opt,name=url_env,json=urlEnv,proto3" json:"url_env,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
StructifyDBOptions defines the options for the database connection
func (*StructifyDBOptions) Descriptor ¶
func (*StructifyDBOptions) Descriptor() ([]byte, []int)
func (*StructifyDBOptions) GetProvider ¶
func (m *StructifyDBOptions) GetProvider() string
func (*StructifyDBOptions) GetUrl ¶
func (m *StructifyDBOptions) GetUrl() string
func (*StructifyDBOptions) GetUrlEnv ¶
func (m *StructifyDBOptions) GetUrlEnv() string
func (*StructifyDBOptions) ProtoMessage ¶
func (*StructifyDBOptions) ProtoMessage()
func (*StructifyDBOptions) Reset ¶
func (m *StructifyDBOptions) Reset()
func (*StructifyDBOptions) String ¶
func (m *StructifyDBOptions) String() string
func (*StructifyDBOptions) XXX_DiscardUnknown ¶
func (m *StructifyDBOptions) XXX_DiscardUnknown()
func (*StructifyDBOptions) XXX_Marshal ¶
func (m *StructifyDBOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StructifyDBOptions) XXX_Merge ¶
func (m *StructifyDBOptions) XXX_Merge(src proto.Message)
func (*StructifyDBOptions) XXX_Size ¶
func (m *StructifyDBOptions) XXX_Size() int
func (*StructifyDBOptions) XXX_Unmarshal ¶
func (m *StructifyDBOptions) XXX_Unmarshal(b []byte) error
type StructifyFieldOptions ¶
type StructifyFieldOptions struct {
// primary_key defines the field as the primary key
PrimaryKey bool `protobuf:"varint,1,opt,name=primary_key,json=primaryKey,proto3" json:"primary_key,omitempty"`
// auto_increment defines the field as auto increment
AutoIncrement bool `protobuf:"varint,2,opt,name=auto_increment,json=autoIncrement,proto3" json:"auto_increment,omitempty"`
// unique defines the field as unique
Unique bool `protobuf:"varint,3,opt,name=unique,proto3" json:"unique,omitempty"`
// uuid defines the field as uuid
Uuid bool `protobuf:"varint,4,opt,name=uuid,proto3" json:"uuid,omitempty"`
// index defines the field as index
Index bool `protobuf:"varint,5,opt,name=index,proto3" json:"index,omitempty"`
// skip defines the field as skip
Skip bool `protobuf:"varint,6,opt,name=skip,proto3" json:"skip,omitempty"`
// nullable defines the field as nullable
Nullable bool `protobuf:"varint,7,opt,name=nullable,proto3" json:"nullable,omitempty"`
// default defines the field as default
Default string `protobuf:"bytes,8,opt,name=default,proto3" json:"default,omitempty"`
// relation defines the field as relation
// 1:1, 1:n, n:1, n:n
Relation *Relation `protobuf:"bytes,9,opt,name=relation,proto3" json:"relation,omitempty"`
// json defines the field as json
Json bool `protobuf:"varint,10,opt,name=json,proto3" json:"json,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
StructifyFieldOptions defines database field options
func (*StructifyFieldOptions) Descriptor ¶
func (*StructifyFieldOptions) Descriptor() ([]byte, []int)
func (*StructifyFieldOptions) GetAutoIncrement ¶
func (m *StructifyFieldOptions) GetAutoIncrement() bool
func (*StructifyFieldOptions) GetDefault ¶
func (m *StructifyFieldOptions) GetDefault() string
func (*StructifyFieldOptions) GetIndex ¶
func (m *StructifyFieldOptions) GetIndex() bool
func (*StructifyFieldOptions) GetJson ¶
func (m *StructifyFieldOptions) GetJson() bool
func (*StructifyFieldOptions) GetNullable ¶
func (m *StructifyFieldOptions) GetNullable() bool
func (*StructifyFieldOptions) GetPrimaryKey ¶
func (m *StructifyFieldOptions) GetPrimaryKey() bool
func (*StructifyFieldOptions) GetRelation ¶
func (m *StructifyFieldOptions) GetRelation() *Relation
func (*StructifyFieldOptions) GetSkip ¶
func (m *StructifyFieldOptions) GetSkip() bool
func (*StructifyFieldOptions) GetUnique ¶
func (m *StructifyFieldOptions) GetUnique() bool
func (*StructifyFieldOptions) GetUuid ¶
func (m *StructifyFieldOptions) GetUuid() bool
func (*StructifyFieldOptions) ProtoMessage ¶
func (*StructifyFieldOptions) ProtoMessage()
func (*StructifyFieldOptions) Reset ¶
func (m *StructifyFieldOptions) Reset()
func (*StructifyFieldOptions) String ¶
func (m *StructifyFieldOptions) String() string
func (*StructifyFieldOptions) XXX_DiscardUnknown ¶
func (m *StructifyFieldOptions) XXX_DiscardUnknown()
func (*StructifyFieldOptions) XXX_Marshal ¶
func (m *StructifyFieldOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StructifyFieldOptions) XXX_Merge ¶
func (m *StructifyFieldOptions) XXX_Merge(src proto.Message)
func (*StructifyFieldOptions) XXX_Size ¶
func (m *StructifyFieldOptions) XXX_Size() int
func (*StructifyFieldOptions) XXX_Unmarshal ¶
func (m *StructifyFieldOptions) XXX_Unmarshal(b []byte) error
type StructifyMessageOptions ¶
type StructifyMessageOptions struct {
Table string `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
StructifyMessageOptions defines database table and comment
func (*StructifyMessageOptions) Descriptor ¶
func (*StructifyMessageOptions) Descriptor() ([]byte, []int)
func (*StructifyMessageOptions) GetComment ¶
func (m *StructifyMessageOptions) GetComment() string
func (*StructifyMessageOptions) GetTable ¶
func (m *StructifyMessageOptions) GetTable() string
func (*StructifyMessageOptions) ProtoMessage ¶
func (*StructifyMessageOptions) ProtoMessage()
func (*StructifyMessageOptions) Reset ¶
func (m *StructifyMessageOptions) Reset()
func (*StructifyMessageOptions) String ¶
func (m *StructifyMessageOptions) String() string
func (*StructifyMessageOptions) XXX_DiscardUnknown ¶
func (m *StructifyMessageOptions) XXX_DiscardUnknown()
func (*StructifyMessageOptions) XXX_Marshal ¶
func (m *StructifyMessageOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StructifyMessageOptions) XXX_Merge ¶
func (m *StructifyMessageOptions) XXX_Merge(src proto.Message)
func (*StructifyMessageOptions) XXX_Size ¶
func (m *StructifyMessageOptions) XXX_Size() int
func (*StructifyMessageOptions) XXX_Unmarshal ¶
func (m *StructifyMessageOptions) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.