|
|
@ -5,6 +5,7 @@ import (
|
|
|
|
"github.com/hashicorp/raft"
|
|
|
|
"github.com/hashicorp/raft"
|
|
|
|
"github.com/hashicorp/serf/serf"
|
|
|
|
"github.com/hashicorp/serf/serf"
|
|
|
|
"io"
|
|
|
|
"io"
|
|
|
|
|
|
|
|
"net"
|
|
|
|
"os"
|
|
|
|
"os"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
@ -39,6 +40,12 @@ type Config struct {
|
|
|
|
// by the WAN and LAN
|
|
|
|
// by the WAN and LAN
|
|
|
|
RPCAddr string
|
|
|
|
RPCAddr string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// RPCAdvertise is the address that is advertised to other nodes for
|
|
|
|
|
|
|
|
// the RPC endpoint. This can differ from the RPC address, if for example
|
|
|
|
|
|
|
|
// the RPCAddr is unspecified "0.0.0.0:8300", but this address must be
|
|
|
|
|
|
|
|
// reachable
|
|
|
|
|
|
|
|
RPCAdvertise net.Addr
|
|
|
|
|
|
|
|
|
|
|
|
// SerfLANConfig is the configuration for the intra-dc serf
|
|
|
|
// SerfLANConfig is the configuration for the intra-dc serf
|
|
|
|
SerfLANConfig *serf.Config
|
|
|
|
SerfLANConfig *serf.Config
|
|
|
|
|
|
|
|
|
|
|
|