background

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *pgxpool.Pool, workers *river.Workers) (*river.Client[pgx.Tx], error)

Types

type BackfillThreadWorkerArgs

type BackfillThreadWorkerArgs struct {
	ChannelID string `json:"channel_id"`
	SlackTS   string `json:"slack_ts"`
}

func (BackfillThreadWorkerArgs) Kind

type ChannelOnboardWorkerArgs

type ChannelOnboardWorkerArgs struct {
	ChannelID string `json:"channel_id"`
	LastNMsgs int    `json:"last_n_msgs"`
}

func (ChannelOnboardWorkerArgs) Kind

type ClassifierArgs

type ClassifierArgs struct {
	ChannelID  string `json:"channel_id"`
	SlackTS    string `json:"slack_ts"`
	IsBackfill bool   `json:"is_backfill"`
}

func (ClassifierArgs) Kind

func (c ClassifierArgs) Kind() string

type ModulesWorkerArgs

type ModulesWorkerArgs struct {
	ChannelID string `json:"channel_id"`
	SlackTS   string `json:"slack_ts"`
}

func (ModulesWorkerArgs) Kind

func (m ModulesWorkerArgs) Kind() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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