Documentation ¶
Index ¶
- func ContainsIDs(key string, ids map[string]string) bool
- func ExtractIDsFromKey(key string, idTypes ...string) ([]string, error)
- func ExtractLastKeySegmentList(keyValue []kvstore.KeyValue) ([]string, error)
- func FilterKvListBy(kvs []kvstore.KeyValue, prefixKey string, depthAfterPrefix int) []kvstore.KeyValue
- func FilterKvMapBy(kvmap kvstore.KeyValueMap, prefixKey string, depthAfterPrefix int) kvstore.KeyValueMap
- func GetKeyList(kvs []kvstore.KeyValue) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsIDs ¶
ContainsIDs checks if a key contains specific ID values. It returns true if the key contains all ID types and values specified in the ids map.
func ExtractIDsFromKey ¶
ExtractIDsFromKey extracts specific IDs from a given key based on the provided structure. It returns a slice of extracted ID values in the order of provided ID types. If any ID type is not found in the key, it returns an error.
func ExtractLastKeySegmentList ¶
ExtractLastKeySegmentList function extracts the last segment of each key in the keyValue slice.
func FilterKvListBy ¶
func FilterKvListBy(kvs []kvstore.KeyValue, prefixKey string, depthAfterPrefix int) []kvstore.KeyValue
FilterKvListBy filters a slice of KeyValue pairs based on the given prefix key. It returns a new slice containing only the key-value pairs that match the prefix criteria.
func FilterKvMapBy ¶
func FilterKvMapBy(kvmap kvstore.KeyValueMap, prefixKey string, depthAfterPrefix int) kvstore.KeyValueMap
FilterKvMapBy filters a KeyValue map based on the given prefix key. It returns a new KeyValue map containing only the key-value pairs that match the prefix criteria.
func GetKeyList ¶
GetKeyList extracts keys from a slice of KeyValue pairs.
Types ¶
This section is empty.