Documentation
¶
Index ¶
- type MongoFeature
- type PopulationTypesComponent
- func (c *PopulationTypesComponent) Close() error
- func (c *PopulationTypesComponent) GetCantabularClient(_ config.CantabularConfig) service.CantabularClient
- func (c *PopulationTypesComponent) GetDatasetAPIClient(_ *config.Config) service.DatasetAPIClient
- func (c *PopulationTypesComponent) GetHealthcheck(cfg *config.Config, buildTime string, gitCommit string, version string) (service.HealthChecker, error)
- func (c *PopulationTypesComponent) GetHttpServer(addr string, router http.Handler) service.HTTPServer
- func (c *PopulationTypesComponent) GetMongoClient(_ context.Context, _ *config.Config) (service.MongoClient, error)
- func (c *PopulationTypesComponent) GetResponder() service.Responder
- func (c *PopulationTypesComponent) InitialiseService() (http.Handler, error)
- func (c *PopulationTypesComponent) RegisterSteps(ctx *godog.ScenarioContext)
- func (c *PopulationTypesComponent) Reset() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoFeature ¶ added in v1.22.0
type MongoFeature struct {
componenttest.ErrorFeature
*componenttest.MongoFeature
// contains filtered or unexported fields
}
func NewMongoFeature ¶ added in v1.22.0
func NewMongoFeature(ef componenttest.ErrorFeature, cfg *config.Config) *MongoFeature
func (*MongoFeature) RegisterSteps ¶ added in v1.22.0
func (mf *MongoFeature) RegisterSteps(ctx *godog.ScenarioContext)
type PopulationTypesComponent ¶ added in v1.1.0
type PopulationTypesComponent struct {
componenttest.ErrorFeature
Config *config.Config
ServiceRunning bool
HttpServer *http.Server
InitialiserMock service.Initialiser
MongoFeature *MongoFeature
CantabularApiExt *httpfake.HTTPFake
CantabularSrv *httpfake.HTTPFake
// contains filtered or unexported fields
}
func NewComponent ¶
func NewComponent(t testing.TB, zebedeeURL string) (*PopulationTypesComponent, error)
func (*PopulationTypesComponent) Close ¶ added in v1.1.0
func (c *PopulationTypesComponent) Close() error
func (*PopulationTypesComponent) GetCantabularClient ¶ added in v1.1.0
func (c *PopulationTypesComponent) GetCantabularClient(_ config.CantabularConfig) service.CantabularClient
func (*PopulationTypesComponent) GetDatasetAPIClient ¶ added in v1.2.0
func (c *PopulationTypesComponent) GetDatasetAPIClient(_ *config.Config) service.DatasetAPIClient
func (*PopulationTypesComponent) GetHealthcheck ¶ added in v1.1.0
func (c *PopulationTypesComponent) GetHealthcheck(cfg *config.Config, buildTime string, gitCommit string, version string) (service.HealthChecker, error)
func (*PopulationTypesComponent) GetHttpServer ¶ added in v1.1.0
func (c *PopulationTypesComponent) GetHttpServer(addr string, router http.Handler) service.HTTPServer
func (*PopulationTypesComponent) GetMongoClient ¶ added in v1.22.0
func (c *PopulationTypesComponent) GetMongoClient(_ context.Context, _ *config.Config) (service.MongoClient, error)
func (*PopulationTypesComponent) GetResponder ¶ added in v1.1.0
func (c *PopulationTypesComponent) GetResponder() service.Responder
func (*PopulationTypesComponent) InitialiseService ¶ added in v1.1.0
func (c *PopulationTypesComponent) InitialiseService() (http.Handler, error)
func (*PopulationTypesComponent) RegisterSteps ¶ added in v1.1.0
func (c *PopulationTypesComponent) RegisterSteps(ctx *godog.ScenarioContext)
func (*PopulationTypesComponent) Reset ¶ added in v1.1.0
func (c *PopulationTypesComponent) Reset() error
Click to show internal directories.
Click to hide internal directories.