Documentation
¶
Index ¶
- Variables
- func ProvideBuildConfig(c *Ctx) *build.Build
- func ProvideExecer(c *Ctx) exec.Interface
- func ProvideFS(c *Ctx) afero.Fs
- func ProvideIO(c *Ctx) io.IO
- func ProvideProtocConfig(c *Ctx) *protoc.Config
- func ProvideRootDir(c *Ctx) cli.RootDir
- func ProvideViper(c *Ctx) *viper.Viper
- type Config
- type Ctx
Constants ¶
This section is empty.
Variables ¶
View Source
var CtxSet = wire.NewSet( ProvideFS, ProvideViper, ProvideExecer, ProvideIO, ProvideRootDir, ProvideConfig, ProvideBuildConfig, ProvideProtocConfig, )
CtxSet is a provider set that includes modules contained in Ctx.
Functions ¶
func ProvideBuildConfig ¶
func ProvideExecer ¶
func ProvideProtocConfig ¶
func ProvideRootDir ¶
func ProvideViper ¶
Types ¶
type Config ¶
Config stores general setting params and provides accessors for them.
func ProvideConfig ¶
type Ctx ¶
type Ctx struct {
FS afero.Fs
Viper *viper.Viper
Execer exec.Interface
IO io.IO
RootDir cli.RootDir
Config Config
Build build.Build
ProtocConfig protoc.Config
// contains filtered or unexported fields
}
Ctx contains the runtime context of grpai.
func (*Ctx) IsInsideApp ¶
IsInsideApp returns true if the current working directory is inside a gogen project.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
module/testing
Package moduletesting is a generated GoMock package.
|
Package moduletesting is a generated GoMock package. |
|
util
|
|
Click to show internal directories.
Click to hide internal directories.