steps

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Index

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
	// contains filtered or unexported fields
}

func NewComponent

func NewComponent() (*Component, error)

func (*Component) Close

func (c *Component) Close() error

func (*Component) DoGetAppClients added in v0.5.0

func (c *Component) DoGetAppClients(ctx context.Context, cfg *config.Config) *clients.ClientList

func (*Component) DoGetHTTPServer

func (c *Component) DoGetHTTPServer(bindAddr string, router http.Handler) service.HTTPServer

func (*Component) DoGetHealthcheckOk

func (c *Component) DoGetHealthcheckOk(cfg *config.Config, buildTime, gitCommit, version string) (service.HealthChecker, error)

func (*Component) DoGetMigrator added in v0.4.0

func (c *Component) DoGetMigrator(ctx context.Context, datastore store.Datastore, clientList *clients.ClientList) (migrator.Migrator, error)

func (*Component) DoGetMongoDB added in v0.4.0

func (c *Component) DoGetMongoDB(ctx context.Context, cfg config.MongoConfig) (store.MongoDB, error)

func (*Component) InitialiseService

func (c *Component) InitialiseService() (http.Handler, error)

func (*Component) Reset

func (c *Component) Reset() *Component

type MigrationComponent added in v0.6.0

type MigrationComponent struct {
	componenttest.ErrorFeature

	Config         *config.Config
	HTTPServer     *http.Server
	ServiceRunning bool

	MongoClient *mongo.Mongo

	StartTime time.Time
	// contains filtered or unexported fields
}

func NewMigrationComponent added in v0.6.0

func NewMigrationComponent(mongoFeat *componenttest.MongoFeature) (*MigrationComponent, error)

func (*MigrationComponent) Close added in v0.6.0

func (c *MigrationComponent) Close() error

func (*MigrationComponent) DoGetAppClients added in v0.6.0

func (c *MigrationComponent) DoGetAppClients(ctx context.Context, cfg *config.Config) *clients.ClientList

func (*MigrationComponent) DoGetHTTPServer added in v0.6.0

func (c *MigrationComponent) DoGetHTTPServer(bindAddr string, router http.Handler) service.HTTPServer

func (*MigrationComponent) DoGetHealthcheckOk added in v0.6.0

func (c *MigrationComponent) DoGetHealthcheckOk(cfg *config.Config, _, _, _ string) (service.HealthChecker, error)

func (*MigrationComponent) DoGetMigrator added in v0.6.0

func (c *MigrationComponent) DoGetMigrator(ctx context.Context, datastore store.Datastore, clientList *clients.ClientList) (migrator.Migrator, error)

func (*MigrationComponent) DoGetMongoDB added in v0.6.0

func (c *MigrationComponent) DoGetMongoDB(ctx context.Context, cfg config.MongoConfig) (store.MongoDB, error)

func (*MigrationComponent) InitAPIFeature added in v0.6.0

func (c *MigrationComponent) InitAPIFeature() *componenttest.APIFeature

func (*MigrationComponent) InitialiseService added in v0.6.0

func (c *MigrationComponent) InitialiseService() (http.Handler, error)

func (*MigrationComponent) RegisterSteps added in v0.6.0

func (c *MigrationComponent) RegisterSteps(ctx *godog.ScenarioContext)

func (*MigrationComponent) Reset added in v0.6.0

func (c *MigrationComponent) Reset() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL