2023-03-28 20:12:41 +00:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2018-03-27 23:50:17 +00:00
|
|
|
package api
|
|
|
|
|
2023-05-16 18:36:05 +00:00
|
|
|
// TelemetryCollectorName is the service name for the Consul Telemetry Collector
|
|
|
|
const TelemetryCollectorName string = "consul-telemetry-collector"
|
2023-03-10 20:52:54 +00:00
|
|
|
|
2018-03-27 23:50:17 +00:00
|
|
|
// Connect can be used to work with endpoints related to Connect, the
|
|
|
|
// feature for securely connecting services within Consul.
|
|
|
|
type Connect struct {
|
|
|
|
c *Client
|
|
|
|
}
|
|
|
|
|
2018-03-28 21:16:41 +00:00
|
|
|
// Connect returns a handle to the connect-related endpoints
|
2018-03-27 23:50:17 +00:00
|
|
|
func (c *Client) Connect() *Connect {
|
|
|
|
return &Connect{c}
|
|
|
|
}
|