Documentation
¶
Index ¶
- type Component
- func (c *Component) Close() error
- func (c *Component) DoGetHTTPServer(bindAddr string, router http.Handler) service.HTTPServer
- func (c *Component) DoGetHealthcheckOk(_ *config.Config, _, _, _ string) (service.HealthChecker, error)
- func (c *Component) DoGetMongoDB(_ context.Context, _ *config.Config) (service.DataStore, error)
- func (c *Component) InitialiseService() (http.Handler, error)
- func (c *Component) RegisterSteps(ctx *godog.ScenarioContext)
- func (c *Component) Reset() *Component
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
componenttest.ErrorFeature
Config *config.Config
HTTPServer *http.Server
ServiceRunning bool
MongoClient *mongo.Mongo
// contains filtered or unexported fields
}
func NewComponent ¶
func (*Component) DoGetHTTPServer ¶
func (*Component) DoGetHealthcheckOk ¶
func (*Component) DoGetMongoDB ¶
func (*Component) RegisterSteps ¶
func (c *Component) RegisterSteps(ctx *godog.ScenarioContext)
Click to show internal directories.
Click to hide internal directories.