Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CapabilityConfig ¶
type CapabilityConfig struct {
Category string
Pkg string
MajorVersion int
PreReleaseTag string
Files []string
}
func (*CapabilityConfig) FullProtoFiles ¶
func (c *CapabilityConfig) FullProtoFiles() []string
func (*CapabilityConfig) Validate ¶
func (c *CapabilityConfig) Validate() error
type Generator ¶
type Generator struct {
GeneratorHelper
}
func (*Generator) Generate ¶
func (g *Generator) Generate(config *CapabilityConfig) error
func (*Generator) GenerateMany ¶
func (g *Generator) GenerateMany(dirToConfig map[string]*CapabilityConfig) error
type GeneratorHelper ¶
type GeneratorHelper interface {
// FullGoPackageName specifies a go package name for the capability.
FullGoPackageName(c *CapabilityConfig) string
// SdkPgk returns where the base SDK and metadata protos are generated
SdkPgk() string
// PluginName returns the fully quantified name of the protoc plugin to install.
// It will be verified that the package generating uses the same version of github.com/smartcontractkit/chainlink-common/pkg/values
// as the plugin.
PluginName() string
// HelperName returns the fully quantified name of the helper package for the generator.
HelperName() string
}
GeneratorHelper defines parameters for generating capability code with a protoc plugin.
Click to show internal directories.
Click to hide internal directories.