paid-acl-stubs.go raw

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