react_manager

package
v1.26.7 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build() fx.Option

Types

type Reactor

type Reactor struct {
	// contains filtered or unexported fields
}

func New

func New(
	accountQuerier *account_querier.Querier,
	reactWriter *reaction_repo.Writer,
	reactReader *reaction_repo.Querier,
	postQuerier *post_querier.Querier,
	bus *pubsub.Bus,
	cache *thread_cache.Cache,
) *Reactor

func (*Reactor) Add

func (s *Reactor) Add(ctx context.Context, postID post.ID, emoji string) (*reaction.React, error)

func (*Reactor) Remove

func (s *Reactor) Remove(ctx context.Context, reactID reaction.ReactID) error

Jump to

Keyboard shortcuts

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