paid-acl-stubs.go raw
1 //go:build js && wasm
2
3 package wasmdb
4
5 import (
6 "fmt"
7
8 "next.orly.dev/pkg/database"
9 )
10
11 var errPaidACLNotSupported = fmt.Errorf("paid ACL not supported on wasmdb backend")
12
13 func (w *W) SavePaidSubscription(sub *database.PaidSubscription) error {
14 return errPaidACLNotSupported
15 }
16
17 func (w *W) GetPaidSubscription(pubkeyHex string) (*database.PaidSubscription, error) {
18 return nil, errPaidACLNotSupported
19 }
20
21 func (w *W) DeletePaidSubscription(pubkeyHex string) error {
22 return errPaidACLNotSupported
23 }
24
25 func (w *W) ListPaidSubscriptions() ([]*database.PaidSubscription, error) {
26 return nil, errPaidACLNotSupported
27 }
28
29 func (w *W) ClaimAlias(alias, pubkeyHex string) error {
30 return errPaidACLNotSupported
31 }
32
33 func (w *W) GetAliasByPubkey(pubkeyHex string) (string, error) {
34 return "", errPaidACLNotSupported
35 }
36
37 func (w *W) GetPubkeyByAlias(alias string) (string, error) {
38 return "", errPaidACLNotSupported
39 }
40
41 func (w *W) IsAliasTaken(alias string) (bool, error) {
42 return false, errPaidACLNotSupported
43 }
44