plugin

package
v0.0.0-...-f0c8803 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const FmtPkg = protogen.GoImportPath("fmt")

Variables

This section is empty.

Functions

func GenErrorMsg

func GenErrorMsg(file *protogen.GeneratedFile, rule *checker.CheckRule, msg string)

Types

type IGenerator

type IGenerator interface {
	Generator(ctx context.Context, file *protogen.GeneratedFile, field *protogen.Field, rule *checker.CheckRule) error
	Kind() protoreflect.Kind
}

type IPlugin

type IPlugin interface {
	Generate(*protogen.Plugin) error
}

type T

type T struct {
	// contains filtered or unexported fields
}

func New

func New(config *config.Config, generators ...IGenerator) (*T, error)

func (*T) Generate

func (x *T) Generate(plugin *protogen.Plugin) error

Jump to

Keyboard shortcuts

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