# Functions
NewPublisher 返回一个发布器 Publisher。 endpoints 是 etcd 集群的主机。 key:value 是待发布的键值对。 opts 是自定义发布器的方法。.
NewSubscriber 返回一个订阅器。 endpoints 是 etcd 集群的主机列表。 key 是待订阅的键。 opts 用于自定义订阅器。.
RegisterAccount 将用户名/密码注册到给定的 etcd 集群。.
RegisterTLS 将证书注册到给定的 etcd 集群。.
WithId 自定义发布器 Publisher 的 id。.
WithPubEtcdAccount 自定义 etcd 的用户名/密码。.
WithPubEtcdTLS 自定义 etcd 的 TLS 证书。.
# Variables
TimeToLive 是在 etcd 中存活的时间。.
# Structs
EtcdConfig 是基于 etcd 给定键的配置项。.
No description provided by the author
No description provided by the author