tpl

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTplFs

func GetTplFs() embed.FS

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

Jump to

Keyboard shortcuts

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