Documentation
¶
Index ¶
- type BabbageFeature
- type Component
- func (c *Component) Close() error
- func (c *Component) DoGetHTTPServer(_ *config.Config, bindAddr string, router http.Handler) service.HTTPServer
- func (c *Component) DoGetHealthcheckOk(_ *config.Config, _, _, _ string) (service.HealthChecker, error)
- func (c *Component) DoGetRequestMiddleware() service.RequestMiddleware
- func (c *Component) InitialiseService() (http.Handler, error)
- func (c *Component) RegisterSteps(ctx *godog.ScenarioContext)
- func (c *Component) Reset() *Component
- type HTTPTestRequestMiddleware
- type LegacyCacheAPIFeature
- type ReleaseCalendarFeature
- type SearchControllerFeature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BabbageFeature ¶
type BabbageFeature struct { Server *httptest.Server Body string StatusCode int Headers map[string]string }
func NewBabbageFeature ¶
func NewBabbageFeature() *BabbageFeature
func (*BabbageFeature) RegisterSteps ¶
func (f *BabbageFeature) RegisterSteps(ctx *godog.ScenarioContext)
type Component ¶
type Component struct { componenttest.ErrorFeature Config *config.Config HTTPServer *http.Server ServiceRunning bool // contains filtered or unexported fields }
func NewComponent ¶
func (*Component) DoGetHTTPServer ¶
func (*Component) DoGetHealthcheckOk ¶
func (*Component) DoGetRequestMiddleware ¶
func (c *Component) DoGetRequestMiddleware() service.RequestMiddleware
func (*Component) RegisterSteps ¶
func (c *Component) RegisterSteps(ctx *godog.ScenarioContext)
type HTTPTestRequestMiddleware ¶
type HTTPTestRequestMiddleware struct{}
func (HTTPTestRequestMiddleware) GetMiddlewareFunction ¶
func (rm HTTPTestRequestMiddleware) GetMiddlewareFunction() func(http.Handler) http.Handler
type LegacyCacheAPIFeature ¶
type LegacyCacheAPIFeature struct { Server *httptest.Server // contains filtered or unexported fields }
func NewLegacyCacheAPIFeature ¶
func NewLegacyCacheAPIFeature() *LegacyCacheAPIFeature
func (*LegacyCacheAPIFeature) RegisterSteps ¶
func (f *LegacyCacheAPIFeature) RegisterSteps(ctx *godog.ScenarioContext)
func (*LegacyCacheAPIFeature) Reset ¶
func (f *LegacyCacheAPIFeature) Reset()
type ReleaseCalendarFeature ¶
type ReleaseCalendarFeature struct { Server *httptest.Server Body string StatusCode int Headers map[string]string }
func NewReleaseCalendarFeature ¶
func NewReleaseCalendarFeature() *ReleaseCalendarFeature
func (*ReleaseCalendarFeature) RegisterSteps ¶
func (f *ReleaseCalendarFeature) RegisterSteps(ctx *godog.ScenarioContext)
type SearchControllerFeature ¶ added in v1.7.0
type SearchControllerFeature struct { Server *httptest.Server Body string StatusCode int Headers map[string]string }
func NewSearchControllerFeature ¶ added in v1.7.0
func NewSearchControllerFeature() *SearchControllerFeature
func (*SearchControllerFeature) RegisterSteps ¶ added in v1.7.0
func (f *SearchControllerFeature) RegisterSteps(ctx *godog.ScenarioContext)
Click to show internal directories.
Click to hide internal directories.