usecase

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecuteProtocUsecase

type ExecuteProtocUsecase interface {
	Perform() error
	InstallPlugins() error
	ExecuteProtoc() error
}

ExecuteProtocUsecase is an useecase interface for executing protoc module.

func NewExecuteProtocUsecase

func NewExecuteProtocUsecase(cfg *protoc.Config, fs afero.Fs, ui module.UI, commandFactory module.CommandFactory, rootDir string) ExecuteProtocUsecase

NewExecuteProtocUsecase returns an new ExecuteProtocUsecase implementation instance.

type GenerateServiceUsecase

type GenerateServiceUsecase interface {
	Generate(path string) error
	Destroy(path string) error
}

GenerateServiceUsecase is an useecase interface for geenrating .proto file and its implementation skeleton.

func NewGenerateServiceUsecase

func NewGenerateServiceUsecase(ui module.UI, generator module.Generator, rootDir string) GenerateServiceUsecase

NewGenerateServiceUsecase returns an new GenerateServiceUsecase implementation instance.

type InitializeProjectUsecase

type InitializeProjectUsecase interface {
	Perform(rootDir string, depSkipped, headUsed bool) error
	GenerateProject(rootDir string, headUsed bool) error
	InstallDeps(rootDir string) error
}

InitializeProjectUsecase is an interface to create a new grapi project.

func NewInitializeProjectUsecase

func NewInitializeProjectUsecase(ui module.UI, generator module.Generator, commandFactory module.CommandFactory, version string) InitializeProjectUsecase

NewInitializeProjectUsecase creates a new InitializeProjectUsecase instance.

Jump to

Keyboard shortcuts

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