mirror of
https://github.com/status-im/consul.git
synced 2025-03-02 06:10:44 +00:00
* Refactoring the peering integ test to accommodate coming changes of other upgrade scenarios. - Add a utils package under test that contains methods to set up various test scenarios. - Deduplication: have a single CreatingPeeringClusterAndSetup replace CreatingAcceptingClusterAndSetup and CreateDialingClusterAndSetup. - Separate peering cluster creation and server registration. * Apply suggestions from code review Co-authored-by: Dan Stough <dan.stough@hashicorp.com>
18 lines
443 B
Go
18 lines
443 B
Go
package service
|
|
|
|
import (
|
|
"github.com/hashicorp/consul/api"
|
|
)
|
|
|
|
// Service represents a process that will be registered with the
|
|
// Consul catalog, including Consul components such as sidecars and gateways
|
|
type Service interface {
|
|
Terminate() error
|
|
GetName() string
|
|
GetAddr() (string, int)
|
|
Start() (err error)
|
|
// Export a service to the peering cluster
|
|
Export(partition, peer string, client *api.Client) error
|
|
GetServiceName() string
|
|
}
|