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 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 ¶
func (*Manifest) InitAndValidate ¶
Click to show internal directories.
Click to hide internal directories.