project

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GoMinVersion     = "1.13.15"
	GitMinVersion    = "2.3.4"
	ProtocMinVersion = "3.3.0"
)

Variables

View Source
var (
	ErrNotSemanticVersion = errors.New("string is not semantic version")
	ErrCheckVersionFailed = errors.New("check failed")
)
View Source
var (
	ErrEmptyModule      = errors.New("can't create project with empty module")
	ErrModuleNotFound   = errors.New("project module does not exists")
	ErrMultiplePackages = errors.New("multiple package entries")
	ErrMultipleServices = errors.New("multiple service entries")
)

Functions

This section is empty.

Types

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

func NewChecker

func NewChecker(printer stdout.Printer) *Checker

func (*Checker) CheckRequirements

func (c *Checker) CheckRequirements() (failed bool)

type Project

type Project struct {
	AbsPath string
	Module  string
	Name    string
	Protos  []*models.Proto
	// contains filtered or unexported fields
}

func NewProject

func NewProject(module string, printer stdout.Printer) (project *Project, err error)

func (*Project) FindProtoFiles

func (p *Project) FindProtoFiles(dirs ...string) error

func (*Project) MoveProtoFiles

func (p *Project) MoveProtoFiles() error

Jump to

Keyboard shortcuts

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