Commit Graph

28 Commits

Author SHA1 Message Date
lionsoul2014 fc46254325 more options for segments iterate 2026-06-23 10:07:48 +08:00
lionsoul2014 3eb65a2657 sep args for segment parse 2026-05-30 11:02:41 +08:00
lionsoul2014 8b79b69524 fix Index overflow for the cidr parse with bits equals to IP max bits 2026-05-19 19:43:51 +08:00
lionsoul2014 0ce74b8873 add io.Reader based xdb input supports 2026-05-19 11:42:03 +08:00
lionsoul2014 072b6fed24 segments iterate with CIDR supports 2026-05-16 10:58:49 +08:00
lionsoul2014 f939363a19 SegmentFrom parser is ready for CIDR and IP range 2026-05-16 10:14:20 +08:00
lionsoul2014 353524325a CIDR to ip range supports 2026-05-16 00:07:15 +08:00
lionsoul2014 787bd7ae07 use the Region cache 2026-04-29 15:52:40 +08:00
lionsoul2014 5b10989ac2 Thread-safe impl for CacheRegion 2026-04-29 13:44:14 +08:00
lionsoul2014 90e827633a Use the Region struct to manager the region info instead of old string 2026-04-29 12:23:51 +08:00
lionsoul2014 d730db816a editor with put callback and auto segments merge 2026-04-22 16:28:11 +08:00
lionsoul2014 e76f995ceb add autoMege flag and return total/merged count for segments iterate 2026-04-02 11:24:56 +08:00
lionsoul2014 edb29aea3b add ip sub/half/middle functions 2026-04-02 11:00:19 +08:00
lionsoul2014 112dfb99b5 non-contiguous ip ranges supports 2026-03-04 12:44:05 +08:00
lion 4ff67f168c optimize the region filtering to achieve higher consecutive segments merging rate 2025-09-25 11:17:09 +08:00
lion cb3329390a Allow empty region info 2025-09-24 15:56:40 +08:00
lion 0307a3df14 IPv6 RC verison with IPv4 compatible with the old implementation 2025-09-06 00:36:10 +08:00
lion 980c9cfdd4 make the region filtering an util func 2025-09-04 14:58:53 +08:00
lion c0058781c9 version expected for xdb gen and auto version detect for search test 2025-09-04 11:14:58 +08:00
lion b73e190905 xdb ipv6 supporting (bytes operation is working) 2025-09-03 17:16:05 +08:00
lion 78c2fab10a add field-list support self-define region fields 2025-06-16 23:24:19 +08:00
lion b3f775a196 ignore empty lines 2022-12-07 11:24:58 +08:00
lion 83e15427a8 ignore the comment line which start with # 2022-12-07 10:29:19 +08:00
Lion bce4c1e188 optimize the continuity checking and automatic merging the consecutive segments 2022-12-04 17:22:05 +08:00
Lion 3e6440f1dd load segments while editor init 2022-12-02 18:29:39 +08:00
Lion 7d66d96525 optimize the checkIP and Long2IP impl 2022-07-07 10:26:27 +08:00
linyufeng ef755075ec util.go 接口优化 2022-07-06 20:07:44 +08:00
lion ffb5488988 package the source lib to xdb 2022-06-17 15:23:02 +08:00