Documentation
¶
Index ¶
- type Manager
- func (m *Manager) Capture(body []byte, captures map[string]string)
- func (m *Manager) Clone() *Manager
- func (m *Manager) Set(key string, value interface{})
- func (m *Manager) Substitute(input string) string
- func (m *Manager) SubstituteInInterface(data interface{}) interface{}
- func (m *Manager) SubstituteInPayload(payload interface{}) (io.Reader, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles the storage and substitution of variables.
func (*Manager) Capture ¶
Capture extracts values from a JSON body using gjson paths and stores them as variables.
func (*Manager) Substitute ¶
Substitute replaces all variable placeholders in a string with their corresponding values.
func (*Manager) SubstituteInInterface ¶
func (m *Manager) SubstituteInInterface(data interface{}) interface{}
SubstituteInInterface recursively substitutes variables in a nested data structure. It handles strings, maps, and slices, and attempts to convert numeric strings back to numbers.
Click to show internal directories.
Click to hide internal directories.