thriftgo

package
v0.8.0-fieldmask Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 27 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

View Source
var JavaObjectRe = regexp.MustCompile(`\*java\.Object\b`)

Functions

func AppendToTemplate

func AppendToTemplate(text string)

AppendToTemplate string

func EnableJavaExtension added in v0.8.0

func EnableJavaExtension(a generator.Config) bool

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 ReplaceObject added in v0.8.0

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

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

func ZeroBLength(t *parser.Type, oprot string, offset string) string

func ZeroWriter added in v0.10.0

func ZeroWriter(t *parser.Type, oprot string, buf string, offset string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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