Documentation
¶
Index ¶
- type BundleComponent
- func (c *BundleComponent) Close() error
- func (c *BundleComponent) DoGetAuthorisationMiddleware(ctx context.Context, cfg *authorisation.Config) (authorisation.Middleware, error)
- func (c *BundleComponent) DoGetDataBundleSlackClient(slackConfig *slack.SlackConfig, apiToken string, enabled bool) (slack.Clienter, error)
- func (c *BundleComponent) DoGetDatasetAPIClient(datasetAPIURL string) datasetAPISDK.Clienter
- func (c *BundleComponent) DoGetHTTPServer(bindAddr string, router http.Handler) service.HTTPServer
- func (c *BundleComponent) DoGetHealthcheckOk(*config.Config, string, string, string) (service.HealthChecker, error)
- func (c *BundleComponent) DoGetMongoDB(context.Context, config.MongoConfig) (store.MongoDB, error)
- func (c *BundleComponent) DoGetPermissionsAPIClient(permissionsAPIURL string) permissionsAPISDK.Clienter
- func (c *BundleComponent) InitialiseService() (http.Handler, error)
- func (c *BundleComponent) RegisterSteps(ctx *godog.ScenarioContext)
- func (c *BundleComponent) Reset() error
- type IDSelector
- type Predicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleComponent ¶ added in v1.0.0
type BundleComponent struct {
ErrorFeature componenttest.ErrorFeature
MongoClient *mongo.Mongo
Config *config.Config
HTTPServer *http.Server
ServiceRunning bool
AuthorisationMiddleware authorisation.Middleware
DatasetAPIVersions []*datasetAPIModels.Version
// contains filtered or unexported fields
}
func NewBundleComponent ¶ added in v1.0.0
func NewBundleComponent(mongoURI string) (*BundleComponent, error)
func (*BundleComponent) Close ¶ added in v1.0.0
func (c *BundleComponent) Close() error
func (*BundleComponent) DoGetAuthorisationMiddleware ¶ added in v1.2.0
func (c *BundleComponent) DoGetAuthorisationMiddleware(ctx context.Context, cfg *authorisation.Config) (authorisation.Middleware, error)
func (*BundleComponent) DoGetDataBundleSlackClient ¶ added in v1.12.0
func (c *BundleComponent) DoGetDataBundleSlackClient(slackConfig *slack.SlackConfig, apiToken string, enabled bool) (slack.Clienter, error)
func (*BundleComponent) DoGetDatasetAPIClient ¶ added in v1.3.0
func (c *BundleComponent) DoGetDatasetAPIClient(datasetAPIURL string) datasetAPISDK.Clienter
func (*BundleComponent) DoGetHTTPServer ¶ added in v1.0.0
func (c *BundleComponent) DoGetHTTPServer(bindAddr string, router http.Handler) service.HTTPServer
func (*BundleComponent) DoGetHealthcheckOk ¶ added in v1.0.0
func (c *BundleComponent) DoGetHealthcheckOk(*config.Config, string, string, string) (service.HealthChecker, error)
func (*BundleComponent) DoGetMongoDB ¶ added in v1.0.0
func (c *BundleComponent) DoGetMongoDB(context.Context, config.MongoConfig) (store.MongoDB, error)
func (*BundleComponent) DoGetPermissionsAPIClient ¶ added in v1.12.0
func (c *BundleComponent) DoGetPermissionsAPIClient(permissionsAPIURL string) permissionsAPISDK.Clienter
func (*BundleComponent) InitialiseService ¶ added in v1.0.0
func (c *BundleComponent) InitialiseService() (http.Handler, error)
func (*BundleComponent) RegisterSteps ¶ added in v1.0.0
func (c *BundleComponent) RegisterSteps(ctx *godog.ScenarioContext)
func (*BundleComponent) Reset ¶ added in v1.0.0
func (c *BundleComponent) Reset() error
type IDSelector ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.