meta

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdUpdate = "update"
	CmdNew    = "new"
	CmdModel  = "model"
	CmdClient = "client"
	CmdError  = "error"
	CmdDoc    = "doc"
)

cft Commands

View Source
const (
	ProtocPluginName = "protoc-gen-crafter"
	ThriftPluginName = "thrift-gen-crafter"
)

cft Plugins

View Source
const (
	LoadError           = 1
	GenerateLayoutError = 2
	PersistError        = 3
	PluginError         = 4
)

cft Errors

View Source
const (
	SetBodyParam      = "SetBodyParam(req).\n"
	ContentTypeFormat = "\"Content-Type\": \"%s\","
)
View Source
const DefaultServiceName = "crafter_service"
View Source
const EnvPluginMode = "CRAFTER_PLUGIN_MODE"
View Source
const (
	IdlProto = "proto"
)
View Source
const ManifestFile = ".cft"
View Source
const (
	ModelDir = "biz/model"
)
View Source
const SysType = runtime.GOOS

SysType is the running program's operating system type

View Source
const (
	TpCompilerProto = "protoc"
)
View Source
const Version = "v0.1.4"

Version cft version

View Source
const WindowsOS = "windows"

Variables

View Source
var GoVersion *gv.Version

Functions

This section is empty.

Types

type Backend

type Backend string

Backend Model Backends

const (
	BackendGolang Backend = "golang"
	BackendJava   Backend = "java"
	BackendPython Backend = "python"
	BackendRuby   Backend = "ruby"
	BackendRust   Backend = "rust"
)

type GeneratedJSON

type GeneratedJSON struct {
	ServiceGroup string   `json:"serviceGroup"`
	Module       string   `json:"module"`
	Clients      []string `json:"clients"`
}

func LoadGeneratedJson

func LoadGeneratedJson(filename string, generatedJson *GeneratedJSON) (*GeneratedJSON, error)

type Manifest

type Manifest struct {
	Version  string `yaml:"cftVersion"`
	ModelDir string `yaml:"modelDir"`
}

func (*Manifest) InitAndValidate

func (manifest *Manifest) InitAndValidate(dir string) error

func (*Manifest) Persist

func (manifest *Manifest) Persist(dir string) error

func (*Manifest) String

func (manifest *Manifest) String() string

type Mode

type Mode int

Mode cft run modes

Jump to

Keyboard shortcuts

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