thriftgo

package
v0.9.0-rc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 28 Imported by: 18

Documentation

Index

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

This section is empty.

Functions

func AppendToTemplate

func AppendToTemplate(text string)

AppendToTemplate string

func EnableJavaExtension added in v0.8.0

func EnableJavaExtension(a generator.Config) bool

func Hessian2PatchByReplace added in v0.9.0

func Hessian2PatchByReplace(args generator.Config, subDirPath string) error

Hessian2PatchByReplace args is the arguments from command, subDirPath used for xx/xx/xx

func Hessian2PreHook added in v0.8.0

func Hessian2PreHook(cfg *generator.Config)

Hessian2PreHook Hook before building cmd

func IsHessian2 added in v0.8.0

func IsHessian2(a generator.Config) bool

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL