pkg

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateClient

func GenerateClient(plugin *protogen.Plugin, file *protogen.File) error

func GenerateServer

func GenerateServer(plugin *protogen.Plugin, file *protogen.File, serverLanguage ServerLanguage) 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) (string, string, error)

func (*TemplateGenerator) GenerateFile

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

Jump to

Keyboard shortcuts

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