Documentation
¶
Index ¶
Constants ¶
View Source
const PluginName = "thrift-gen-kitex"
PluginName is the link name when the kitex binary is used as a plugin for thriftgo.
View Source
const TheUseOptionMessage = "kitex_gen is not generated due to the -use option"
TheUseOptionMessage indicates that the generating of kitex_gen is aborted due to the -use option.
Variables ¶
View Source
var FieldValidate = `` /* 299-byte string literal not displayed */
FieldValidate .
View Source
var FieldValidateBase = `` /* 647-byte string literal not displayed */
FieldValidateBase .
View Source
var FieldValidateContainer = `` /* 445-byte string literal not displayed */
FieldValidateContainer .
View Source
var FieldValidateList = `` /* 330-byte string literal not displayed */
FieldValidateList .
View Source
var FieldValidateMap = `` /* 325-byte string literal not displayed */
FieldValidateMap .
View Source
var FieldValidateSet = `` /* 328-byte string literal not displayed */
FieldValidateSet .
View Source
var FieldValidateStructLike = `` /* 294-byte string literal not displayed */
FieldValidateStructLike .
View Source
var StructLikeValidate = `` /* 290-byte string literal not displayed */
StructLikeValidate .
View Source
var Version string
Functions ¶
Types ¶
type ValidateContext ¶
type ValidateContext struct {
AST *tp.Thrift
FieldName string
RawFieldName string
Resolver *golang.Resolver
StructLike *golang.StructLike
*golang.ReadWriteContext
*parser.Validation
IsOptional bool
// contains filtered or unexported fields
}
func (*ValidateContext) GenID ¶
func (v *ValidateContext) GenID(prefix string) (name string)
Click to show internal directories.
Click to hide internal directories.