utils

package
v0.0.0-...-d3e3491 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCleanedUpVal

func GetCleanedUpVal(log log.T, parameter json.Number, defaultVal int) int

GetCleanedUpVal verifies the parameter value is within the limits and returns defaultVal if invalid parameter value passed to this function

Types

type DocumentParamType

type DocumentParamType string

DocumentParamType represents various document parameter types

const (
	// ParamTypeString represents the Param Type String
	ParamTypeString DocumentParamType = "String"
	// ParamTypeStringList represents the Param Type StringList
	ParamTypeStringList DocumentParamType = "StringList"
	// ParamTypeStringMap represents the param type StringMap
	ParamTypeStringMap DocumentParamType = "StringMap"
	// ParamTypeInteger represents the param type StringMap
	ParamTypeInteger DocumentParamType = "Integer"
	// ParamTypeBoolean represents the param type Boolean
	ParamTypeBoolean DocumentParamType = "Boolean"
	// ParamTypeMapList represents the param type MapList
	ParamTypeMapList DocumentParamType = "MapList"
)

Jump to

Keyboard shortcuts

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