aggregated

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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