func Parse(s string) Instance {
	if instance, ok := protocolMap[strings.ToLower(s)]; ok {
		return instance
	}
	return Unsupported
}
Parse from string ignoring case
package protocol
import (
	"strings"
)
type Instance string
const (
	Dubbo Instance = "Dubbo"
	Thrift Instance = "Thrift"
	Mongo Instance = "Mongo"
	Redis Instance = "Redis"
	MySQL Instance = "MySQL"
	Kafka Instance = "Kafka"
	Zookeeper Instance = "Zookeeper"
	MetaProtocol Instance = "MetaProtocol"
	Unsupported Instance = "UnsupportedProtocol"
)
var protocolMap = make(map[string]Instance)
func init() {
	protocolMap["dubbo"] = Dubbo
	protocolMap["thrift"] = Thrift
	protocolMap["mongo"] = Mongo
	protocolMap["redis"] = Redis
	protocolMap["mysql"] = MySQL
	protocolMap["kafka"] = Kafka
	protocolMap["zookeeper"] = Zookeeper
	protocolMap["metaprotocol"] = MetaProtocol
}
func RegisterProtocol(name string, protocol Instance) {
	protocolMap[name] = protocol
}