-
-
Notifications
You must be signed in to change notification settings - Fork 68
/
keyset.go
41 lines (30 loc) · 881 Bytes
/
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
package youtube
import "github.com/Sora233/DDBOT/lsp/buntdb"
type KeySet struct {
}
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.ParseYoutubeConcernStateKey(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{}
}