-
Notifications
You must be signed in to change notification settings - Fork 0
/
boosts_database_null.go
47 lines (36 loc) · 1.14 KB
/
boosts_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
package activitypub
import (
"context"
)
type NullBoostsDatabase struct {
BoostsDatabase
}
func init() {
ctx := context.Background()
RegisterBoostsDatabase(ctx, "null", NewNullBoostsDatabase)
}
func NewNullBoostsDatabase(ctx context.Context, uri string) (BoostsDatabase, error) {
db := &NullBoostsDatabase{}
return db, nil
}
func (db *NullBoostsDatabase) GetBoostIdsForDateRange(ctx context.Context, start int64, end int64, cb GetBoostIdsCallbackFunc) error {
return nil
}
func (db *NullBoostsDatabase) GetBoostWithId(ctx context.Context, id int64) (*Boost, error) {
return nil, ErrNotFound
}
func (db *NullBoostsDatabase) GetBoostWithPostIdAndActor(ctx context.Context, id int64, actor string) (*Boost, error) {
return nil, ErrNotFound
}
func (db *NullBoostsDatabase) GetBoostsForPost(ctx context.Context, post_id int64, cb GetBoostsCallbackFunc) error {
return nil
}
func (db *NullBoostsDatabase) AddBoost(ctx context.Context, boost *Boost) error {
return nil
}
func (db *NullBoostsDatabase) RemoveBoost(ctx context.Context, boost *Boost) error {
return nil
}
func (db *NullBoostsDatabase) Close(ctx context.Context) error {
return nil
}