factory

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateChannelProvider

func CreateChannelProvider(
	db libkv.DB,
	discordSession *discordgo.Session,
	serverID pkg.ServerID,
) pkg.ChannelIDProvider

CreateChannelProvider creates a non-transaction-aware channel provider. Used for HTTP handlers that manage their own transactions.

func CreateChannelProviderTx

func CreateChannelProviderTx(
	db libkv.DB,
	discordSession *discordgo.Session,
	serverID pkg.ServerID,
) pkg.ChannelIDProviderTx

CreateChannelProviderTx creates a transaction-aware channel provider. Used for command handlers that already have an active transaction.

func CreateCommandConsumer

func CreateCommandConsumer(
	db libkv.DB,
	saramaClientProvider libkafka.SaramaClientProvider,
	syncProducer libkafka.SyncProducer,
	kafkaGroup libkafka.Group,
	branch base.Branch,
	batchSize libkafka.BatchSize,
	discordSession *discordgo.Session,
	serverID pkg.ServerID,
	sentryClient libsentry.Client,
) run.Func

func CreateExistsHandler

func CreateExistsHandler(discordSession *discordgo.Session) http.Handler

func CreateListSessionChannelsHandler

func CreateListSessionChannelsHandler(
	discordSession *discordgo.Session,
	serverID pkg.ServerID,
) http.Handler

func CreateListStoreChannelsHandler

func CreateListStoreChannelsHandler(
	db libkv.DB,
) http.Handler

func CreateSendCommandObjectExecutor

func CreateSendCommandObjectExecutor(
	permissionChecker cqrsiam.PermissionChecker,
	db libkv.DB,
	discordSession *discordgo.Session,
	serverID pkg.ServerID,
) cdb.CommandObjectExecutorTx

func CreateSendTestMessageHandler

func CreateSendTestMessageHandler(
	db libkv.DB,
	discordSession *discordgo.Session,
	serverID pkg.ServerID,
) http.Handler

func CreateUpdateChannelHandler

func CreateUpdateChannelHandler(
	db libkv.DB,
	discordSession *discordgo.Session,
	serverID pkg.ServerID,
) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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