common

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateUUIDInContext

func GenerateUUIDInContext(ctx context.Context, name string) error

GenerateUUIDInContext generates a UUID and stores it in golium.Context using the key name.

func ParseQuery

func ParseQuery(ctx context.Context, query, ctxtPrefix string) error

ParseQuery parses a query string and stores its values in the context. Note that it does not support multiple query params with the same key. It will store only one.

func ParseURL

func ParseURL(ctx context.Context, uri, ctxtPrefix string) error

ParseURL parses a URL and stores its values in the context. It will store a context value per element parsed from the URL under the context prefix.

func StoreValueInContext

func StoreValueInContext(ctx context.Context, name, value string) error

StoreValueInContext stores a value in golium.Context using the key name.

Types

type IPVersion added in v1.0.0

type IPVersion uint8
const (
	IPv4 IPVersion = iota
	IPv6
)

type Steps

type Steps struct {
}

Steps to initialize common steps.

func (Steps) InitializeSteps

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

InitializeSteps initializes all the steps.

Jump to

Keyboard shortcuts

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