func ClearMap() {
	for _, element := range AppConfig {
		ClearByteArray(*element)
	}
}
ClearMap clear [string, *[]byte] map, called only in error case.
package util
import (
	"errors"
	log "github.com/sirupsen/logrus"
	"mep-agent/src/model"
	"os"
	"time"
)
type appConfigProperties map[string]*[]byte
var AppConfig = appConfigProperties{}
var MepToken = model.TokenModel{}
var FirstToken = false
var AppInstanceID string
var RefreshTimer *time.Timer
const RefreshTimeBuffer = 5
const (
	ak        string = "AK"
	sk        string = "SK"
	appInstID string = "APPINSTID"
)
const (
	XAppInstanceId string = "X-AppInstanceId"
)
func ClearByteArray(data []byte) {
	if data == nil {
		return
	}
	for i := 0; i < len(data); i++ {
		data[i] = 0
	}
}