aggregated

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 3 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

func InitializeContext

func InitializeContext(ctx context.Context) context.Context

InitializeContext adds the Aggregated session to the context. The new context is returned because context is immutable.

Types

type ContextKey

type ContextKey string

ContextKey defines a type to store the aggregated session in context.Context.

type Session added in v0.16.0

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

Session contains the information of shared session

func GetSession

func GetSession(ctx context.Context) *Session

GetSession returns the Aggregated session stored in context. Note that the context should be previously initialized with InitializeContext function.

func (*Session) SaveStatusCode added in v0.16.0

func (s *Session) SaveStatusCode(ctx context.Context, code int) error

SaveStatusCode saves code in shared session.

type Steps

type Steps struct {
}

Steps type is responsible to initialize aggregated steps in godog framework.

func (Steps) InitializeSteps

func (s Steps) InitializeSteps(ctx context.Context, scenCtx *godog.ScenarioContext) context.Context

InitializeSteps adds aggregated steps to the scenario context. It implements StepsInitializer interface. It returns a new context (context is immutable) with the HTTP Context.

Jump to

Keyboard shortcuts

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