Documentation
¶
Index ¶
- Variables
- type InteractivesApiComponent
- func (c *InteractivesApiComponent) Close() error
- func (f *InteractivesApiComponent) DoGetAuthorisationMiddleware(ctx context.Context, cfg *authorisation.Config) (authorisation.Middleware, error)
- func (f *InteractivesApiComponent) DoGetFSClient(ctx context.Context, cfg *config.Config) (api.FilesService, error)
- func (f *InteractivesApiComponent) DoGetGenerators() (data.Generator, data.Generator, data.Generator)
- func (c *InteractivesApiComponent) DoGetHTTPServer(bindAddr string, router http.Handler) service.HTTPServer
- func (f *InteractivesApiComponent) DoGetHealthcheckOk(_ *config.Config, _ string, _ string, _ string) (service.HealthChecker, error)
- func (c *InteractivesApiComponent) DoGetMockedKafkaProducerOk(ctx context.Context, cfg *config.Config) (kafka.IProducer, error)
- func (f *InteractivesApiComponent) DoGetMongoDB(_ context.Context, _ *config.Config) (api.MongoServer, error)
- func (f *InteractivesApiComponent) DoGetResponder(_ context.Context, _ *config.Config) (*responder.Responder, error)
- func (f *InteractivesApiComponent) DoS3Client(_ context.Context, _ *config.Config) (api.S3Interface, error)
- func (c *InteractivesApiComponent) IGetWithFilterString(path string) error
- func (c *InteractivesApiComponent) IPostToWithFormData(formFile, path string, body *godog.DocString) error
- func (c *InteractivesApiComponent) IPostToWithFormDataAsAdmin(formFile, path string, body *godog.DocString) error
- func (c *InteractivesApiComponent) IShouldReceiveTheFollowingModelResponse(expectedCodeStr string, expectedAPIResponse *godog.DocString) error
- func (c *InteractivesApiComponent) InitialiseService() (http.Handler, error)
- func (c *InteractivesApiComponent) RegisterSteps(ctx *godog.ScenarioContext)
- func (c *InteractivesApiComponent) Reset() error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
WellKnownTestTime, _ = time.Parse("2006-01-02T15:04:05Z", "2021-01-01T00:00:00Z")
)
Functions ¶
This section is empty.
Types ¶
type InteractivesApiComponent ¶
type InteractivesApiComponent struct {
componenttest.ErrorFeature
ApiFeature *componenttest.APIFeature
MongoClient *mongo.Mongo
Config *config.Config
HTTPServer *http.Server
ServiceRunning bool
// contains filtered or unexported fields
}
func NewInteractivesApiComponent ¶
func NewInteractivesApiComponent(mongoURI string) (*InteractivesApiComponent, error)
func (*InteractivesApiComponent) Close ¶
func (c *InteractivesApiComponent) Close() error
func (*InteractivesApiComponent) DoGetAuthorisationMiddleware ¶
func (f *InteractivesApiComponent) DoGetAuthorisationMiddleware(ctx context.Context, cfg *authorisation.Config) (authorisation.Middleware, error)
func (*InteractivesApiComponent) DoGetFSClient ¶
func (f *InteractivesApiComponent) DoGetFSClient(ctx context.Context, cfg *config.Config) (api.FilesService, error)
func (*InteractivesApiComponent) DoGetGenerators ¶
func (*InteractivesApiComponent) DoGetHTTPServer ¶
func (c *InteractivesApiComponent) DoGetHTTPServer(bindAddr string, router http.Handler) service.HTTPServer
func (*InteractivesApiComponent) DoGetHealthcheckOk ¶
func (f *InteractivesApiComponent) DoGetHealthcheckOk(_ *config.Config, _ string, _ string, _ string) (service.HealthChecker, error)
func (*InteractivesApiComponent) DoGetMockedKafkaProducerOk ¶
func (*InteractivesApiComponent) DoGetMongoDB ¶
func (f *InteractivesApiComponent) DoGetMongoDB(_ context.Context, _ *config.Config) (api.MongoServer, error)
func (*InteractivesApiComponent) DoGetResponder ¶
func (*InteractivesApiComponent) DoS3Client ¶
func (f *InteractivesApiComponent) DoS3Client(_ context.Context, _ *config.Config) (api.S3Interface, error)
func (*InteractivesApiComponent) IGetWithFilterString ¶
func (c *InteractivesApiComponent) IGetWithFilterString(path string) error
func (*InteractivesApiComponent) IPostToWithFormData ¶
func (c *InteractivesApiComponent) IPostToWithFormData(formFile, path string, body *godog.DocString) error
func (*InteractivesApiComponent) IPostToWithFormDataAsAdmin ¶
func (c *InteractivesApiComponent) IPostToWithFormDataAsAdmin(formFile, path string, body *godog.DocString) error
func (*InteractivesApiComponent) IShouldReceiveTheFollowingModelResponse ¶
func (c *InteractivesApiComponent) IShouldReceiveTheFollowingModelResponse(expectedCodeStr string, expectedAPIResponse *godog.DocString) error
func (*InteractivesApiComponent) InitialiseService ¶
func (c *InteractivesApiComponent) InitialiseService() (http.Handler, error)
func (*InteractivesApiComponent) RegisterSteps ¶
func (c *InteractivesApiComponent) RegisterSteps(ctx *godog.ScenarioContext)
func (*InteractivesApiComponent) Reset ¶
func (c *InteractivesApiComponent) Reset() error
Click to show internal directories.
Click to hide internal directories.