mirror of
https://github.com/status-im/consul.git
synced 2025-03-02 14:20:39 +00:00
18 lines
330 B
Go
18 lines
330 B
Go
|
package node
|
||
|
|
||
|
import "github.com/hashicorp/consul/api"
|
||
|
|
||
|
// Node represent a Consul node abstraction
|
||
|
type Node interface {
|
||
|
Terminate() error
|
||
|
GetClient() *api.Client
|
||
|
GetAddr() (string, int)
|
||
|
}
|
||
|
|
||
|
// Config is a set of configurations required to create a Node
|
||
|
type Config struct {
|
||
|
HCL string
|
||
|
Version string
|
||
|
Cmd []string
|
||
|
}
|