steps

package
v0.0.0-...-2e419a0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AcceptEmoji = "👍"
	StealEmoji  = "⏭"
)

Variables

This section is empty.

Functions

func NewInsertBoostRequestStep

func NewInsertBoostRequestStep(repo repository.BoostRequestRepository, br *repository.BoostRequest) *insertBoostRequestStep

func NewPostToLogChannelStep

func NewPostToLogChannelStep(repo repository.LogChannelRepository, br *repository.BoostRequest, messenger *messenger.BoostRequestMessenger) *postToLogChannelStep

func NewReactStep

func NewReactStep(discord *discordgo.Session, br *repository.BoostRequest) *reactStep

func NewSendCreatedDMStep

func NewSendCreatedDMStep(discord *discordgo.Session, messenger *messenger.BoostRequestMessenger, br *repository.BoostRequest) *sendCreatedDMStep

func NewSendMessageStep

func NewSendMessageStep(discord *discordgo.Session, messenger *messenger.BoostRequestMessenger, br *repository.BoostRequest, channelIDs map[string]struct{}) *sendMessageStep

func NewSendPreferredAdvertiserReminderStep

func NewSendPreferredAdvertiserReminderStep(repo repository.Repository, messenger *messenger.BoostRequestMessenger, br *repository.BoostRequest) *sendPreferredAdvertiserReminderStep

func NewStoreActiveRequestStep

func NewStoreActiveRequestStep(
	activeRequests *sync.Map,
	br *repository.BoostRequest,
	setWinner func(*active_request.AdvertiserChosenEvent),
) *storeActiveRequestStep

Types

type RevertFunction

type RevertFunction = func() error

type RevertableStep

type RevertableStep interface {
	Apply() (revert RevertFunction, err error)
}

Jump to

Keyboard shortcuts

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