Documentation
¶
Index ¶
- func GetName() string
- func GetVersion() string
- func SetName(n string)
- func SetVersion(v string)
- type Generator
- type Option
- type ProtocPlugin
- func (p *ProtocPlugin) Apply(options ...Option)
- func (p *ProtocPlugin) GetOutput() io.Writer
- func (p *ProtocPlugin) GetProtoGenPlugin(req *pluginpb.CodeGeneratorRequest) (*protogen.Plugin, error)
- func (p *ProtocPlugin) MakeFiles(plugin *protogen.Plugin) error
- func (p *ProtocPlugin) Register(generators ...Generator)
- func (p *ProtocPlugin) Run() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVersion ¶
func GetVersion() string
func SetVersion ¶
func SetVersion(v string)
Types ¶
type Option ¶
type Option func(*ProtocPlugin)
func ApplyGenerators ¶
func ApplyInput ¶
func ApplyOutput ¶
type ProtocPlugin ¶
type ProtocPlugin struct {
// contains filtered or unexported fields
}
func NewProtocPluginApp ¶
func NewProtocPluginApp(options ...Option) *ProtocPlugin
func (*ProtocPlugin) Apply ¶
func (p *ProtocPlugin) Apply(options ...Option)
func (*ProtocPlugin) GetOutput ¶
func (p *ProtocPlugin) GetOutput() io.Writer
func (*ProtocPlugin) GetProtoGenPlugin ¶
func (p *ProtocPlugin) GetProtoGenPlugin(req *pluginpb.CodeGeneratorRequest) (*protogen.Plugin, error)
func (*ProtocPlugin) Register ¶
func (p *ProtocPlugin) Register(generators ...Generator)
func (*ProtocPlugin) Run ¶
func (p *ProtocPlugin) Run() error
Click to show internal directories.
Click to hide internal directories.