Documentation ¶
Index ¶
Constants ¶
View Source
const (
ConsulHTTPPortBase = 28500 // some port that's not Consul's production port
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestingConsulServer ¶
type TestingConsulServer struct { NodeName string Client *capi.Client Config *capi.Config // contains filtered or unexported fields }
func NewTestingConsulServer ¶
func NewTestingConsulServer() *TestingConsulServer
func (*TestingConsulServer) Start ¶
func (server *TestingConsulServer) Start() error
Start consul in dev mode Logs will go to stdout/stderr Each outer Test* func will get a freshly restarted consul
func (*TestingConsulServer) Stop ¶
func (server *TestingConsulServer) Stop() error
Stop consul. Wait up to 2 seconds before killing it forcefully
Click to show internal directories.
Click to hide internal directories.