Documentation
¶
Index ¶
- Variables
- type CatoOptions
- func (*CatoOptions) Descriptor() ([]byte, []int)deprecated
- func (x *CatoOptions) GetCatoPackage() string
- func (x *CatoOptions) GetHttpHandlerPackage() string
- func (x *CatoOptions) GetRdbRepoPackage() string
- func (x *CatoOptions) GetRepoPackage() string
- func (*CatoOptions) ProtoMessage()
- func (x *CatoOptions) ProtoReflect() protoreflect.Message
- func (x *CatoOptions) Reset()
- func (x *CatoOptions) String() string
- type ColumnDescriptor
- func (*ColumnDescriptor) Descriptor() ([]byte, []int)deprecated
- func (x *ColumnDescriptor) GetAutoIncr() bool
- func (x *ColumnDescriptor) GetColGroup() string
- func (x *ColumnDescriptor) GetComment() string
- func (x *ColumnDescriptor) GetDefault() string
- func (x *ColumnDescriptor) GetFieldName() string
- func (x *ColumnDescriptor) GetFieldType() string
- func (x *ColumnDescriptor) GetNullable() bool
- func (*ColumnDescriptor) ProtoMessage()
- func (x *ColumnDescriptor) ProtoReflect() protoreflect.Message
- func (x *ColumnDescriptor) Reset()
- func (x *ColumnDescriptor) String() string
- type ColumnOption
- func (*ColumnOption) Descriptor() ([]byte, []int)deprecated
- func (x *ColumnOption) GetColDesc() *ColumnDescriptor
- func (x *ColumnOption) GetJsonTrans() *JsonTransOption
- func (x *ColumnOption) GetKeys() []*DBKey
- func (x *ColumnOption) GetTags() []*FieldTag
- func (x *ColumnOption) GetTimeOption() *TimeOption
- func (*ColumnOption) ProtoMessage()
- func (x *ColumnOption) ProtoReflect() protoreflect.Message
- func (x *ColumnOption) Reset()
- func (x *ColumnOption) String() string
- type DBKey
- type DBKeyType
- type DbOption
- type DbTypeEnum
- type DdlOptions
- func (*DdlOptions) Descriptor() ([]byte, []int)deprecated
- func (x *DdlOptions) GetLocation() string
- func (x *DdlOptions) GetMysqlImplOpt() *MysqlImplDdlOpt
- func (x *DdlOptions) GetSqlType() string
- func (*DdlOptions) ProtoMessage()
- func (x *DdlOptions) ProtoReflect() protoreflect.Message
- func (x *DdlOptions) Reset()
- func (x *DdlOptions) String() string
- type FieldMapper
- func (FieldMapper) Descriptor() protoreflect.EnumDescriptor
- func (x FieldMapper) Enum() *FieldMapper
- func (FieldMapper) EnumDescriptor() ([]byte, []int)deprecated
- func (x FieldMapper) Number() protoreflect.EnumNumber
- func (x FieldMapper) String() string
- func (FieldMapper) Type() protoreflect.EnumType
- type FieldTag
- func (*FieldTag) Descriptor() ([]byte, []int)deprecated
- func (x *FieldTag) GetMapper() FieldMapper
- func (x *FieldTag) GetTagName() string
- func (x *FieldTag) GetTagValue() string
- func (*FieldTag) ProtoMessage()
- func (x *FieldTag) ProtoReflect() protoreflect.Message
- func (x *FieldTag) Reset()
- func (x *FieldTag) String() string
- type HttpOptions
- func (*HttpOptions) Descriptor() ([]byte, []int)deprecated
- func (x *HttpOptions) GetAsHttpService() bool
- func (x *HttpOptions) GetGroupPrefix() string
- func (*HttpOptions) ProtoMessage()
- func (x *HttpOptions) ProtoReflect() protoreflect.Message
- func (x *HttpOptions) Reset()
- func (x *HttpOptions) String() string
- type HttpParamFieldOption
- func (*HttpParamFieldOption) Descriptor() ([]byte, []int)deprecated
- func (x *HttpParamFieldOption) GetExample() string
- func (x *HttpParamFieldOption) GetExtraDesc() string
- func (x *HttpParamFieldOption) GetFormat() string
- func (x *HttpParamFieldOption) GetMust() bool
- func (x *HttpParamFieldOption) GetName() string
- func (x *HttpParamFieldOption) GetPattern() string
- func (x *HttpParamFieldOption) GetSkip() bool
- func (*HttpParamFieldOption) ProtoMessage()
- func (x *HttpParamFieldOption) ProtoReflect() protoreflect.Message
- func (x *HttpParamFieldOption) Reset()
- func (x *HttpParamFieldOption) String() string
- type HttpParamOption
- func (*HttpParamOption) Descriptor() ([]byte, []int)deprecated
- func (x *HttpParamOption) GetExample() string
- func (x *HttpParamOption) GetExtraDesc() string
- func (*HttpParamOption) ProtoMessage()
- func (x *HttpParamOption) ProtoReflect() protoreflect.Message
- func (x *HttpParamOption) Reset()
- func (x *HttpParamOption) String() string
- type ImplementOption
- func (*ImplementOption) Descriptor() ([]byte, []int)deprecated
- func (x *ImplementOption) GetFlatten() bool
- func (x *ImplementOption) GetGenerateConvertor() bool
- func (*ImplementOption) ProtoMessage()
- func (x *ImplementOption) ProtoReflect() protoreflect.Message
- func (x *ImplementOption) Reset()
- func (x *ImplementOption) String() string
- type JsonTransOption
- type MysqlImplDdlOpt
- func (*MysqlImplDdlOpt) Descriptor() ([]byte, []int)deprecated
- func (x *MysqlImplDdlOpt) GetCharset() string
- func (x *MysqlImplDdlOpt) GetComment() string
- func (x *MysqlImplDdlOpt) GetEngine() string
- func (*MysqlImplDdlOpt) ProtoMessage()
- func (x *MysqlImplDdlOpt) ProtoReflect() protoreflect.Message
- func (x *MysqlImplDdlOpt) Reset()
- func (x *MysqlImplDdlOpt) String() string
- type RouterOptions
- func (*RouterOptions) Descriptor() ([]byte, []int)deprecated
- func (x *RouterOptions) GetContentType() string
- func (x *RouterOptions) GetMethod() string
- func (x *RouterOptions) GetRouter() string
- func (*RouterOptions) ProtoMessage()
- func (x *RouterOptions) ProtoReflect() protoreflect.Message
- func (x *RouterOptions) Reset()
- func (x *RouterOptions) String() string
- type StructOption
- type TableNameOption
- func (*TableNameOption) Descriptor() ([]byte, []int)deprecated
- func (x *TableNameOption) GetLazyName() bool
- func (x *TableNameOption) GetSimpleName() string
- func (*TableNameOption) ProtoMessage()
- func (x *TableNameOption) ProtoReflect() protoreflect.Message
- func (x *TableNameOption) Reset()
- func (x *TableNameOption) String() string
- type TableOption
- func (*TableOption) Descriptor() ([]byte, []int)deprecated
- func (x *TableOption) GetFieldMapper() FieldMapper
- func (x *TableOption) GetNameOption() *TableNameOption
- func (*TableOption) ProtoMessage()
- func (x *TableOption) ProtoReflect() protoreflect.Message
- func (x *TableOption) Reset()
- func (x *TableOption) String() string
- type TimeOption
- func (*TimeOption) Descriptor() ([]byte, []int)deprecated
- func (x *TimeOption) GetTimeFormat() string
- func (x *TimeOption) GetUnixToTime() bool
- func (*TimeOption) ProtoMessage()
- func (x *TimeOption) ProtoReflect() protoreflect.Message
- func (x *TimeOption) Reset()
- func (x *TimeOption) String() string
Constants ¶
This section is empty.
Variables ¶
var ( DbTypeEnum_name = map[int32]string{ 0: "CATO_DB_TYPE_INVALID", 1: "CATO_DB_TYPE_MYSQL", 2: "CATO_DB_TYPE_POSTGRESQL", 3: "CATO_DB_TYPE_SQLITE3", } DbTypeEnum_value = map[string]int32{ "CATO_DB_TYPE_INVALID": 0, "CATO_DB_TYPE_MYSQL": 1, "CATO_DB_TYPE_POSTGRESQL": 2, "CATO_DB_TYPE_SQLITE3": 3, } )
Enum value maps for DbTypeEnum.
var ( DBKeyType_name = map[int32]string{ 0: "CATO_DB_KEY_TYPE_NO_KEY", 1: "CATO_DB_KEY_TYPE_INDEX", 2: "CATO_DB_KEY_TYPE_UNIQUE", 3: "CATO_DB_KEY_TYPE_COMBINE", 4: "CATO_DB_KEY_TYPE_PRIMARY", } DBKeyType_value = map[string]int32{ "CATO_DB_KEY_TYPE_NO_KEY": 0, "CATO_DB_KEY_TYPE_INDEX": 1, "CATO_DB_KEY_TYPE_UNIQUE": 2, "CATO_DB_KEY_TYPE_COMBINE": 3, "CATO_DB_KEY_TYPE_PRIMARY": 4, } )
Enum value maps for DBKeyType.
var ( // optional cato.db.DbOption db_opt = 60001; E_DbOpt = &file_cato_proto_extension_proto_extTypes[1] // optional cato.db.TableOption table_opt = 60002; E_TableOpt = &file_cato_proto_extension_proto_extTypes[2] // optional cato.db.DdlOptions ddl_opt = 60003; E_DdlOpt = &file_cato_proto_extension_proto_extTypes[3] // optional cato.struct.StructOption struct_opt = 61001; E_StructOpt = &file_cato_proto_extension_proto_extTypes[4] // optional cato.http.HttpParamOption http_param_opt = 62001; E_HttpParamOpt = &file_cato_proto_extension_proto_extTypes[5] )
Extension fields to descriptorpb.MessageOptions.
var ( // optional cato.db.ColumnOption column_opt = 70001; E_ColumnOpt = &file_cato_proto_extension_proto_extTypes[6] // optional cato.struct.ImplementOption impl_opt = 71001; E_ImplOpt = &file_cato_proto_extension_proto_extTypes[7] // optional cato.http.HttpParamFieldOption http_pf_opt = 72001; E_HttpPfOpt = &file_cato_proto_extension_proto_extTypes[8] )
Extension fields to descriptorpb.FieldOptions.
var ( FieldMapper_name = map[int32]string{ 0: "CATO_FIELD_MAPPER_NO_MAPPER", 1: "CATO_FIELD_MAPPER_CAMEL", 2: "CATO_FIELD_MAPPER_SNAKE_CASE", } FieldMapper_value = map[string]int32{ "CATO_FIELD_MAPPER_NO_MAPPER": 0, "CATO_FIELD_MAPPER_CAMEL": 1, "CATO_FIELD_MAPPER_SNAKE_CASE": 2, } )
Enum value maps for FieldMapper.
var (
// optional cato.defines.CatoOptions cato_opt = 50001;
E_CatoOpt = &file_cato_proto_extension_proto_extTypes[0]
)
Extension fields to descriptorpb.FileOptions.
var (
// optional cato.http.HttpOptions http_opt = 80001;
E_HttpOpt = &file_cato_proto_extension_proto_extTypes[9]
)
Extension fields to descriptorpb.ServiceOptions.
var (
// optional cato.http.RouterOptions router_opt = 90001;
E_RouterOpt = &file_cato_proto_extension_proto_extTypes[10]
)
Extension fields to descriptorpb.MethodOptions.
var File_cato_proto_db_proto protoreflect.FileDescriptor
var File_cato_proto_defines_proto protoreflect.FileDescriptor
var File_cato_proto_extension_proto protoreflect.FileDescriptor
var File_cato_proto_http_proto protoreflect.FileDescriptor
var File_cato_proto_struct_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CatoOptions ¶
type CatoOptions struct {
CatoPackage string `protobuf:"bytes,1,opt,name=cato_package,json=catoPackage,proto3" json:"cato_package,omitempty"`
RepoPackage string `protobuf:"bytes,2,opt,name=repo_package,json=repoPackage,proto3" json:"repo_package,omitempty"`
RdbRepoPackage string `protobuf:"bytes,3,opt,name=rdb_repo_package,json=rdbRepoPackage,proto3" json:"rdb_repo_package,omitempty"`
HttpHandlerPackage string `protobuf:"bytes,4,opt,name=http_handler_package,json=httpHandlerPackage,proto3" json:"http_handler_package,omitempty"`
// contains filtered or unexported fields
}
func (*CatoOptions) Descriptor
deprecated
func (*CatoOptions) Descriptor() ([]byte, []int)
Deprecated: Use CatoOptions.ProtoReflect.Descriptor instead.
func (*CatoOptions) GetCatoPackage ¶
func (x *CatoOptions) GetCatoPackage() string
func (*CatoOptions) GetHttpHandlerPackage ¶
func (x *CatoOptions) GetHttpHandlerPackage() string
func (*CatoOptions) GetRdbRepoPackage ¶
func (x *CatoOptions) GetRdbRepoPackage() string
func (*CatoOptions) GetRepoPackage ¶
func (x *CatoOptions) GetRepoPackage() string
func (*CatoOptions) ProtoMessage ¶
func (*CatoOptions) ProtoMessage()
func (*CatoOptions) ProtoReflect ¶
func (x *CatoOptions) ProtoReflect() protoreflect.Message
func (*CatoOptions) Reset ¶
func (x *CatoOptions) Reset()
func (*CatoOptions) String ¶
func (x *CatoOptions) String() string
type ColumnDescriptor ¶
type ColumnDescriptor struct {
FieldType string `protobuf:"bytes,1,opt,name=field_type,json=fieldType,proto3" json:"field_type,omitempty"`
FieldName string `protobuf:"bytes,2,opt,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"`
Nullable bool `protobuf:"varint,3,opt,name=nullable,proto3" json:"nullable,omitempty"`
Default string `protobuf:"bytes,4,opt,name=default,proto3" json:"default,omitempty"`
Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"`
// col_group will merge field into func Get{{GroupName}}Cols() []string
// for example:
//
// string a = 1; // field_name = "col_a", col_group = "example"
// string b = 2; // field_name = "col_b", col_group = "example"
//
// and the generated dto struct
// will has
//
// func GetExampleCols() []string {return []string{"col_a", "col_b"}}
ColGroup string `protobuf:"bytes,6,opt,name=col_group,json=colGroup,proto3" json:"col_group,omitempty"`
AutoIncr bool `protobuf:"varint,7,opt,name=auto_incr,json=autoIncr,proto3" json:"auto_incr,omitempty"`
// contains filtered or unexported fields
}
func (*ColumnDescriptor) Descriptor
deprecated
func (*ColumnDescriptor) Descriptor() ([]byte, []int)
Deprecated: Use ColumnDescriptor.ProtoReflect.Descriptor instead.
func (*ColumnDescriptor) GetAutoIncr ¶ added in v0.0.2
func (x *ColumnDescriptor) GetAutoIncr() bool
func (*ColumnDescriptor) GetColGroup ¶
func (x *ColumnDescriptor) GetColGroup() string
func (*ColumnDescriptor) GetComment ¶
func (x *ColumnDescriptor) GetComment() string
func (*ColumnDescriptor) GetDefault ¶
func (x *ColumnDescriptor) GetDefault() string
func (*ColumnDescriptor) GetFieldName ¶
func (x *ColumnDescriptor) GetFieldName() string
func (*ColumnDescriptor) GetFieldType ¶
func (x *ColumnDescriptor) GetFieldType() string
func (*ColumnDescriptor) GetNullable ¶
func (x *ColumnDescriptor) GetNullable() bool
func (*ColumnDescriptor) ProtoMessage ¶
func (*ColumnDescriptor) ProtoMessage()
func (*ColumnDescriptor) ProtoReflect ¶
func (x *ColumnDescriptor) ProtoReflect() protoreflect.Message
func (*ColumnDescriptor) Reset ¶
func (x *ColumnDescriptor) Reset()
func (*ColumnDescriptor) String ¶
func (x *ColumnDescriptor) String() string
type ColumnOption ¶
type ColumnOption struct {
JsonTrans *JsonTransOption `protobuf:"bytes,1,opt,name=json_trans,json=jsonTrans,proto3" json:"json_trans,omitempty"`
TimeOption *TimeOption `protobuf:"bytes,2,opt,name=time_option,json=timeOption,proto3" json:"time_option,omitempty"`
ColDesc *ColumnDescriptor `protobuf:"bytes,3,opt,name=col_desc,json=colDesc,proto3" json:"col_desc,omitempty"`
Keys []*DBKey `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty"`
Tags []*FieldTag `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
// contains filtered or unexported fields
}
func (*ColumnOption) Descriptor
deprecated
func (*ColumnOption) Descriptor() ([]byte, []int)
Deprecated: Use ColumnOption.ProtoReflect.Descriptor instead.
func (*ColumnOption) GetColDesc ¶
func (x *ColumnOption) GetColDesc() *ColumnDescriptor
func (*ColumnOption) GetJsonTrans ¶
func (x *ColumnOption) GetJsonTrans() *JsonTransOption
func (*ColumnOption) GetKeys ¶
func (x *ColumnOption) GetKeys() []*DBKey
func (*ColumnOption) GetTags ¶
func (x *ColumnOption) GetTags() []*FieldTag
func (*ColumnOption) GetTimeOption ¶
func (x *ColumnOption) GetTimeOption() *TimeOption
func (*ColumnOption) ProtoMessage ¶
func (*ColumnOption) ProtoMessage()
func (*ColumnOption) ProtoReflect ¶
func (x *ColumnOption) ProtoReflect() protoreflect.Message
func (*ColumnOption) Reset ¶
func (x *ColumnOption) Reset()
func (*ColumnOption) String ¶
func (x *ColumnOption) String() string
type DBKey ¶
type DBKey struct {
KeyName string `protobuf:"bytes,1,opt,name=key_name,json=keyName,proto3" json:"key_name,omitempty"`
KeyType DBKeyType `protobuf:"varint,2,opt,name=key_type,json=keyType,proto3,enum=cato.db.DBKeyType" json:"key_type,omitempty"`
// contains filtered or unexported fields
}
func (*DBKey) Descriptor
deprecated
func (*DBKey) GetKeyName ¶
func (*DBKey) GetKeyType ¶
func (*DBKey) ProtoMessage ¶
func (*DBKey) ProtoMessage()
func (*DBKey) ProtoReflect ¶
func (x *DBKey) ProtoReflect() protoreflect.Message
type DBKeyType ¶
type DBKeyType int32
func (DBKeyType) Descriptor ¶
func (DBKeyType) Descriptor() protoreflect.EnumDescriptor
func (DBKeyType) EnumDescriptor
deprecated
func (DBKeyType) Number ¶
func (x DBKeyType) Number() protoreflect.EnumNumber
func (DBKeyType) Type ¶
func (DBKeyType) Type() protoreflect.EnumType
type DbOption ¶
type DbOption struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
DbType DbTypeEnum `protobuf:"varint,2,opt,name=db_type,json=dbType,proto3,enum=cato.db.DbTypeEnum" json:"db_type,omitempty"`
// contains filtered or unexported fields
}
func (*DbOption) Descriptor
deprecated
func (*DbOption) GetDbType ¶ added in v0.0.5
func (x *DbOption) GetDbType() DbTypeEnum
func (*DbOption) ProtoMessage ¶
func (*DbOption) ProtoMessage()
func (*DbOption) ProtoReflect ¶
func (x *DbOption) ProtoReflect() protoreflect.Message
type DbTypeEnum ¶ added in v0.0.5
type DbTypeEnum int32
const ( DbTypeEnum_CATO_DB_TYPE_INVALID DbTypeEnum = 0 DbTypeEnum_CATO_DB_TYPE_MYSQL DbTypeEnum = 1 DbTypeEnum_CATO_DB_TYPE_POSTGRESQL DbTypeEnum = 2 DbTypeEnum_CATO_DB_TYPE_SQLITE3 DbTypeEnum = 3 )
func (DbTypeEnum) Descriptor ¶ added in v0.0.5
func (DbTypeEnum) Descriptor() protoreflect.EnumDescriptor
func (DbTypeEnum) Enum ¶ added in v0.0.5
func (x DbTypeEnum) Enum() *DbTypeEnum
func (DbTypeEnum) EnumDescriptor
deprecated
added in
v0.0.5
func (DbTypeEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use DbTypeEnum.Descriptor instead.
func (DbTypeEnum) Number ¶ added in v0.0.5
func (x DbTypeEnum) Number() protoreflect.EnumNumber
func (DbTypeEnum) String ¶ added in v0.0.5
func (x DbTypeEnum) String() string
func (DbTypeEnum) Type ¶ added in v0.0.5
func (DbTypeEnum) Type() protoreflect.EnumType
type DdlOptions ¶ added in v0.0.2
type DdlOptions struct {
SqlType string `protobuf:"bytes,1,opt,name=sql_type,json=sqlType,proto3" json:"sql_type,omitempty"`
Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
MysqlImplOpt *MysqlImplDdlOpt `protobuf:"bytes,3,opt,name=mysql_impl_opt,json=mysqlImplOpt,proto3" json:"mysql_impl_opt,omitempty"`
// contains filtered or unexported fields
}
func (*DdlOptions) Descriptor
deprecated
added in
v0.0.2
func (*DdlOptions) Descriptor() ([]byte, []int)
Deprecated: Use DdlOptions.ProtoReflect.Descriptor instead.
func (*DdlOptions) GetLocation ¶ added in v0.0.2
func (x *DdlOptions) GetLocation() string
func (*DdlOptions) GetMysqlImplOpt ¶ added in v0.0.2
func (x *DdlOptions) GetMysqlImplOpt() *MysqlImplDdlOpt
func (*DdlOptions) GetSqlType ¶ added in v0.0.2
func (x *DdlOptions) GetSqlType() string
func (*DdlOptions) ProtoMessage ¶ added in v0.0.2
func (*DdlOptions) ProtoMessage()
func (*DdlOptions) ProtoReflect ¶ added in v0.0.2
func (x *DdlOptions) ProtoReflect() protoreflect.Message
func (*DdlOptions) Reset ¶ added in v0.0.2
func (x *DdlOptions) Reset()
func (*DdlOptions) String ¶ added in v0.0.2
func (x *DdlOptions) String() string
type FieldMapper ¶
type FieldMapper int32
const ( FieldMapper_CATO_FIELD_MAPPER_NO_MAPPER FieldMapper = 0 FieldMapper_CATO_FIELD_MAPPER_CAMEL FieldMapper = 1 FieldMapper_CATO_FIELD_MAPPER_SNAKE_CASE FieldMapper = 2 )
func (FieldMapper) Descriptor ¶
func (FieldMapper) Descriptor() protoreflect.EnumDescriptor
func (FieldMapper) Enum ¶
func (x FieldMapper) Enum() *FieldMapper
func (FieldMapper) EnumDescriptor
deprecated
func (FieldMapper) EnumDescriptor() ([]byte, []int)
Deprecated: Use FieldMapper.Descriptor instead.
func (FieldMapper) Number ¶
func (x FieldMapper) Number() protoreflect.EnumNumber
func (FieldMapper) String ¶
func (x FieldMapper) String() string
func (FieldMapper) Type ¶
func (FieldMapper) Type() protoreflect.EnumType
type FieldTag ¶
type FieldTag struct {
TagName string `protobuf:"bytes,1,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"`
TagValue string `protobuf:"bytes,2,opt,name=tag_value,json=tagValue,proto3" json:"tag_value,omitempty"`
Mapper FieldMapper `protobuf:"varint,3,opt,name=mapper,proto3,enum=cato.struct.FieldMapper" json:"mapper,omitempty"`
// contains filtered or unexported fields
}
func (*FieldTag) Descriptor
deprecated
func (*FieldTag) GetMapper ¶
func (x *FieldTag) GetMapper() FieldMapper
func (*FieldTag) GetTagName ¶
func (*FieldTag) GetTagValue ¶
func (*FieldTag) ProtoMessage ¶
func (*FieldTag) ProtoMessage()
func (*FieldTag) ProtoReflect ¶
func (x *FieldTag) ProtoReflect() protoreflect.Message
type HttpOptions ¶
type HttpOptions struct {
GroupPrefix string `protobuf:"bytes,1,opt,name=group_prefix,json=groupPrefix,proto3" json:"group_prefix,omitempty"`
AsHttpService bool `protobuf:"varint,2,opt,name=as_http_service,json=asHttpService,proto3" json:"as_http_service,omitempty"`
// contains filtered or unexported fields
}
func (*HttpOptions) Descriptor
deprecated
func (*HttpOptions) Descriptor() ([]byte, []int)
Deprecated: Use HttpOptions.ProtoReflect.Descriptor instead.
func (*HttpOptions) GetAsHttpService ¶
func (x *HttpOptions) GetAsHttpService() bool
func (*HttpOptions) GetGroupPrefix ¶
func (x *HttpOptions) GetGroupPrefix() string
func (*HttpOptions) ProtoMessage ¶
func (*HttpOptions) ProtoMessage()
func (*HttpOptions) ProtoReflect ¶
func (x *HttpOptions) ProtoReflect() protoreflect.Message
func (*HttpOptions) Reset ¶
func (x *HttpOptions) Reset()
func (*HttpOptions) String ¶
func (x *HttpOptions) String() string
type HttpParamFieldOption ¶ added in v0.0.5
type HttpParamFieldOption struct {
Example string `protobuf:"bytes,1,opt,name=example,proto3" json:"example,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"`
ExtraDesc string `protobuf:"bytes,4,opt,name=extra_desc,json=extraDesc,proto3" json:"extra_desc,omitempty"`
Must bool `protobuf:"varint,5,opt,name=must,proto3" json:"must,omitempty"`
Skip bool `protobuf:"varint,6,opt,name=skip,proto3" json:"skip,omitempty"`
Pattern string `protobuf:"bytes,7,opt,name=pattern,proto3" json:"pattern,omitempty"`
// contains filtered or unexported fields
}
func (*HttpParamFieldOption) Descriptor
deprecated
added in
v0.0.5
func (*HttpParamFieldOption) Descriptor() ([]byte, []int)
Deprecated: Use HttpParamFieldOption.ProtoReflect.Descriptor instead.
func (*HttpParamFieldOption) GetExample ¶ added in v0.0.5
func (x *HttpParamFieldOption) GetExample() string
func (*HttpParamFieldOption) GetExtraDesc ¶ added in v0.0.5
func (x *HttpParamFieldOption) GetExtraDesc() string
func (*HttpParamFieldOption) GetFormat ¶ added in v0.0.5
func (x *HttpParamFieldOption) GetFormat() string
func (*HttpParamFieldOption) GetMust ¶ added in v0.0.5
func (x *HttpParamFieldOption) GetMust() bool
func (*HttpParamFieldOption) GetName ¶ added in v0.0.5
func (x *HttpParamFieldOption) GetName() string
func (*HttpParamFieldOption) GetPattern ¶ added in v0.0.5
func (x *HttpParamFieldOption) GetPattern() string
func (*HttpParamFieldOption) GetSkip ¶ added in v0.0.5
func (x *HttpParamFieldOption) GetSkip() bool
func (*HttpParamFieldOption) ProtoMessage ¶ added in v0.0.5
func (*HttpParamFieldOption) ProtoMessage()
func (*HttpParamFieldOption) ProtoReflect ¶ added in v0.0.5
func (x *HttpParamFieldOption) ProtoReflect() protoreflect.Message
func (*HttpParamFieldOption) Reset ¶ added in v0.0.5
func (x *HttpParamFieldOption) Reset()
func (*HttpParamFieldOption) String ¶ added in v0.0.5
func (x *HttpParamFieldOption) String() string
type HttpParamOption ¶ added in v0.0.2
type HttpParamOption struct {
Example string `protobuf:"bytes,1,opt,name=example,proto3" json:"example,omitempty"`
ExtraDesc string `protobuf:"bytes,2,opt,name=extra_desc,json=extraDesc,proto3" json:"extra_desc,omitempty"`
// contains filtered or unexported fields
}
func (*HttpParamOption) Descriptor
deprecated
added in
v0.0.2
func (*HttpParamOption) Descriptor() ([]byte, []int)
Deprecated: Use HttpParamOption.ProtoReflect.Descriptor instead.
func (*HttpParamOption) GetExample ¶ added in v0.0.5
func (x *HttpParamOption) GetExample() string
func (*HttpParamOption) GetExtraDesc ¶ added in v0.0.5
func (x *HttpParamOption) GetExtraDesc() string
func (*HttpParamOption) ProtoMessage ¶ added in v0.0.2
func (*HttpParamOption) ProtoMessage()
func (*HttpParamOption) ProtoReflect ¶ added in v0.0.2
func (x *HttpParamOption) ProtoReflect() protoreflect.Message
func (*HttpParamOption) Reset ¶ added in v0.0.2
func (x *HttpParamOption) Reset()
func (*HttpParamOption) String ¶ added in v0.0.2
func (x *HttpParamOption) String() string
type ImplementOption ¶
type ImplementOption struct {
Flatten bool `protobuf:"varint,1,opt,name=flatten,proto3" json:"flatten,omitempty"`
GenerateConvertor bool `protobuf:"varint,2,opt,name=generate_convertor,json=generateConvertor,proto3" json:"generate_convertor,omitempty"`
// contains filtered or unexported fields
}
func (*ImplementOption) Descriptor
deprecated
func (*ImplementOption) Descriptor() ([]byte, []int)
Deprecated: Use ImplementOption.ProtoReflect.Descriptor instead.
func (*ImplementOption) GetFlatten ¶
func (x *ImplementOption) GetFlatten() bool
func (*ImplementOption) GetGenerateConvertor ¶
func (x *ImplementOption) GetGenerateConvertor() bool
func (*ImplementOption) ProtoMessage ¶
func (*ImplementOption) ProtoMessage()
func (*ImplementOption) ProtoReflect ¶
func (x *ImplementOption) ProtoReflect() protoreflect.Message
func (*ImplementOption) Reset ¶
func (x *ImplementOption) Reset()
func (*ImplementOption) String ¶
func (x *ImplementOption) String() string
type JsonTransOption ¶
type JsonTransOption struct {
LazyLoad bool `protobuf:"varint,1,opt,name=lazy_load,json=lazyLoad,proto3" json:"lazy_load,omitempty"`
// contains filtered or unexported fields
}
func (*JsonTransOption) Descriptor
deprecated
func (*JsonTransOption) Descriptor() ([]byte, []int)
Deprecated: Use JsonTransOption.ProtoReflect.Descriptor instead.
func (*JsonTransOption) GetLazyLoad ¶
func (x *JsonTransOption) GetLazyLoad() bool
func (*JsonTransOption) ProtoMessage ¶
func (*JsonTransOption) ProtoMessage()
func (*JsonTransOption) ProtoReflect ¶
func (x *JsonTransOption) ProtoReflect() protoreflect.Message
func (*JsonTransOption) Reset ¶
func (x *JsonTransOption) Reset()
func (*JsonTransOption) String ¶
func (x *JsonTransOption) String() string
type MysqlImplDdlOpt ¶ added in v0.0.2
type MysqlImplDdlOpt struct {
Charset string `protobuf:"bytes,1,opt,name=charset,proto3" json:"charset,omitempty"`
Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
Engine string `protobuf:"bytes,3,opt,name=engine,proto3" json:"engine,omitempty"`
// contains filtered or unexported fields
}
func (*MysqlImplDdlOpt) Descriptor
deprecated
added in
v0.0.2
func (*MysqlImplDdlOpt) Descriptor() ([]byte, []int)
Deprecated: Use MysqlImplDdlOpt.ProtoReflect.Descriptor instead.
func (*MysqlImplDdlOpt) GetCharset ¶ added in v0.0.2
func (x *MysqlImplDdlOpt) GetCharset() string
func (*MysqlImplDdlOpt) GetComment ¶ added in v0.0.2
func (x *MysqlImplDdlOpt) GetComment() string
func (*MysqlImplDdlOpt) GetEngine ¶ added in v0.0.2
func (x *MysqlImplDdlOpt) GetEngine() string
func (*MysqlImplDdlOpt) ProtoMessage ¶ added in v0.0.2
func (*MysqlImplDdlOpt) ProtoMessage()
func (*MysqlImplDdlOpt) ProtoReflect ¶ added in v0.0.2
func (x *MysqlImplDdlOpt) ProtoReflect() protoreflect.Message
func (*MysqlImplDdlOpt) Reset ¶ added in v0.0.2
func (x *MysqlImplDdlOpt) Reset()
func (*MysqlImplDdlOpt) String ¶ added in v0.0.2
func (x *MysqlImplDdlOpt) String() string
type RouterOptions ¶
type RouterOptions struct {
Router string `protobuf:"bytes,1,opt,name=router,proto3" json:"router,omitempty"`
ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
// contains filtered or unexported fields
}
func (*RouterOptions) Descriptor
deprecated
func (*RouterOptions) Descriptor() ([]byte, []int)
Deprecated: Use RouterOptions.ProtoReflect.Descriptor instead.
func (*RouterOptions) GetContentType ¶
func (x *RouterOptions) GetContentType() string
func (*RouterOptions) GetMethod ¶
func (x *RouterOptions) GetMethod() string
func (*RouterOptions) GetRouter ¶
func (x *RouterOptions) GetRouter() string
func (*RouterOptions) ProtoMessage ¶
func (*RouterOptions) ProtoMessage()
func (*RouterOptions) ProtoReflect ¶
func (x *RouterOptions) ProtoReflect() protoreflect.Message
func (*RouterOptions) Reset ¶
func (x *RouterOptions) Reset()
func (*RouterOptions) String ¶
func (x *RouterOptions) String() string
type StructOption ¶
type StructOption struct {
FieldDefaultTags []*FieldTag `protobuf:"bytes,1,rep,name=field_default_tags,json=fieldDefaultTags,proto3" json:"field_default_tags,omitempty"`
// contains filtered or unexported fields
}
func (*StructOption) Descriptor
deprecated
func (*StructOption) Descriptor() ([]byte, []int)
Deprecated: Use StructOption.ProtoReflect.Descriptor instead.
func (*StructOption) GetFieldDefaultTags ¶
func (x *StructOption) GetFieldDefaultTags() []*FieldTag
func (*StructOption) ProtoMessage ¶
func (*StructOption) ProtoMessage()
func (*StructOption) ProtoReflect ¶
func (x *StructOption) ProtoReflect() protoreflect.Message
func (*StructOption) Reset ¶
func (x *StructOption) Reset()
func (*StructOption) String ¶
func (x *StructOption) String() string
type TableNameOption ¶
type TableNameOption struct {
SimpleName string `protobuf:"bytes,1,opt,name=simple_name,json=simpleName,proto3" json:"simple_name,omitempty"`
LazyName bool `protobuf:"varint,2,opt,name=lazy_name,json=lazyName,proto3" json:"lazy_name,omitempty"`
// contains filtered or unexported fields
}
func (*TableNameOption) Descriptor
deprecated
func (*TableNameOption) Descriptor() ([]byte, []int)
Deprecated: Use TableNameOption.ProtoReflect.Descriptor instead.
func (*TableNameOption) GetLazyName ¶
func (x *TableNameOption) GetLazyName() bool
func (*TableNameOption) GetSimpleName ¶
func (x *TableNameOption) GetSimpleName() string
func (*TableNameOption) ProtoMessage ¶
func (*TableNameOption) ProtoMessage()
func (*TableNameOption) ProtoReflect ¶
func (x *TableNameOption) ProtoReflect() protoreflect.Message
func (*TableNameOption) Reset ¶
func (x *TableNameOption) Reset()
func (*TableNameOption) String ¶
func (x *TableNameOption) String() string
type TableOption ¶
type TableOption struct {
NameOption *TableNameOption `protobuf:"bytes,1,opt,name=name_option,json=nameOption,proto3" json:"name_option,omitempty"`
FieldMapper FieldMapper `protobuf:"varint,2,opt,name=field_mapper,json=fieldMapper,proto3,enum=cato.struct.FieldMapper" json:"field_mapper,omitempty"`
// contains filtered or unexported fields
}
func (*TableOption) Descriptor
deprecated
func (*TableOption) Descriptor() ([]byte, []int)
Deprecated: Use TableOption.ProtoReflect.Descriptor instead.
func (*TableOption) GetFieldMapper ¶
func (x *TableOption) GetFieldMapper() FieldMapper
func (*TableOption) GetNameOption ¶
func (x *TableOption) GetNameOption() *TableNameOption
func (*TableOption) ProtoMessage ¶
func (*TableOption) ProtoMessage()
func (*TableOption) ProtoReflect ¶
func (x *TableOption) ProtoReflect() protoreflect.Message
func (*TableOption) Reset ¶
func (x *TableOption) Reset()
func (*TableOption) String ¶
func (x *TableOption) String() string
type TimeOption ¶
type TimeOption struct {
UnixToTime bool `protobuf:"varint,1,opt,name=unix_to_time,json=unixToTime,proto3" json:"unix_to_time,omitempty"`
TimeFormat string `protobuf:"bytes,2,opt,name=time_format,json=timeFormat,proto3" json:"time_format,omitempty"`
// contains filtered or unexported fields
}
func (*TimeOption) Descriptor
deprecated
func (*TimeOption) Descriptor() ([]byte, []int)
Deprecated: Use TimeOption.ProtoReflect.Descriptor instead.
func (*TimeOption) GetTimeFormat ¶
func (x *TimeOption) GetTimeFormat() string
func (*TimeOption) GetUnixToTime ¶
func (x *TimeOption) GetUnixToTime() bool
func (*TimeOption) ProtoMessage ¶
func (*TimeOption) ProtoMessage()
func (*TimeOption) ProtoReflect ¶
func (x *TimeOption) ProtoReflect() protoreflect.Message
func (*TimeOption) Reset ¶
func (x *TimeOption) Reset()
func (*TimeOption) String ¶
func (x *TimeOption) String() string