/
post_tags_database_null.go
51 lines (39 loc) · 1.31 KB
/
post_tags_database_null.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
package activitypub
import (
"context"
)
type NullPostTagsDatabase struct {
PostTagsDatabase
}
func init() {
ctx := context.Background()
RegisterPostTagsDatabase(ctx, "null", NewNullPostTagsDatabase)
}
func NewNullPostTagsDatabase(ctx context.Context, uri string) (PostTagsDatabase, error) {
db := &NullPostTagsDatabase{}
return db, nil
}
func (db *NullPostTagsDatabase) GetLikeIdsForDateRange(ctx context.Context, start int64, end int64, cb GetPostTagIdsCallbackFunc) error {
return nil
}
func (db *NullPostTagsDatabase) GetPostTagWithId(ctx context.Context, id int64) (*PostTag, error) {
return nil, ErrNotFound
}
func (db *NullPostTagsDatabase) GetPostTagsForName(ctx context.Context, name string, cb GetPostTagsCallbackFunc) error {
return nil
}
func (db *NullPostTagsDatabase) GetPostTagsForAccount(ctx context.Context, account_id int64, cb GetPostTagsCallbackFunc) error {
return nil
}
func (db *NullPostTagsDatabase) GetPostTagsForPost(ctx context.Context, post_id int64, cb GetPostTagsCallbackFunc) error {
return nil
}
func (db *NullPostTagsDatabase) AddPostTag(ctx context.Context, boost *PostTag) error {
return nil
}
func (db *NullPostTagsDatabase) RemovePostTag(ctx context.Context, boost *PostTag) error {
return nil
}
func (db *NullPostTagsDatabase) Close(ctx context.Context) error {
return nil
}