func (method HttpMethod) GetEnumMap() *enummap.EnumMap {
	return httpMethodEnum
}
GetEnumMap of HttpMethod for GUI
package config
import (
	"context"
	"crypto/tls"
	"fmt"
	"net"
	"net/http"
	"strconv"
	"strings"
	"sync"
	"time"
	"github.com/pkg/errors"
	"github.com/qlik-oss/gopherciser/enummap"
	"github.com/qlik-oss/gopherciser/helpers"
	"github.com/qlik-oss/gopherciser/logger"
	"github.com/qlik-oss/gopherciser/session"
	"github.com/qlik-oss/gopherciser/synced"
)
type (
	FailLevel      int
	ValidationType int
	HttpMethod     int
	ValidatorCore struct {
		Type  ValidationType `json:"type" doc-key:"hook.extractor.validator.type" displayname:"Type"`
		Value string         `json:"value" doc-key:"hook.extractor.validator.value" displayname:"Value"`
		value   interface{}  
		convert sync.Once
	}
	Validator struct {
		ValidatorCore
	}
	Extractor struct {
		Name      string           `Json:"name" doc-key:"hook.extractor.name" displayname:"Name"`
		Path      helpers.DataPath `json:"path" doc-key:"hook.extractor.path" displayname:"Path"`
		Level     FailLevel        `json:"faillevel" doc-key:"hook.extractor.faillevel" displayname:"Fail level"`
		Validator *Validator       `json:"validator" doc-key:"hook.extractor.validator" displayname:"Validator"`
	}
	HookHeader struct {
		Name  string          `json:"name" doc-key:"hook.headers.name" displayname:"Name"`
		Value synced.Template `json:"value" doc-key:"hook.headers.value" displayname:"value"`
	}
	HookCore struct {
		Url         string          `json:"url" doc-key:"hook.url" displayname:"Url"`
		Method      HttpMethod      `json:"method" doc-key:"hook.method" displayname:"Method"`
		Content     synced.Template `json:"payload" doc-key:"hook.content" displayname:"Content" displayelement:"textarea"`
		RespCodes   []int           `json:"respcodes" doc-key:"hook.respcodes" displayname:"Response codes"`
		ContentType string          `json:"contenttype" doc-key:"hook.contenttype" displayname:"Content-Type"`
		Extractors  []Extractor     `json:"extractors" doc-key:"hook.extractors" displayname:"Extractors"`
		Headers     []HookHeader    `json:"headers" doc-key:"hook.headers" displayname:"Headers"`
		initOnce sync.Once
	}
	Hook struct {
		HookCore
	}
	miniTrafficLogger struct {
		LogEntry *logger.LogEntry
	}
)
var (
	failLevelEnum = enummap.NewEnumMapOrPanic(map[string]int{
		"none":    int(FailLevelNone),
		"info":    int(FailLevelInfo),
		"warning": int(FailLevelWarning),
		"error":   int(FailLevelError),
	})
	validationTypeEnum = enummap.NewEnumMapOrPanic(map[string]int{
		"none":   int(ValidationTypeNone),
		"bool":   int(ValidationTypeBool),
		"number": int(ValidationTypeNumber),
		"string": int(ValidationTypeString),
	})
	httpMethodEnum = enummap.NewEnumMapOrPanic(map[string]int{
		"none":                              int(MethodNone),
		strings.ToLower(http.MethodGet):     int(MethodGet),
		strings.ToLower(http.MethodHead):    int(MethodHead),
		strings.ToLower(http.MethodPost):    int(MethodPost),
		strings.ToLower(http.MethodPut):     int(MethodPut),
		strings.ToLower(http.MethodPatch):   int(MethodPatch),
		strings.ToLower(http.MethodDelete):  int(MethodDelete),
		strings.ToLower(http.MethodConnect): int(MethodConnect),
		strings.ToLower(http.MethodOptions): int(MethodOptions),
		strings.ToLower(http.MethodTrace):   int(MethodTrace),
	})
)
const (
	FailLevelError FailLevel = iota
	FailLevelWarning
	FailLevelInfo
	FailLevelNone
)
const (
	ValidationTypeNone ValidationType = iota
	ValidationTypeBool
	ValidationTypeNumber
	ValidationTypeString
)
const (
	MethodNone HttpMethod = iota
	MethodGet
	MethodHead
	MethodPost
	MethodPut
	MethodPatch
	MethodDelete
	MethodConnect
	MethodOptions
	MethodTrace
)
func (fl FailLevel) GetEnumMap() *enummap.EnumMap {
	return failLevelEnum
}
func (val ValidationType) GetEnumMap() *enummap.EnumMap {
	return validationTypeEnum
}