Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNameRequired = errors.New("name is required") ErrSrvPathNotValid = errors.New("service path is not valid") ErrRepoURLNotValid = errors.New("repo url is not valid") ErrLoadFromFile = errors.New("cannot load from file") )
View Source
var (
Repos = []Repo{
{
Git: "https://gitlab.com/macroscope-lab/atomika.git",
Go: "gitlab.com/macroscope-lab/atomika",
},
}
)
Functions ¶
func DefDirExists ¶
func GenerateID ¶
func GoModuleName ¶
Types ¶
type Project ¶
type Project struct { ID string `json:"id"` ModName string `json:"-"` Repo string `json:"repo"` ServicesPath string `json:"servicesPath"` // contains filtered or unexported fields }
func LoadFromFile ¶
func (*Project) MarshalBinary ¶
MarshalBinary converts to bytes
func (*Project) MarshalIndentBinary ¶
MarshalIndentBinary converts to bytes
func (*Project) ServicePath ¶
ServicePath will create a valid path according to Project struct details this DOES NOT guarantee in any way the package exists
func (*Project) UnmarshalBinary ¶
UnmarshalBinary convert data to Project
type StructFile ¶
type StructFile string
const ( GitIgnoreFile StructFile = ".gitignore" MainFile StructFile = "main.go" LocalFile StructFile = "local.json" GoModFile StructFile = "go.mod" ConfigFileProject StructFile = "project.json" DefDirService = "def" ErrFile StructFile = "errors.go" DefinitionFile StructFile = "definitions.go" ConsumerFile StructFile = "consumer.go" ServerFile StructFile = "server.go" ServiceFile StructFile = "service.go" TestFile StructFile = "service_test.go" ClientGoFile StructFile = "client.go" ClientJsFile StructFile = "client.js" ClientTsFile StructFile = "client.ts" )
func (StructFile) Name ¶
func (sf StructFile) Name() string
func (StructFile) Tmpl ¶
func (sf StructFile) Tmpl() string
Click to show internal directories.
Click to hide internal directories.