Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Handler = &MuxHandler{}
)
View Source
var References []PaywallReference
Functions ¶
func IsReferenced ¶
func RecomputeMemberPaywall ¶
RecomputeMemberPaywall rebuilds paywall access map for a given user by reading all their kind:1163 events and collecting "p" tags It also reads "a" tags to build filters for referenced events
Types ¶
type MuxHandler ¶
type MuxHandler struct {
// contains filtered or unexported fields
}
func (*MuxHandler) ServeHTTP ¶
func (mh *MuxHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type PaywallReference ¶
type PaywallReference struct {
// the pyramid member who referenced this for their paywall
Member nostr.PubKey
// taken from the "a" tag in the kind:1163 from Member, could be anything
PublicKey nostr.PubKey
Kind nostr.Kind
Identifier string
}
PaywallReference associates an addressable or replaceable event from a kind:1163 event from Author with a a filter such that when such replaceable event is updated we know to react.
Click to show internal directories.
Click to hide internal directories.