Documentation ¶
Index ¶
- Constants
- func AppendToTemplate(text string)
- func EnableJavaExtension(a generator.Config) bool
- func HandleRequest(req *plugin.Request) *plugin.Response
- func Hessian2PatchByReplace(args generator.Config, subDirPath string) error
- func Hessian2PreHook(cfg *generator.Config) error
- 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 = `` /* 473-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 = `` /* 945-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 = `` /* 604-byte string literal not displayed */
View Source
const FieldFastReadContainer = `` /* 298-byte string literal not displayed */
View Source
const FieldFastReadList = `` /* 1343-byte string literal not displayed */
View Source
const FieldFastReadMap = `` /* 2210-byte string literal not displayed */
View Source
const FieldFastReadSet = `` /* 1340-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 = `` /* 528-byte string literal not displayed */
View Source
const FieldFastWriteContainer = `` /* 291-byte string literal not displayed */
View Source
const FieldFastWriteList = `` /* 825-byte string literal not displayed */
View Source
const FieldFastWriteMap = `` /* 1314-byte string literal not displayed */
View Source
const FieldFastWriteSet = `` /* 850-byte string literal not displayed */
View Source
const FieldFastWriteStructLike = `` /* 359-byte string literal not displayed */
View Source
const FieldFixedLengthTypeLength = `` /* 132-byte string literal not displayed */
View Source
const FieldLength = `` /* 325-byte string literal not displayed */
View Source
const FieldListLength = `` /* 840-byte string literal not displayed */
View Source
const FieldMapLength = `` /* 1412-byte string literal not displayed */
View Source
const FieldSetLength = `` /* 868-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.STOP {{- UseLib "github.com/cloudwego/gopkg/protocol/thrift" ""}} {{- 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 StructLikeDeepEqualEmpty = `` /* 155-byte string literal not displayed */
StructLikeDeepEqualEmpty when using slim template, there's no need to generate deep equal for xxArgs and xxResult struct, to avoid the template compile error, use this empty definition instead.
View Source
const StructLikeFastRead = `` /* 3116-byte string literal not displayed */
View Source
const StructLikeFastReadField = `` /* 890-byte string literal not displayed */
View Source
const StructLikeFastWrite = `` /* 199-byte string literal not displayed */
View Source
const StructLikeFastWriteField = `` /* 1320-byte string literal not displayed */
View Source
const StructLikeFastWriteNocopy = `` /* 1101-byte string literal not displayed */
View Source
const StructLikeFieldLength = `` /* 1155-byte string literal not displayed */
View Source
const StructLikeLength = `` /* 767-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.