steps

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 30 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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) 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 (*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

type IDSelector[T any] = func(T) string

type Predicate added in v1.4.0

type Predicate[T any] = func(actual, expected T) string

Jump to

Keyboard shortcuts

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