hooks_logic

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModifyRequestBodyUsingHook

func ModifyRequestBodyUsingHook(matchingHook HookEntry, requestBody string) (string, error)

Types

type HookEntry

type HookEntry struct {
	Path   string         `yaml:"path"`
	Method string         `yaml:"method"`
	Body   map[string]any `yaml:"body"`
}

func TryAndFindHookForThisRequest

func TryAndFindHookForThisRequest(hooks HooksFile, req request_sender.Request) HookEntry

func (HookEntry) IsEmpty

func (h HookEntry) IsEmpty() bool

type HooksFile

type HooksFile []HookEntry

func UnmarshalHooksFile

func UnmarshalHooksFile(hooks string) (HooksFile, error)

Jump to

Keyboard shortcuts

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