Documentation ¶
Index ¶
- Constants
- func AppendToTemplate(text string)
- func EnableJavaExtension(a generator.Config) bool
- func Hessian2PatchByReplace(args generator.Config, subDirPath string) error
- func Hessian2PreHook(cfg *generator.Config)
- func IsHessian2(a generator.Config) bool
- func Run() int
- func ZeroBLength(t *parser.Type, oprot, offset string) string
- func ZeroWriter(t *parser.Type, oprot, buf, offset string) string
Constants ¶
View Source
const ( JavaExtensionOption = "java_extension" DubboCodec = "github.com/kitex-contrib/codec-dubbo" JavaThrift = "java.thrift" JavaThriftAddress = "https://raw.githubusercontent.com/kitex-contrib/codec-dubbo/main/java/java.thrift" )
View Source
const Body = `` /* 258-byte string literal not displayed */
View Source
const FieldBaseTypeLength = `` /* 485-byte string literal not displayed */
View Source
const FieldContainerLength = `` /* 276-byte string literal not displayed */
View Source
const FieldDeepCopy = `` /* 329-byte string literal not displayed */
View Source
const FieldDeepCopyBaseType = `` /* 931-byte string literal not displayed */
View Source
const FieldDeepCopyContainer = `` /* 298-byte string literal not displayed */
View Source
const FieldDeepCopyList = `` /* 590-byte string literal not displayed */
View Source
const FieldDeepCopyMap = `` /* 742-byte string literal not displayed */
View Source
const FieldDeepCopySet = `` /* 588-byte string literal not displayed */
View Source
const FieldDeepCopyStructLike = `` /* 572-byte string literal not displayed */
View Source
const FieldFastRead = `` /* 329-byte string literal not displayed */
View Source
const FieldFastReadBaseType = `` /* 599-byte string literal not displayed */
View Source
const FieldFastReadContainer = `` /* 298-byte string literal not displayed */
View Source
const FieldFastReadList = `` /* 1462-byte string literal not displayed */
View Source
const FieldFastReadMap = `` /* 2330-byte string literal not displayed */
View Source
const FieldFastReadSet = `` /* 1458-byte string literal not displayed */
View Source
const FieldFastReadStructLike = `` /* 499-byte string literal not displayed */
View Source
const FieldFastWrite = `` /* 340-byte string literal not displayed */
View Source
const FieldFastWriteBaseType = `` /* 541-byte string literal not displayed */
View Source
const FieldFastWriteContainer = `` /* 291-byte string literal not displayed */
View Source
const FieldFastWriteList = `` /* 934-byte string literal not displayed */
View Source
const FieldFastWriteMap = `` /* 1471-byte string literal not displayed */
View Source
const FieldFastWriteSet = `` /* 958-byte string literal not displayed */
View Source
const FieldFastWriteStructLike = `` /* 370-byte string literal not displayed */
View Source
const FieldFixedLengthTypeLength = `` /* 197-byte string literal not displayed */
View Source
const FieldLength = `` /* 325-byte string literal not displayed */
View Source
const FieldListLength = `` /* 1015-byte string literal not displayed */
View Source
const FieldMapLength = `` /* 1702-byte string literal not displayed */
View Source
const FieldSetLength = `` /* 1042-byte string literal not displayed */
View Source
const FieldStructLikeLength = `` /* 325-byte string literal not displayed */
View Source
const File = ` {{define "file"}} // Code generated by Kitex {{Version}}. DO NOT EDIT. package {{.PkgName}} ` + ImportInsertPoint + ` {{InsertionPoint "KitexUnusedProtection"}} // unused protection var ( _ = fmt.Formatter(nil) {{- UseStdLibrary "fmt"}} _ = (*bytes.Buffer)(nil) {{- UseStdLibrary "bytes"}} _ = (*strings.Builder)(nil) {{- UseStdLibrary "strings"}} _ = reflect.Type(nil) {{- UseStdLibrary "reflect"}} _ = thrift.TProtocol(nil) {{- UseStdLibrary "thrift"}} {{- if GenerateFastAPIs}} {{- UseLib (ImportPathTo "pkg/protocol/bthrift") ""}} _ = bthrift.BinaryWriter(nil) {{- end}} {{- if GenerateDeepCopyAPIs}} {{- UseLib "github.com/cloudwego/kitex/pkg/utils" "kutils"}} {{- end}} {{- if and (and GenerateArgsResultTypes Features.KeepUnknownFields) (ne (len .Scope.Services) 0)}} {{- UseStdLibrary "unknown"}} {{- end}} ) {{template "body" .}} {{end}}{{/* define "file" */}} `
View Source
const ImportInsertPoint = "// imports insert-point"
View Source
const Imports = `` /* 222-byte string literal not displayed */
View Source
const JavaClassName = `` /* 296-byte string literal not displayed */
View Source
const PatchArgsAndResult = `` /* 981-byte string literal not displayed */
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 Processor = `` /* 482-byte string literal not displayed */
View Source
const RegisterHessian = `` /* 2580-byte string literal not displayed */
View Source
const StructLikeCodec = `` /* 523-byte string literal not displayed */
View Source
const StructLikeDeepCopy = `` /* 455-byte string literal not displayed */
TODO: check required
View Source
const StructLikeFastRead = `` /* 3636-byte string literal not displayed */
View Source
const StructLikeFastReadField = `` /* 891-byte string literal not displayed */
View Source
const StructLikeFastWrite = `` /* 194-byte string literal not displayed */
View Source
const StructLikeFastWriteField = `` /* 1473-byte string literal not displayed */
View Source
const StructLikeFastWriteNocopy = `` /* 1046-byte string literal not displayed */
View Source
const StructLikeFieldLength = `` /* 1318-byte string literal not displayed */
View Source
const StructLikeLength = `` /* 859-byte string literal not displayed */
View Source
const StructLikeProtocol = `` /* 929-byte string literal not displayed */
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.
View Source
const ValidateSet = `` /* 592-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func EnableJavaExtension ¶ added in v0.8.0
func Hessian2PatchByReplace ¶ added in v0.9.0
Hessian2PatchByReplace args is the arguments from command, subDirPath used for xx/xx/xx
func Hessian2PreHook ¶ added in v0.8.0
Hessian2PreHook Hook before building cmd
func IsHessian2 ¶ added in v0.8.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.