protoc

package
v0.0.0-...-e053248 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: MIT Imports: 5 Imported by: 0

README

Spellbook: protoc

This chapter adds a Magefile buildsystem for protoc tool. Current support:

Plugin Support
go
go-grpc
dart
Java
Python
C#

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin interface {
	Build(ctx context.Context) error
}

type PluginDart

type PluginDart struct {
	Out      string
	Opts     string
	Targets  []string
	Includes []string
}

func (PluginDart) Build

func (p PluginDart) Build(ctx context.Context) error

func (PluginDart) MakeArgs

func (p PluginDart) MakeArgs() []string

func (PluginDart) OutDir

func (p PluginDart) OutDir() string

type PluginGo

type PluginGo struct {
	Out       string
	Opts      string
	Targets   []string
	StripPath string
	Includes  []string
}

func (PluginGo) Build

func (p PluginGo) Build(ctx context.Context) error

func (PluginGo) MakeArgs

func (p PluginGo) MakeArgs() []string

func (PluginGo) OutDir

func (p PluginGo) OutDir() string

type PluginGoGRPC

type PluginGoGRPC struct {
	Out       string
	GoOpts    string
	GRPCOpts  string
	Targets   []string
	StripPath string
	Includes  []string
}

func (PluginGoGRPC) Build

func (p PluginGoGRPC) Build(ctx context.Context) error

func (PluginGoGRPC) MakeArgs

func (p PluginGoGRPC) MakeArgs() []string

func (PluginGoGRPC) OutDir

func (p PluginGoGRPC) OutDir() string

Jump to

Keyboard shortcuts

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