extra

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMessageProjection

func IsMessageProjection(file *descriptor.FileDescriptorProto, message *generator.Descriptor) bool

Types

type Context

type Context struct {
	*generator.Generator
	generator.PluginImports
}

func (*Context) Generate

func (p *Context) Generate(file *generator.FileDescriptor, message *generator.Descriptor, ccTypeName string)

func (*Context) Init

func (p *Context) Init(g *generator.Generator, imports generator.PluginImports)

type OrderedFields

type OrderedFields []*descriptor.FieldDescriptorProto

func (OrderedFields) Len

func (v OrderedFields) Len() int

func (OrderedFields) Less

func (v OrderedFields) Less(i, j int) bool

func (OrderedFields) Swap

func (v OrderedFields) Swap(i, j int)

type Polymorph

type Polymorph struct {
	*generator.Generator
	generator.PluginImports
	// contains filtered or unexported fields
}

func (*Polymorph) GenerateFile

func (p *Polymorph) GenerateFile()

func (*Polymorph) GenerateMsg

func (p *Polymorph) GenerateMsg(file *generator.FileDescriptor, message *generator.Descriptor, ccTypeName string, isHead bool)

func (*Polymorph) Init

func (p *Polymorph) Init(g *generator.Generator, imports generator.PluginImports)

type Projection

type Projection struct {
	*generator.Generator
}

func (*Projection) Generate

func (p *Projection) Generate(file *generator.FileDescriptor, message *generator.Descriptor, ccTypeName string)

func (*Projection) Init

func (p *Projection) Init(g *generator.Generator)

Jump to

Keyboard shortcuts

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