codegen

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package gen implements code generation for protoc-gen-procframe-go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(plugin *protogen.Plugin, file *protogen.File, params *Params) error

Generate processes a single proto file and emits handler interface and CLI runner files for each service that has CLI-exposed methods.

Types

type Params

type Params struct {
	ConfigProto string
}

Params holds plugin parameters parsed from protoc --<plugin>_opt flags.

func (*Params) Set

func (p *Params) Set(name, value string) error

Set implements the flag.Value-style callback expected by protogen.Options.ParamFunc.

Jump to

Keyboard shortcuts

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