proto

package
v0.0.0-...-5afa41d Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 7 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 {
	*types.TypeDefs

	Path string
	// contains filtered or unexported fields
}

Generator implements gRPC protobuf generator

func NewGenerator

func NewGenerator(path string, d *parser.Definition, td *types.TypeDefs) *Generator

NewGenerator returns an instance of gRPC code generator

func (*Generator) Generate

func (g *Generator) Generate(ctx context.Context) error

Generate generates gRPC prtobuf code for all given modules(services)

type Module

type Module struct {
	parser.Module
	Types []*types.CompositeType
}

Module encapsulates module meta data and types in module

Jump to

Keyboard shortcuts

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