generator

package
v0.0.1-dev Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoMessageExtend        = "should extend message options to generate hessian2 code"
	ErrNoJavaClassName        = "should extend java class name to generate hessian2 code"
	ErrExtendedOptionNotMatch = "extended options not match"
)

Functions

func GenHessian2

func GenHessian2(g *protogen.GeneratedFile, hessian2Go *Hessian2Go)

Types

type Enum

type Enum struct {
	*protogen.Enum

	JavaClassName string
}

type Field

type Field struct {
	*protogen.Field

	Type         string
	DefaultValue string
}

type Hessian2Go

type Hessian2Go struct {
	*protogen.File

	Source       string
	ProtoPackage string
	Enums        []*Enum
	Messages     []*Message
}

func ProcessProtoFile

func ProcessProtoFile(g *protogen.GeneratedFile, file *protogen.File) (*Hessian2Go, error)

type Message

type Message struct {
	*protogen.Message

	JavaClassName string

	InnerMessages []*Message
	IsInheritance bool
	Fields        []*Field

	ExtendArgs bool
}

Jump to

Keyboard shortcuts

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