kitgen

package
v0.0.0-...-495ec52 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileTemplateToFile

func CompileTemplateToFile(templatePath string, outputFilePath string, serviceConfig ServiceConfig) error

func CompileTemplatesToPath

func CompileTemplatesToPath(templateFolder string, outputPath string, serviceConfig ServiceConfig) error

func CreateService

func CreateService(serviceName string) error

Types

type MethodParameter

type MethodParameter struct {
	Name string
	Type string
}

type ServiceConfig

type ServiceConfig struct {
	Name          string
	RepoPath      string
	TemplateFuncs template.FuncMap
	Methods       []ServiceMethod
	IsNewService  bool
}

func BuildServiceConfigFromPath

func BuildServiceConfigFromPath(path string) ServiceConfig

type ServiceMethod

type ServiceMethod struct {
	Name              string
	Parameters        []MethodParameter
	Results           []MethodParameter
	HasImplementation bool
}

Jump to

Keyboard shortcuts

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