pkg

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateServer

func GenerateServer(
	plugin *protogen.Plugin,
	file *protogen.File,
	serverLanguage ServerLanguage,
	toolName,
	localPrefix string) error

Types

type ServerLanguage

type ServerLanguage string
const (
	ServerLangaugeGo ServerLanguage = "go"
)

func (ServerLanguage) Validate

func (s ServerLanguage) Validate() error

type TemplateGenerator

type TemplateGenerator struct {
	Name             string
	Template         string
	FileNameTemplate string
	Partials         map[string]string
	ExtraFns         template.FuncMap
}

func (*TemplateGenerator) Generate

func (t *TemplateGenerator) Generate(
	baseFile,
	args any,
	importToPkg map[protogen.GoImportPath]protogen.GoPackageName,
	toolName,
	localPrefix string) (string, string, error)

func (*TemplateGenerator) GenerateFile

func (t *TemplateGenerator) GenerateFile(
	file *protogen.File,
	plugin *protogen.Plugin,
	args any,
	toolName,
	localPrefix string) error

Jump to

Keyboard shortcuts

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