generator

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIGenerator

type APIGenerator struct{}

func (APIGenerator) Generate

func (APIGenerator) Generate(projectPath, apiName string) error

func (APIGenerator) GenerateCRUD

func (APIGenerator) GenerateCRUD(projectPath string, database dbschema.Database) error

type AuthGenerator

type AuthGenerator struct{ Runner CommandRunner }

func (AuthGenerator) Generate

func (g AuthGenerator) Generate(ctx context.Context, projectPath string, options AuthOptions) error

type AuthOptions

type AuthOptions struct{ JWT bool }

type CommandRunner

type CommandRunner interface {
	Run(ctx context.Context, dir, name string, args ...string) error
}

type ExecRunner

type ExecRunner struct{}

func (ExecRunner) Run

func (ExecRunner) Run(ctx context.Context, dir, name string, args ...string) error

type MethodGenerator

type MethodGenerator struct{}

func (MethodGenerator) Generate

func (MethodGenerator) Generate(projectPath string, options MethodOptions) error

type MethodOptions

type MethodOptions struct {
	Folder     string
	Name       string
	HTTPMethod string
	Path       string
}

type ProjectGenerator

type ProjectGenerator struct {
	Runner CommandRunner
	Output io.Writer
}

func (ProjectGenerator) Generate

func (g ProjectGenerator) Generate(ctx context.Context, options ProjectOptions) (returnErr error)

type ProjectOptions

type ProjectOptions struct {
	Name         string
	Module       string
	Architecture string
	Database     string
	ParentPath   string
	DBHost       string
	DBPort       uint16
	DBName       string
	DBUser       string
	Schema       *dbschema.Database
}

type SwaggerGenerator

type SwaggerGenerator struct{}

func (SwaggerGenerator) Generate

func (SwaggerGenerator) Generate(projectPath string) (returnErr error)

type UploadGenerator

type UploadGenerator struct{}

func (UploadGenerator) Generate

func (UploadGenerator) Generate(projectPath string) error

type WorkspaceGenerator

type WorkspaceGenerator struct {
	Runner CommandRunner
	Output io.Writer
}

func (WorkspaceGenerator) AddService

func (g WorkspaceGenerator) AddService(ctx context.Context, root, name string) error

func (WorkspaceGenerator) Generate

func (g WorkspaceGenerator) Generate(ctx context.Context, options WorkspaceOptions) (returnErr error)

type WorkspaceOptions

type WorkspaceOptions struct {
	Name, Module, Database, ParentPath string
	Services                           []string
}

Jump to

Keyboard shortcuts

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