Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAPI ¶
type FakeAPI struct {
// contains filtered or unexported fields
}
FakeAPI contains all the information for a fake component API
type FeedbackComponent ¶
type FeedbackComponent struct {
APIFeature *componentTest.APIFeature
Config *config.Config
ErrorFeature componentTest.ErrorFeature
FakeAPIRouter *FakeAPI
HTTPServer *http.Server
ServiceRunning bool
StartTime time.Time
// contains filtered or unexported fields
}
func NewFeedbackComponent ¶
func NewFeedbackComponent() (c *FeedbackComponent, err error)
func (*FeedbackComponent) Close ¶
func (c *FeedbackComponent) Close() error
Close server running component.
func (*FeedbackComponent) InitAPIFeature ¶
func (c *FeedbackComponent) InitAPIFeature() *componentTest.APIFeature
InitAPIFeature initialises the ApiFeature
func (*FeedbackComponent) InitialiseService ¶
func (c *FeedbackComponent) InitialiseService() (http.Handler, error)
InitialiseService returns the http.Handler that's contained within the component.
func (*FeedbackComponent) RegisterSteps ¶
func (c *FeedbackComponent) RegisterSteps(ctx *godog.ScenarioContext)
type HealthCheckTest ¶
type HealthCheckTest struct {
Status string `json:"status"`
Version healthcheck.VersionInfo `json:"version"`
Uptime time.Duration `json:"uptime"`
StartTime time.Time `json:"start_time"`
Checks []*Check `json:"checks"`
}
HealthCheckTest represents a test healthcheck struct that mimics the real healthcheck struct
Click to show internal directories.
Click to hide internal directories.