Documentation
¶
Overview ¶
Example of a daemon with echo service
Index ¶
- Constants
- Variables
- type Cli
- type Context
- type Hydra
- type ICli
- type MicroApp
- type Option
- func WithClusterName(clusterName string) Option
- func WithDebug() Option
- func WithName(name string) Option
- func WithPlatName(platName string) Option
- func WithProduct() Option
- func WithRegistry(addr string) Option
- func WithRemoteLogger() Option
- func WithRemoteQueryService(remoteQueryService bool) Option
- func WithServerTypes(serverType ...string) Option
- func WithSystemName(systemName string) Option
Constants ¶
View Source
const ( ModeInstall = "install" ModeRun = "run" ModeConf = "conf" ModeRegistry = "registry" ModeService = "service" )
Variables ¶
View Source
var VERSION = "2.0.0"
VERSION 版本号
Functions ¶
This section is empty.
Types ¶
type Hydra ¶
type Hydra struct {
// contains filtered or unexported fields
}
Hydra hydra app
type ICli ¶
type ICli interface {
//Append 添加命令行参数
Append(mode string, flag cli.Flag)
//Validate 添加验证函数
Validate(mode string, f func(*cli.Context) error)
//Context 获取命令行上下文
Context() *cli.Context
// contains filtered or unexported methods
}
ICli 命令行参数
type MicroApp ¶
type MicroApp struct {
Conf *creator.Binder
component.IComponentRegistry
Cli ICli
// contains filtered or unexported fields
}
MicroApp 微服务应用
Source Files
¶
Click to show internal directories.
Click to hide internal directories.