Documentation ¶
Index ¶
- func GetTplFs() embed.FS
- type GoServiceModel
- type ServiceModel
- type WorkspaceModel
- func (c WorkspaceModel) GetApiSchemaAbsPath(serviceName string) string
- func (c WorkspaceModel) GetApiSchemaDirAbsPath(serviceName string) string
- func (c WorkspaceModel) GetApiSchemaGenAbsPath(serviceName string) string
- func (c WorkspaceModel) GetAppIncludePath(serviceName string) string
- func (c *WorkspaceModel) GetRepository() string
- func (c WorkspaceModel) GetSafeName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GoServiceModel ¶
type GoServiceModel struct {
Name string
}
type ServiceModel ¶
type ServiceModel struct { ServiceName string Repository string Language mifyconfig.ServiceLanguage GoModule string // first line inside go.mod Workspace WorkspaceModel }
func NewServiceModel ¶
func NewServiceModel(ctx *gencontext.GenContext) *ServiceModel
func (ServiceModel) GetApiEndpointEnvName ¶
func (c ServiceModel) GetApiEndpointEnvName() string
func (ServiceModel) GetMaintenanceApiEndpointEnvName ¶ added in v0.1.7
func (c ServiceModel) GetMaintenanceApiEndpointEnvName() string
type WorkspaceModel ¶
type WorkspaceModel struct { Name string BasePath string GoRoot string // Path to go-services Config mifyconfig.WorkspaceConfig TplHeader string GoServices []GoServiceModel }
func NewWorkspaceModel ¶
func NewWorkspaceModel(context *gencontext.GenContext) *WorkspaceModel
func (WorkspaceModel) GetApiSchemaAbsPath ¶
func (c WorkspaceModel) GetApiSchemaAbsPath(serviceName string) string
func (WorkspaceModel) GetApiSchemaDirAbsPath ¶
func (c WorkspaceModel) GetApiSchemaDirAbsPath(serviceName string) string
func (WorkspaceModel) GetApiSchemaGenAbsPath ¶
func (c WorkspaceModel) GetApiSchemaGenAbsPath(serviceName string) string
Path to api_generated.yaml
func (WorkspaceModel) GetAppIncludePath ¶
func (c WorkspaceModel) GetAppIncludePath(serviceName string) string
Path to include app.go
func (*WorkspaceModel) GetRepository ¶
func (c *WorkspaceModel) GetRepository() string
func (WorkspaceModel) GetSafeName ¶
func (c WorkspaceModel) GetSafeName() string
Name which can be used in generated go code
Click to show internal directories.
Click to hide internal directories.