Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // 將此服務註冊到本地特工(Agent)。 Register(r *api.AgentServiceRegistration) error // 將此服務從本地特工中移除。 Deregister(r *api.AgentServiceRegistration) error // Service Service(service, tag string, passingOnly bool, queryOpts *api.QueryOptions) ([]*api.ServiceEntry, *api.QueryMeta, error) // 回傳一個最底層的 Consul 客戶端。 Client() *api.Client }
Client 包裹了一個 Consul API。
Click to show internal directories.
Click to hide internal directories.