requestmapping

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrMappingNotFound = "%s or %s mapping doesn't exist in request, skipping operation"
)

Variables

This section is empty.

Functions

func GetMapping

func GetMapping(requestParams *v1alpha2.RequestParameters, action string, logger logging.Logger) (*v1alpha2.Mapping, error)

GetMapping retrieves the mapping based on the provided request parameters, method, and action. It first attempts to find the mapping by the specified action. If found, it sets the method if it's not defined. If no action is specified or the mapping by action is not found, it falls back to finding the mapping by the default method.

Types

This section is empty.

Jump to

Keyboard shortcuts

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