meta

package
v0.0.0-...-4aae350 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdUpdate = "update"
	CmdNew    = "new"
)

hz Commands

View Source
const (
	IdlThrift = "thrift"
	IdlProto  = "proto"
)

hz IDLs

View Source
const (
	TpCompilerThrift = "thriftgo"
	TpCompilerProto  = "protoc"
)

Third-party Compilers

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

hz Plugins

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

hz Errors

View Source
const (
	ModelDir   = "biz/model"
	RouterDir  = "biz/router"
	HandlerDir = "biz/handler"
)

Package Dir

View Source
const ManifestFile = ".hz"
View Source
const Version = "0.0.1"

Version hz version

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"
)

type Manifest

type Manifest struct {
	Version *gv.Version
}

func (Manifest) Persist

func (manifest Manifest) Persist(dir string) error

func (Manifest) String

func (manifest Manifest) String() string

func (*Manifest) Validate

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

type Mode

type Mode int

Mode hz run modes

Jump to

Keyboard shortcuts

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