config

package
v0.0.0-...-92f319c Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Module     string   `yaml:"module"`
	ImportPath string   `yaml:"import_path"`
	Protos     []string `yaml:"protos"`
	Includes   []string `yaml:"includes"`
	Generate   Generate `yaml:"generate"`
}

func NewConfig

func NewConfig() (c *Config)

func (*Config) Load

func (c *Config) Load() (err error)

func (*Config) Output

func (c *Config) Output() (err error)

type Generate

type Generate struct {
	GoOptions GoOptions `yaml:"go_options"`
	Plugins   []Plugin  `yaml:"plugins"`
	Output    string    `yaml:"output"`
	Modifier  string    `yaml:"modifier"`
}

type GoOptions

type GoOptions struct {
	Modifiers map[string]string `yaml:"modifiers"`
}

type Plugin

type Plugin struct {
	Name string `yaml:"name"`
	//Output string `yaml:"output"`
	Flags string `yaml:"flags"`
	Type  string `yaml:"type"`
}

Jump to

Keyboard shortcuts

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