Documentation ¶
Index ¶
- Constants
- Variables
- func AppendToTemplate(text string)
- func EnableJavaExtension(a generator.Config) bool
- func Hessian2PreHook(cfg *generator.Config)
- func IsHessian2(a generator.Config) bool
- func ReplaceObject(args generator.Config, subDirPath string) error
- func Run() int
- func ZeroBLength(t *parser.Type, oprot string, offset string) string
- func ZeroWriter(t *parser.Type, oprot string, buf string, offset string) string
Constants ¶
View Source
const ( JavaExtensionOption = "java_extension" DubboCodec = "github.com/kitex-contrib/codec-dubbo" JavaThrift = "https://raw.githubusercontent.com/kitex-contrib/codec-dubbo/main/java/java.thrift" )
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 JavaObjectRe = regexp.MustCompile(`\*java\.Object\b`)
Functions ¶
func EnableJavaExtension ¶ added in v0.8.0
func Hessian2PreHook ¶ added in v0.8.0
Hessian2PreHook Hook before building cmd
func IsHessian2 ¶ added in v0.8.0
func ReplaceObject ¶ added in v0.8.0
ReplaceObject args is the arguments from command, subDirPath used for xx/xx/xx
func Run ¶
func Run() int
Run is an entry of the plugin mode of kitex for thriftgo. It reads a plugin request from the standard input and writes out a response.
func ZeroBLength ¶ added in v0.10.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.