Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultWotLevel = 3
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Types ¶
type Initializer ¶
type Model ¶
func GetInstance ¶
func GetInstance() Model
type SimpleInMemory ¶
type SimpleInMemory struct {
// Dependencies for Refresh
Pool *nostr.SimplePool
WhitelistedPubKeys map[string]struct{}
SeedRelays []string
WotDepth int
MinFollowers int
WotFetchTimeout int
// contains filtered or unexported fields
}
func NewSimpleInMemory ¶
func NewSimpleInMemory(pool *nostr.SimplePool, whitelistedPubKeys map[string]struct{}, seedRelays []string, wotDepth int, minFollowers int, wotFetchTimeout int) *SimpleInMemory
func (*SimpleInMemory) Init ¶
func (wt *SimpleInMemory) Init(ctx context.Context)
func (*SimpleInMemory) Refresh ¶
func (wt *SimpleInMemory) Refresh(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.