Documentation ¶
Index ¶
- Constants
- func NewInsertBoostRequestStep(repo repository.BoostRequestRepository, br *repository.BoostRequest) *insertBoostRequestStep
- func NewPostToLogChannelStep(repo repository.LogChannelRepository, br *repository.BoostRequest, ...) *postToLogChannelStep
- func NewReactStep(discord *discordgo.Session, br *repository.BoostRequest) *reactStep
- func NewSendCreatedDMStep(discord *discordgo.Session, messenger *messenger.BoostRequestMessenger, ...) *sendCreatedDMStep
- func NewSendMessageStep(discord *discordgo.Session, messenger *messenger.BoostRequestMessenger, ...) *sendMessageStep
- func NewSendPreferredAdvertiserReminderStep(repo repository.Repository, messenger *messenger.BoostRequestMessenger, ...) *sendPreferredAdvertiserReminderStep
- func NewStoreActiveRequestStep(activeRequests *sync.Map, br *repository.BoostRequest, ...) *storeActiveRequestStep
- type RevertFunction
- type RevertableStep
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)
}
Click to show internal directories.
Click to hide internal directories.