command

package
v0.0.0-...-796898b Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute cmd start

Types

type Bow

type Bow struct {
	Port                 int    `yaml:"Port"`                 // 开放端口,便于其它应用访问
	LogPath              string `yaml:"LogPath"`              // 日志文件输出路径
	HealthCheck          bool   `yaml:"HealthCheck"`          // 是否开启健康检查
	ServerManager        bool   `yaml:"ServerManager"`        // 是否启用服务管理功能
	LoadBalance          bool   `yaml:"LoadBalance"`          // 是否启用负载均衡
	OpenTLS              bool   `yaml:"OpenTLS"`              // 是否开启 TLS
	ConfigPath           string `yaml:"ConfigPath"`           // Bow 配置文件路径
	DiscoveryInit        bool   `yaml:"DiscoveryInit"`        // 是否启用发现服务
	DiscoveryComponent   string `yaml:"DiscoveryComponent"`   // 所启用发现服务组件名
	DiscoveryURL         string `yaml:"DiscoveryURL"`         // 发现服务地址
	DiscoveryReceiveHost string `yaml:"DiscoveryReceiveHost"` // 发现服务收到当前注册服务的地址,端口号默认通过 PORT 获取
}

Bow bow object by cmd.yml format

type Shunt

type Shunt struct {
	Port                 int    `yaml:"Port"`                 // 开放端口,便于其它应用访问
	LogPath              string `yaml:"LogPath"`              // 日志文件输出路径
	HealthCheck          bool   `yaml:"HealthCheck"`          // 是否开启健康检查
	ServerManager        bool   `yaml:"ServerManager"`        // 是否启用服务管理功能
	OpenTLS              bool   `yaml:"OpenTLS"`              // 是否开启 TLS
	ConfigPath           string `yaml:"ConfigPath"`           // Bow 配置文件路径
	DiscoveryInit        bool   `yaml:"DiscoveryInit"`        // 是否启用发现服务
	DiscoveryComponent   string `yaml:"DiscoveryComponent"`   // 所启用发现服务组件名
	DiscoveryURL         string `yaml:"DiscoveryURL"`         // 发现服务地址
	DiscoveryReceiveHost string `yaml:"DiscoveryReceiveHost"` // 发现服务收到当前注册服务的地址,端口号默认通过 PORT 获取
}

Shunt shunt object by cmd.yml format

type YmlBow

type YmlBow struct {
	Bow Bow `yaml:"bow"`
}

YmlBow bow object by cmd.yml format

type YmlShunt

type YmlShunt struct {
	Shunt Shunt `yaml:"shunt"`
}

YmlShunt shunt object by cmd.yml format

Jump to

Keyboard shortcuts

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