utils

package
v0.0.0-...-e3d98aa Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ParamHeader is header
	ParamHeader = "header"
	// ParamQuery is query
	ParamQuery = "query"
)

Variables

This section is empty.

Functions

func ExtractInterfaceOfMap

func ExtractInterfaceOfMap(data interface{}) (bool, map[string]interface{})

ExtractInterfaceOfMap retrieves interface-based data with structure of hashmap

func ExtractSecurityRequirementKey

func ExtractSecurityRequirementKey(input openapi3.SecurityRequirement) string

ExtractSecurityRequirementKey retrieves the initial security key

func IsDataExistInArray

func IsDataExistInArray(array interface{}, key interface{}) bool

IsDataExistInArray works to check whether particular key exists on array or not

func IsParameterExist

func IsParameterExist(params openapi3.Parameters, paramType string) bool

IsParameterExist works to check the existency of particular param type on list of parameter

Types

This section is empty.

Jump to

Keyboard shortcuts

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