doinit

package
v1.1.2139 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "create-service",
	Short: "Create a template service application from a list of task specs",
	Long:  "Create a template service application from a list of task specs.\nIf no task specs are provided, the command will look for task specs in the spec folder in the target directory, adding new code or deleting as appropriate.",
	RunE:  run,
	Args:  cobra.ArbitraryArgs,
}

Cmd is the cobra command object

Functions

This section is empty.

Types

type Function

type Function struct {
	TaskSpec   *model.TaskSpec
	CamelName  string
	PascalName string
	InVars     []Variable
	OutVars    []Variable
	FromFile   string
}

Function represents a single service task function.

func (Function) ReceiverIn

func (f Function) ReceiverIn() string

ReceiverIn returns the receiver representation of the function's input parameters.'

func (Function) ReceiverOut

func (f Function) ReceiverOut() string

ReceiverOut returns the receiver representation of the function's output parameters.'

func (Function) SenderIn

func (f Function) SenderIn() string

SenderIn returns the sender representation of the function's input parameters.'

func (Function) SenderOut

func (f Function) SenderOut() string

SenderOut returns the sender representation of the function's output parameters.'

type Variable

type Variable struct {
	Name     string
	SharType string
	GoType   string
	Getter   string
	Setter   string
	GoName   string
}

Variable represents a single input/output variable for a service task.

Jump to

Keyboard shortcuts

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