func (rule L7Rule) GetProtocolKeys(cookie keyvalue.Cookie, trafficType kernel.TrafficType, action interface{}) []*keyvalue.KeyValue {
	rep := []*keyvalue.KeyValue{}
	for _, p := range rule.Protocols {
		rep = append(
			rep,
			&keyvalue.KeyValue{
				Key: &keyvalue.ProtocolKey{
					TrafficType: trafficType,
					Cookie:      cookie,
					Protocol:    uint16(kernel.ProfileInputToApplicationProtocol(p)),
					Layer:       7,
				},
				Value: action,
			},
		)
	}
	return rep
}
// GetProtocolKeys - Returns the protocol keys for this rule
Returns the protocol keys for this rule
// GetProtocolKeys - Returns the protocol keys for this rule
func (rule L7Rule) GetProtocolKeys(cookie keyvalue.Cookie, trafficType kernel.TrafficType, action interface{}) []*keyvalue.KeyValue {
	rep := []*keyvalue.KeyValue{}
	for _, p := range rule.Protocols {
		rep = append(
			rep,
			&keyvalue.KeyValue{
				Key: &keyvalue.ProtocolKey{
					TrafficType: trafficType,
					Cookie:      cookie,
					Protocol:    uint16(kernel.ProfileInputToApplicationProtocol(p)),
					Layer:       7,
				},
				Value: action,
			},
		)
	}
	return rep
}
func ( rule L7Rule ) GetProtocolKeys ( cookie keyvalue . Cookie , trafficType kernel . TrafficType , action interface { } ) [ ] * keyvalue . KeyValue { rep := [ ] * keyvalue . KeyValue { } for _ , p := range rule . Protocols { rep = append ( rep , & keyvalue . KeyValue { Key : & keyvalue . ProtocolKey { TrafficType : trafficType , Cookie : cookie , Protocol : uint16 ( kernel . ProfileInputToApplicationProtocol ( p ) ) , Layer : 7 , } , Value : action , } , ) } return rep }
Returns the protocol keys for this rule
Returns the protocol keys for this rule