feature

package
v1.49.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDownloadVariantFuncMock

func GetDownloadVariantFuncMock(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, imageID, variant string) (image.ImageDownload, error)

func GetHomepageContentFuncMock

func GetHomepageContentFuncMock(ctx context.Context, userAccessToken, collectionID, lang, path string) (zebedee.HomepageContent, error)

func GetSubtopicsPublicFuncMock

func GetSubtopicsPublicFuncMock(ctx context.Context, reqHeaders sdk.Headers, id string) (*models.PublicSubtopics, apiError.Error)

func GetTimeseriesMainFigureFuncMock

func GetTimeseriesMainFigureFuncMock(ctx context.Context, userAuthToken, collectionID, lang, uri string) (zebedee.TimeseriesMainFigure, error)

func GetTopicPublicFuncMock added in v1.29.0

func GetTopicPublicFuncMock(ctx context.Context, reqHeaders sdk.Headers, id string) (*models.Topic, apiError.Error)

Types

type HealthCheckerMock

type HealthCheckerMock struct{}

Mocks

func NewHealthCheckerMock

func NewHealthCheckerMock() *HealthCheckerMock

func (*HealthCheckerMock) AddCheck

func (h *HealthCheckerMock) AddCheck(name string, checker healthcheck.Checker) (err error)

func (*HealthCheckerMock) Handler

func (h *HealthCheckerMock) Handler(w http.ResponseWriter, req *http.Request)

func (*HealthCheckerMock) Start

func (h *HealthCheckerMock) Start(ctx context.Context)

func (*HealthCheckerMock) Stop

func (h *HealthCheckerMock) Stop()

type HomePageComponent

type HomePageComponent struct {
	Config *config.Config

	HTTPServer     *http.Server
	ServiceRunning bool
	// contains filtered or unexported fields
}

func New

func (*HomePageComponent) CensusHubFlagsAreEnabled added in v1.38.0

func (c *HomePageComponent) CensusHubFlagsAreEnabled() error

func (*HomePageComponent) DoGetHTTPServer

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

func (*HomePageComponent) DoGetHealthCheck

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

func (*HomePageComponent) DoGetHealthClient

func (c *HomePageComponent) DoGetHealthClient(name, url string) *health.Client

func (*HomePageComponent) RegisterSteps added in v1.38.0

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

func (*HomePageComponent) StopService

func (c *HomePageComponent) StopService(ctx context.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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