Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateServer ¶
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
StringLblValue func(name string, label *pb.Label) (string, error)
PbLabelTLangLabels func(labels map[string]*pb.Label) ([]Label, error)
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 ¶
Click to show internal directories.
Click to hide internal directories.