config

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: Apache-2.0 Imports: 1 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 {
	// The first path in $GOPATH
	GoPath []string

	// The go package where .pb.go files protoc-gen-go creates will be written
	PBPackage string
	PBPath    string
	// The go package where the service code will be written
	ServicePackage string
	ServicePath    string

	// The paths to each of the .proto files baron is being run against
	DefPaths []string
	// The files of a previously generated service, may be nil
	PrevGen map[string]io.Reader
	// Generate service client CLI
	GenClient bool
	// Service transport protocol: all|grpc|http|nats
	Transport string
	// 服务定义
	Svcdef bool
}

Config defines the inputs to a baron service generation

Jump to

Keyboard shortcuts

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