forked from Sora233/DDBOT
/
keyset.go
78 lines (60 loc) · 2.01 KB
/
keyset.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package bilibili
import "github.com/starskim/DDBOT/lsp/buntdb"
type keySet struct {
}
func (k *keySet) GroupAtAllMarkKey(keys ...interface{}) string {
return buntdb.BilibiliGroupAtAllMarkKey(keys...)
}
func (k *keySet) GroupConcernConfigKey(keys ...interface{}) string {
return buntdb.BilibiliGroupConcernConfigKey(keys...)
}
func (k *keySet) GroupConcernStateKey(keys ...interface{}) string {
return buntdb.BilibiliGroupConcernStateKey(keys...)
}
func (k *keySet) FreshKey(keys ...interface{}) string {
return buntdb.BilibliFreshKey(keys...)
}
func (k *keySet) ParseGroupConcernStateKey(key string) (int64, interface{}, error) {
return buntdb.ParseConcernStateKeyWithInt64(key)
}
type extraKey struct {
}
func (k *extraKey) CurrentLiveKey(keys ...interface{}) string {
return buntdb.BilibiliCurrentLiveKey(keys...)
}
func (k *extraKey) UserInfoKey(keys ...interface{}) string {
return buntdb.BilibiliUserInfoKey(keys...)
}
func (k *extraKey) UserStatKey(keys ...interface{}) string {
return buntdb.BilibiliUserStatKey(keys...)
}
func (k *extraKey) CurrentNewsKey(keys ...interface{}) string {
return buntdb.BilibiliCurrentNewsKey(keys...)
}
func (k *extraKey) DynamicIdKey(keys ...interface{}) string {
return buntdb.BilibiliDynamicIdKey(keys...)
}
func (k *extraKey) UidFirstTimestamp(keys ...interface{}) string {
return buntdb.BilibiliUidFirstTimestampKey(keys...)
}
func (k *extraKey) NotLiveKey(keys ...interface{}) string {
return buntdb.BilibiliNotLiveCountKey(keys...)
}
func (k *extraKey) LastFreshKey(keys ...interface{}) string {
return buntdb.BilibiliLastFreshKey(keys...)
}
func (k *extraKey) CompactMarkKey(keys ...interface{}) string {
return buntdb.BilibiliCompactMarkKey(keys...)
}
func (k *extraKey) NotifyMsgKey(keys ...interface{}) string {
return buntdb.BilibiliNotifyMsgKey(keys...)
}
func (k *extraKey) ActiveTimestampKey(keys ...interface{}) string {
return buntdb.BilibiliActiveTimestampKey(keys...)
}
func NewKeySet() *keySet {
return &keySet{}
}
func NewExtraKey() *extraKey {
return &extraKey{}
}