mappers

package
v0.0.0-...-c9dde30 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrItemTypeNotHandled = errors.New("item type not handled")
)

Functions

func MapAboutRequest

func MapAboutRequest(authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapAboutToWebhook

func MapAboutToWebhook(lg discordgo.Locale, emojiService emojis.Service) *discordgo.WebhookEdit

func MapAlignBookToWebhook

func MapAlignBookToWebhook(answer *amqp.AlignGetBookAnswer,
	believers []constants.AlignmentUserLevel, alignService books.Service,
	serverService servers.Service, emojiService emojis.Service,
	lg discordgo.Locale) *discordgo.WebhookEdit

func MapAlignUserToEmbed

func MapAlignUserToEmbed(alignExperiences []*amqp.AlignGetUserAnswer_AlignExperience,
	member *discordgo.Member, serverID string, alignService books.Service,
	serverService servers.Service, locale amqp.Language) *[]*discordgo.MessageEmbed

func MapAlmanaxEffectListRequest

func MapAlmanaxEffectListRequest(query, authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapAlmanaxEffectRequest

func MapAlmanaxEffectRequest(query *string, date *time.Time, page int, authorID string,
	lg discordgo.Locale) *amqp.RabbitMQMessage

func MapAlmanaxEffectsToWebhook

func MapAlmanaxEffectsToWebhook(answer *amqp.EncyclopediaAlmanaxEffectAnswer,
	lg discordgo.Locale, emojiService emojis.Service) *discordgo.WebhookEdit

func MapAlmanaxRequest

func MapAlmanaxRequest(date *time.Time, authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapAlmanaxResourceRequest

func MapAlmanaxResourceRequest(duration int64, authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapAlmanaxResourceToWebhook

func MapAlmanaxResourceToWebhook(almanaxResources *amqp.EncyclopediaAlmanaxResourceAnswer,
	characterNumber int64, lg discordgo.Locale, emojiService emojis.Service) *discordgo.WebhookEdit

func MapAlmanaxToWebhook

func MapAlmanaxToWebhook(answer *amqp.EncyclopediaAlmanaxAnswer, lg discordgo.Locale,
	emojiService emojis.Service) *discordgo.WebhookEdit

func MapBookAlignGetBookRequest

func MapBookAlignGetBookRequest(cityID, orderID, serverID string, page int,
	userIDs []string, authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapBookAlignGetUserRequest

func MapBookAlignGetUserRequest(userID, serverID string,
	authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapBookAlignSetRequest

func MapBookAlignSetRequest(userID, cityID, orderID, serverID string, level int64,
	lg discordgo.Locale) *amqp.RabbitMQMessage

func MapBookJobGetBookRequest

func MapBookJobGetBookRequest(jobID, serverID string, page int,
	userIDs []string, authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapBookJobGetUserRequest

func MapBookJobGetUserRequest(userID, serverID, authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapBookJobSetRequest

func MapBookJobSetRequest(userID, jobID, serverID string, level int64,
	lg discordgo.Locale) *amqp.RabbitMQMessage

func MapCompetitionMapRequest

func MapCompetitionMapRequest(mapNumber int64, authorID string, lg discordgo.Locale,
) *amqp.RabbitMQMessage

func MapCompetitionMapToWebhookEdit

func MapCompetitionMapToWebhookEdit(answer *amqp.CompetitionMapAnswer, mapType constants.MapType,
	service emojis.Service, locale amqp.Language) *discordgo.WebhookEdit

func MapConfigToEmbed

func MapConfigToEmbed(guild constants.GuildConfig, emojiService emojis.Service,
	serverService servers.Service, feedService feeds.Service, videastService videasts.Service,
	twitterService twitters.Service, streamerService streamers.Service, locale amqp.Language,
) *discordgo.MessageEmbed

func MapConfigurationGetRequest

func MapConfigurationGetRequest(guildID, authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapConfigurationServerRequest

func MapConfigurationServerRequest(guildID, channelID, serverID, authorID string,
	lg discordgo.Locale) *amqp.RabbitMQMessage

func MapConfigurationWebhookAlmanaxRequest

func MapConfigurationWebhookAlmanaxRequest(webhook *discordgo.Webhook, guildID, channelID string,
	enabled bool, authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapConfigurationWebhookRssRequest

func MapConfigurationWebhookRssRequest(webhook *discordgo.Webhook, guildID, channelID string,
	feed entities.FeedType, enabled bool, authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapConfigurationWebhookTwitchRequest

func MapConfigurationWebhookTwitchRequest(webhook *discordgo.Webhook, guildID, channelID string,
	streamer entities.Streamer, enabled bool, authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapConfigurationWebhookTwitterRequest

func MapConfigurationWebhookTwitterRequest(webhook *discordgo.Webhook, guildID, channelID string,
	twitterAccount entities.TwitterAccount, enabled bool, authorID string, lg discordgo.Locale,
) *amqp.RabbitMQMessage

func MapConfigurationWebhookYoutubeRequest

func MapConfigurationWebhookYoutubeRequest(webhook *discordgo.Webhook, guildID, channelID string,
	videast entities.Videast, enabled bool, authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapGuildCreateNews

func MapGuildCreateNews(guildID, guildName string, memberCount int) *amqp.RabbitMQMessage

func MapGuildDeleteNews

func MapGuildDeleteNews(guildID, guildName string, memberCount int) *amqp.RabbitMQMessage

func MapHelpRequest

func MapHelpRequest(authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapItemListRequest

func MapItemListRequest(query, authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapItemRequest

func MapItemRequest(query string, isID bool, itemType amqp.ItemType,
	authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapItemToWebhookEdit

func MapItemToWebhookEdit(answer *amqp.EncyclopediaItemAnswer, isRecipe bool,
	characService characteristics.Service, emojiService emojis.Service,
	locale amqp.Language) *discordgo.WebhookEdit

func MapJobBookToWebhook

func MapJobBookToWebhook(answer *amqp.JobGetBookAnswer,
	craftsmen []constants.JobUserLevel, jobService books.Service,
	serverService servers.Service, emojiService emojis.Service,
	lg discordgo.Locale) *discordgo.WebhookEdit

func MapJobUserToEmbed

func MapJobUserToEmbed(jobExperiences []*amqp.JobGetUserAnswer_JobExperience, member *discordgo.Member,
	serverID string, jobService books.Service, serverService servers.Service,
	locale amqp.Language) *[]*discordgo.MessageEmbed

func MapPortalPositionRequest

func MapPortalPositionRequest(dimension entities.Dimension, server entities.Server,
	authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapPortalToEmbed

func MapPortalToEmbed(portal *amqp.PortalPositionAnswer_PortalPosition, portalService portals.Service,
	serverService servers.Service, locale amqp.Language) *discordgo.MessageEmbed

func MapSetListRequest

func MapSetListRequest(query, authorID string, lg discordgo.Locale) *amqp.RabbitMQMessage

func MapSetToDefaultWebhookEdit

func MapSetToDefaultWebhookEdit(answer *amqp.EncyclopediaItemAnswer,
	characService characteristics.Service, emojiService emojis.Service,
	locale amqp.Language) *discordgo.WebhookEdit

func MapSetToWebhookEdit

func MapSetToWebhookEdit(answer *amqp.EncyclopediaItemAnswer, itemNumber int,
	characService characteristics.Service, emojiService emojis.Service,
	locale amqp.Language) *discordgo.WebhookEdit

func MapWelcomeToEmbed

func MapWelcomeToEmbed(guildName, ownerID string, lg discordgo.Locale,
	emojiService emojis.Service) *discordgo.MessageEmbed

Types

type AMQPCharacteristic

type AMQPCharacteristic interface {
	GetId() string
	GetLabel() string
}

Jump to

Keyboard shortcuts

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