Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TableEventModifiers = "event_modifiers" TableRepos = "repos" TableGuilds = "guilds" TableWebhooks = "webhooks" TableWebhookLogs = "webhook_logs" TableList = []*string{ &TableEventModifiers, &TableRepos, &TableGuilds, &TableWebhooks, &TableWebhookLogs, } )
View Source
var ( Json = jsoniter.ConfigCompatibleWithStandardLibrary Discord *discordgo.Session Pool *pgxpool.Pool Context = context.Background() Validator = validator.New() Logger *zap.Logger Config *config.Config MapMutex *mapofmu.M[string] IsEmbedded bool // Whether gitlogs is being embedded into another service )
Functions ¶
func ApplyMigrations ¶
func ApplyMigrations()
func PrepareForEmbedding ¶
func PrepareForEmbedding()
Must be called when embedding, PrepareForEmbedding creates the table names from config and may do other setup in the future
Note that config.GetTable must be set before calling this function
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.