Documentation
¶
Index ¶
- type BundleComponent
- func (c *BundleComponent) Close() error
- 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) InitialiseService() (http.Handler, error)
- func (c *BundleComponent) RegisterSteps(ctx *godog.ScenarioContext)
- func (c *BundleComponent) Reset() error
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
// 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) 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) 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
Click to show internal directories.
Click to hide internal directories.