didset

package
v0.0.0-...-4e578c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DIDSet

type DIDSet interface {
	GetDIDs(ctx context.Context) (StringSet, error)
}

func BlockedBy

func BlockedBy(authclient *xrpc.Client, did string) DIDSet

func BlockedUsers

func BlockedUsers(authclient *xrpc.Client) DIDSet

func CachedIndividually

func CachedIndividually(ctx context.Context, refresh time.Duration, sources ...DIDSet) []DIDSet

func Difference

func Difference(left DIDSet, right DIDSet) DIDSet

func FollowRecordsOf

func FollowRecordsOf(authclient *xrpc.Client, did string) DIDSet

func FollowersOf

func FollowersOf(authclient *xrpc.Client, did string) DIDSet

func FollowsOf

func FollowsOf(authclient *xrpc.Client, did string) DIDSet

func Intersection

func Intersection(sets ...DIDSet) DIDSet

func MuteList

func MuteList(authclient *xrpc.Client, url string) DIDSet

func Union

func Union(sets ...DIDSet) DIDSet

type QueryableDIDSet

type QueryableDIDSet interface {
	DIDSet
	Contains(ctx context.Context, did string) (bool, error)
}

func Cached

func Cached(ctx context.Context, refresh time.Duration, source DIDSet) QueryableDIDSet

func Const

func Const(dids ...string) QueryableDIDSet

type StringSet

type StringSet map[string]bool

func (StringSet) Clone

func (set StringSet) Clone() StringSet

func (StringSet) Contains

func (set StringSet) Contains(ctx context.Context, did string) (bool, error)

func (StringSet) GetDIDs

func (set StringSet) GetDIDs(ctx context.Context) (StringSet, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL