gen

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(gen *protogen.Plugin, file *protogen.File) error

Generate generates the code for the given protocol buffer file. It takes a protogen.Plugin and a protogen.File as input and returns an error if any. The generated code includes the file header, services, and methods. For each service, it generates the service definition and for each method, it generates the method definition. If a method is a streaming client or a streaming server, it is skipped. The generated code is written to the specified file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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