Documentation ¶
Index ¶
Constants ¶
View Source
const (
TokenKey = "X-Consul-Token" // nolint: gosec
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockConsul ¶
type MockConsul struct {
// contains filtered or unexported fields
}
func NewMockConsul ¶
func NewMockConsul() *MockConsul
func (*MockConsul) ClearExpectedAccessToken ¶
func (mock *MockConsul) ClearExpectedAccessToken()
func (*MockConsul) SetExpectedAccessToken ¶
func (mock *MockConsul) SetExpectedAccessToken(token string)
func (*MockConsul) Start ¶
func (mock *MockConsul) Start() *httptest.Server
Click to show internal directories.
Click to hide internal directories.