Documentation ¶
Overview ¶
Copyright (C) 2023 wwhai
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) KndRegisterPoint later version.
This program is distributed in the hope that it will be useful, but WITHOUT KndRegisterPoint WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
- func DeleteValue(Slot, K string)
- func Flush()
- func GetSlot(Slot string) map[string]KndRegisterPoint
- func InitKdnCnCPointCache(ruleEngine typex.RuleX) intercache.InterCache
- func RegisterSlot(Slot string)
- func SetValue(Slot, K string, V KndRegisterPoint)
- func Size() uint64
- func UnRegisterSlot(Slot string)
- type KdnCnCPointCache
- func (M *KdnCnCPointCache) DeleteValue(Slot, K string)
- func (M *KdnCnCPointCache) Flush()
- func (M *KdnCnCPointCache) GetSlot(Slot string) map[string]KndRegisterPoint
- func (M *KdnCnCPointCache) GetValue(Slot, K string) KndRegisterPoint
- func (M *KdnCnCPointCache) RegisterSlot(Slot string)
- func (M *KdnCnCPointCache) SetValue(Slot, K string, V KndRegisterPoint)
- func (M *KdnCnCPointCache) Size() uint64
- func (M *KdnCnCPointCache) UnRegisterSlot(Slot string)
- type KndRegisterPoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteValue ¶
func DeleteValue(Slot, K string)
func GetSlot ¶
func GetSlot(Slot string) map[string]KndRegisterPoint
func InitKdnCnCPointCache ¶
func InitKdnCnCPointCache(ruleEngine typex.RuleX) intercache.InterCache
func RegisterSlot ¶
func RegisterSlot(Slot string)
func SetValue ¶
func SetValue(Slot, K string, V KndRegisterPoint)
func UnRegisterSlot ¶
func UnRegisterSlot(Slot string)
Types ¶
type KdnCnCPointCache ¶
type KdnCnCPointCache struct { Slots map[string]map[string]KndRegisterPoint // contains filtered or unexported fields }
func (*KdnCnCPointCache) DeleteValue ¶
func (M *KdnCnCPointCache) DeleteValue(Slot, K string)
func (*KdnCnCPointCache) Flush ¶
func (M *KdnCnCPointCache) Flush()
func (*KdnCnCPointCache) GetSlot ¶
func (M *KdnCnCPointCache) GetSlot(Slot string) map[string]KndRegisterPoint
func (*KdnCnCPointCache) GetValue ¶
func (M *KdnCnCPointCache) GetValue(Slot, K string) KndRegisterPoint
func (*KdnCnCPointCache) RegisterSlot ¶
func (M *KdnCnCPointCache) RegisterSlot(Slot string)
func (*KdnCnCPointCache) SetValue ¶
func (M *KdnCnCPointCache) SetValue(Slot, K string, V KndRegisterPoint)
func (*KdnCnCPointCache) Size ¶
func (M *KdnCnCPointCache) Size() uint64
func (*KdnCnCPointCache) UnRegisterSlot ¶
func (M *KdnCnCPointCache) UnRegisterSlot(Slot string)