consts

package
v0.0.0-...-aec0189 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Kitex = "nc_kitex"
	Hertz = "nc_hertz"
)
View Source
const (
	RPC  = "RPC"
	HTTP = "HTTP"
)
View Source
const (
	Server = "server"
	Client = "client"
	DB     = "db"
)
View Source
const (
	Thrift   = "thrift"
	Protobuf = "protobuf"
)
View Source
const (
	Slash      = "/"
	BackSlash  = "\\"
	BlackSpace = " "
	Comma      = ";"
	Tilde      = "~"
	LineBreak  = "\n"
)
View Source
const (
	Src                  = "src"
	DefaultHZModelDir    = "hertz_gen"
	DefaultHZClientDir   = "biz/http"
	DefaultKitexModelDir = "kitex_gen"
	DefaultDbOutDir      = "biz/dal/query"
	Standard             = "standard"
	CurrentDir           = "."
)

Package Name

View Source
const (
	KitexExtensionYaml = "extensions.yaml"
	LayoutFile         = "layout.yaml"
	PackageLayoutFile  = "package.yaml"
	SuffixGit          = ".git"
	DefaultDbOutFile   = "gen.go"
	Main               = "main.go"
	GoMod              = "go.mod"
	HzFile             = ".hz"
)

File Name

View Source
const (
	Zk      = "ZK"
	Nacos   = "NACOS"
	Etcd    = "ETCD"
	Polaris = "POLARIS"
)

Registration Center

View Source
const (
	Go     = "go"
	GOPATH = "GOPATH"
	Env    = "env"
	Mod    = "mod"
	Init   = "init"

	OutDir   = "out_dir"
	Verbose  = "verbose"
	Template = "template"

	Service         = "service"
	ServiceType     = "type"
	Module          = "module"
	IDLPath         = "idl"
	Registry        = "registry"
	Pass            = "pass"
	ProtoSearchPath = "proto_search_path"

	DSN           = "dsn"
	DBType        = "db_type"
	Tables        = "tables"
	ExcludeTables = "exclude_tables"
	OnlyModel     = "only_model"
	OutFile       = "out_file"
	UnitTest      = "unittest"
	ModelPkgName  = "model_pkg"
	Nullable      = "nullable"
	Signable      = "signable"
	IndexTag      = "index_tag"
	TypeTag       = "type_tag"
	HexTag        = "hex"
)
View Source
const SysType = runtime.GOOS

SysType is the running program's operating system type

View Source
const WindowsOS = "windows"

Variables

This section is empty.

Functions

This section is empty.

Types

type DataBaseType

type DataBaseType string
const (
	MySQL     DataBaseType = "mysql"
	SQLServer DataBaseType = "sqlserver"
	Sqlite    DataBaseType = "sqlite"
	Postgres  DataBaseType = "postgres"
)

DataBase Name

type ToolType

type ToolType string
const (
	Hz        ToolType = "hz"
	KitexTool ToolType = "kitex"
)

Tool Name

Jump to

Keyboard shortcuts

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