Documentation
¶
Index ¶
- Constants
- Variables
- func AddAction(type_ Action, author nostr.PubKey, target nostr.PubKey) error
- func CanInviteMore(pubkey nostr.PubKey) bool
- func GetChildren(parent nostr.PubKey) iter.Seq2[nostr.PubKey, Member]
- func GetInviteCount(pubkey nostr.PubKey) int
- func GetInviters(pubkey nostr.PubKey) []nostr.PubKey
- func GetLevel(pubkey nostr.PubKey) int
- func GetMaxBlossomUploadSizeFor(pubkey nostr.PubKey) int
- func GetMaxInvitesFor(pubkey nostr.PubKey) int
- func HasRootUsers() bool
- func HasSingleRootAncestor(ancestor nostr.PubKey, target nostr.PubKey) bool
- func IsAncestorOf(ancestor nostr.PubKey, target nostr.PubKey) bool
- func IsMember(pubkey nostr.PubKey) bool
- func IsParentOf(parent nostr.PubKey, target nostr.PubKey) bool
- func IsRoot(pubkey nostr.PubKey) bool
- func LoadManagement() error
- type Action
- type Member
Constants ¶
View Source
const ( ActionInvite = "invite" ActionDrop = "drop" ActionLeave = "leave" ActionDisable = "disable" ActionEnable = "enable" )
Variables ¶
Functions ¶
func CanInviteMore ¶
func GetInviteCount ¶ added in v1.0.25
func GetMaxBlossomUploadSizeFor ¶ added in v1.1.0
func GetMaxInvitesFor ¶ added in v1.0.22
func HasRootUsers ¶
func HasRootUsers() bool
func HasSingleRootAncestor ¶ added in v1.0.19
func LoadManagement ¶
func LoadManagement() error
Types ¶
Click to show internal directories.
Click to hide internal directories.