Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conf ¶
type Conf struct { Enable bool `yaml:"enable" toml:"enable" json:"enable" default:"false"` //是否启用 Endpoints []string `yaml:"endpoints" toml:"endpoints" json:"endpoints"` //服务实例列表 Username string `yaml:"username" toml:"username" json:"username"` //用户名 Password string `yaml:"password" toml:"password" json:"password"` //密码 }
Conf 配置
<yaml example>
nats_conf:
endpoints: - "nats://127.0.0.1:4222" username: admin password: changeMe
<toml example>
::nats配置:: ¶
[nats_conf]
服务实例地址 ¶
endpoints = ["nats://127.0.0.1:4222"]
认证用户名 ¶
username = "admin"
认证密码 ¶
password = "changeMe"
Click to show internal directories.
Click to hide internal directories.