mirror of
https://github.com/status-im/consul.git
synced 2025-02-01 00:16:27 +00:00
d59efd390c
- remove dep on consul main module - use 'consul tls' subcommands instead of tlsutil - use direct json config construction instead of agent/config structs - merge libcluster and libagent packages together - more widely use BuildContext - get the OSS/ENT runner stuff working properly - reduce some flakiness - fix some correctness related to http/https API
16 lines
438 B
Go
16 lines
438 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
|
|
}
|