Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockConsulResponse ¶
func SetupMockConsulResponse ¶
func StartTestConsulServer ¶
Types ¶
type MockConsul ¶
type MockConsul struct {
// contains filtered or unexported fields
}
func NewMockConsul ¶
func NewMockConsul(response string) *MockConsul
func (*MockConsul) GetMockServer ¶
func (self *MockConsul) GetMockServer() *httptest.Server
func (*MockConsul) ResetHandlerResponse ¶
func (self *MockConsul) ResetHandlerResponse(response string)
Click to show internal directories.
Click to hide internal directories.