代码拉取完成,页面将自动刷新
package xjtypes
//服务的名称等
type App struct {
Name string
Url string
Port int
Rpcport int
}
//如果服务都注册到ETCD,这个可以不要
type Register struct {
Url string
Port int
}
//如果服务间的调用都通过rpc,这个可以不要
type Gateway struct {
Url string
Port int
}
//如果配置使用本地配置文件, 这个可以不要
type Config struct {
Url string
Port int
}
//http和rpc服务的注册管理
type Etcd struct {
Addrs []string
LeaseTime int
}
//jwt验证的密钥和有效时间
type Auth struct {
AccessSecret string
AccessExpire int
}
//数据源
type Datasource struct {
Drivername string
Dsn string
}
//缓存
type Redis struct {
Addr string
Password string
Db int
}
//es搜索
type ElasticSearch struct {
Addr string
Username string
Password string
}
//NSQ消息
type Nsq struct {
Nsqds []string
Nsqlookupds []string
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。