github.phpd.cn/hashicorp/consul@v1.4.5/api/connect.go (about) 1 package api 2 3 // Connect can be used to work with endpoints related to Connect, the 4 // feature for securely connecting services within Consul. 5 type Connect struct { 6 c *Client 7 } 8 9 // Connect returns a handle to the connect-related endpoints 10 func (c *Client) Connect() *Connect { 11 return &Connect{c} 12 }