gen

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Options
	Generator pluginutils.GenerateOptions
	*pluginutils.TSRegistry
}

func (*Generator) ApplyTemplate

func (g *Generator) ApplyTemplate() error

func (*Generator) PTmplStr

func (g *Generator) PTmplStr(tmpl string, data interface{}, funcs ...template.FuncMap)

func (*Generator) TSProto_EnumToJSONFuncName

func (g *Generator) TSProto_EnumToJSONFuncName(enum protoreflect.EnumDescriptor) string

type Options

type Options struct {
	pluginutils.TSOption

	// UseStaticClasses will cause the generator to generate a static class in the form ServiceName.MethodName, which is
	// the legacy behavior for this generator. If set to false, the generator will generate a client class with methods
	// as well as static methods exported for each service method.
	UseStaticClasses bool
	// FetchModuleDirectory is the parameter for directory where fetch module will live
	FetchModuleDirectory string
	// FetchModuleFilename is the file name for the individual fetch module
	FetchModuleFilename string
}

Jump to

Keyboard shortcuts

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