firehose

package
v0.0.0-...-cf300fe Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Firehose

type Firehose struct {
	Hooks []Hook
	// contains filtered or unexported fields
}

func New

func New() *Firehose

func (*Firehose) Run

func (f *Firehose) Run(ctx context.Context) error

type Hook

type Hook struct {
	Predicate Predicate
	Action    func(ctx context.Context, commit *comatproto.SyncSubscribeRepos_Commit, op *comatproto.SyncSubscribeRepos_RepoOp, record cbg.CBORMarshaler)
}

type Predicate

func AllOf

func AllOf(predicates ...Predicate) Predicate

func AnyOf

func AnyOf(predicates ...Predicate) Predicate

func CreateOrUpdateOp

func CreateOrUpdateOp() Predicate

func DeleteOp

func DeleteOp() Predicate

func From

func From(did string) Predicate

func IsBlock

func IsBlock() Predicate

func IsFollow

func IsFollow() Predicate

func IsInCollection

func IsInCollection(collection string) Predicate

func IsPost

func IsPost() Predicate

func MentionsDID

func MentionsDID(did string) Predicate

func Not

func Not(predicate Predicate) Predicate

func SenderInSet

func SenderInSet(set didset.QueryableDIDSet) Predicate

func SenderNotInSet

func SenderNotInSet(set didset.QueryableDIDSet) Predicate

Jump to

Keyboard shortcuts

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