2023-03-28 21:12:41 +01:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2018-03-27 16:50:17 -07:00
|
|
|
package api
|
|
|
|
|
2023-05-16 13:36:05 -05:00
|
|
|
// TelemetryCollectorName is the service name for the Consul Telemetry Collector
|
|
|
|
const TelemetryCollectorName string = "consul-telemetry-collector"
|
2023-03-10 15:52:54 -05:00
|
|
|
|
2018-03-27 16:50:17 -07: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 14:16:41 -07:00
|
|
|
// Connect returns a handle to the connect-related endpoints
|
2018-03-27 16:50:17 -07:00
|
|
|
func (c *Client) Connect() *Connect {
|
|
|
|
return &Connect{c}
|
|
|
|
}
|