steps

package
v1.23.3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 15 Imported by: 0 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 Check

type Check struct {
	Name        string     `json:"name"`
	Status      string     `json:"status"`
	StatusCode  int        `json:"status_code"`
	Message     string     `json:"message"`
	LastChecked *time.Time `json:"last_checked"`
	LastSuccess *time.Time `json:"last_success"`
	LastFailure *time.Time `json:"last_failure"`
}

type FakeAPI

type FakeAPI struct {
	// contains filtered or unexported fields
}

FakeAPI contains all the information for a fake component API

func NewFakeAPI

func NewFakeAPI() *FakeAPI

NewFakeAPI creates a new fake component API

func (*FakeAPI) Close

func (f *FakeAPI) Close()

Close closes the fake API

type FeedbackComponent

type FeedbackComponent struct {
	APIFeature     *componentTest.APIFeature
	Config         *config.Config
	ErrorFeature   componentTest.ErrorFeature
	FakeAPIRouter  *FakeAPI
	HTTPServer     *http.Server
	ServiceRunning bool

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

func NewFeedbackComponent

func NewFeedbackComponent() (c *FeedbackComponent, err error)

func (*FeedbackComponent) Close

func (c *FeedbackComponent) Close() error

Close server running component.

func (*FeedbackComponent) InitAPIFeature

func (c *FeedbackComponent) InitAPIFeature() *componentTest.APIFeature

InitAPIFeature initialises the ApiFeature

func (*FeedbackComponent) InitialiseService

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

InitialiseService returns the http.Handler that's contained within the component.

func (*FeedbackComponent) RegisterSteps

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

type HealthCheckTest

type HealthCheckTest struct {
	Status    string                  `json:"status"`
	Version   healthcheck.VersionInfo `json:"version"`
	Uptime    time.Duration           `json:"uptime"`
	StartTime time.Time               `json:"start_time"`
	Checks    []*Check                `json:"checks"`
}

HealthCheckTest represents a test healthcheck struct that mimics the real healthcheck struct

Jump to

Keyboard shortcuts

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