// protocolStateFunc ensures we only store a string in any protocol field
protocolStateFunc ensures we only store a string in any protocol field
// protocolStateFunc ensures we only store a string in any protocol field
func protocolStateFunc(v interface{}) string {
	switch v := v.(type) {
	case string:
		p := protocolForValue(v)
		return p
	default:
		log.Printf("[WARN] Non String value given for Protocol: %#v", v)
		return ""
	}
}
func protocolStateFunc ( v interface { } ) string { switch v := v . ( type ) { case string : p := protocolForValue ( v ) return p default : log . Printf ( " " , v ) return " " } }
protocolStateFunc ensures we only store a string in any protocol field
protocolStateFunc ensures we only store a string in any protocol field