-
-
Notifications
You must be signed in to change notification settings - Fork 70
/
keyset.go
49 lines (36 loc) · 1.1 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
package youtube
import "github.com/Sora233/DDBOT/lsp/buntdb"
type KeySet struct {
}
func (k *KeySet) GroupAtAllMarkKey(keys ...interface{}) string {
return buntdb.YoutubeGroupAtAllMarkKey(keys...)
}
func (k *KeySet) GroupConcernConfigKey(keys ...interface{}) string {
return buntdb.YoutubeGroupConcernConfigKey(keys...)
}
func (k *KeySet) GroupConcernStateKey(keys ...interface{}) string {
return buntdb.YoutubeGroupConcernStateKey(keys...)
}
func (k *KeySet) FreshKey(keys ...interface{}) string {
return buntdb.YoutubeFreshKey(keys...)
}
func (k *KeySet) ParseGroupConcernStateKey(key string) (int64, interface{}, error) {
return buntdb.ParseConcernStateKeyWithString(key)
}
func NewKeySet() *KeySet {
return new(KeySet)
}
type extraKey struct {
}
func (e *extraKey) UserInfoKey(keys ...interface{}) string {
return buntdb.YoutubeUserInfoKey(keys...)
}
func (e *extraKey) InfoKey(keys ...interface{}) string {
return buntdb.YoutubeInfoKey(keys...)
}
func (e *extraKey) VideoKey(keys ...interface{}) string {
return buntdb.YoutubeVideoKey(keys...)
}
func NewExtraKey() *extraKey {
return &extraKey{}
}