Documentation ¶
Index ¶
- Constants
- func GetBlissfestService() *services.BlissfestService
- func GetBloopyServiceRegistry() models.ServiceRegistry
- func GetBookService() *services.BookService
- func GetBotName() string
- func GetBotToken() string
- func GetDiscordAppCommands() []models.DiscordAppCommand
- func GetFeatures() map[string]config.FeatureConfig
- func GetInspiroService() *services.InspiroService
- func GetInspiroServiceWithConfig(config *services.InspiroConfig) *services.InspiroService
- func GetLogLevel() string
- func GetUser(bloopyId string) models.User
- func InspiroClientWithConfig(config *services.InspiroConfig) *services.InspiroClient
- func IsFeaturedConfigured(key string) bool
- func NewDiscordServiceWithSession(session *discordgo.Session) *services.DiscordService
- func NewDiscordServiceWithToken(token string) (*services.DiscordService, error)
- func NewHealthLoggingInterceptor() health.Interceptor
- func NewReadinessChecker(discordReady func() bool) health.Checker
- func NewZapLogger() *zap.Logger
- func OnComponentStatusChanged(_ context.Context, name string, state health.CheckState)
- func OnReadinessStatusChanged(_ context.Context, state health.CheckerState)
- func OnSystemStatusChanged(_ context.Context, state health.CheckerState)
- type BloopyEnt
Constants ¶
View Source
const (
BloopyBoiUserAgent = "Mozilla/5.0 (compatible; BloopyBoi/1.0; +https://github.com/h3mmy/bloopyboi)"
)
View Source
const (
ServiceLoggerFieldKey = "service_name"
)
Variables ¶
This section is empty.
Functions ¶
func GetBlissfestService ¶
func GetBlissfestService() *services.BlissfestService
func GetBloopyServiceRegistry ¶
func GetBloopyServiceRegistry() models.ServiceRegistry
func GetBookService ¶
func GetBookService() *services.BookService
func GetBotName ¶
func GetBotName() string
func GetDiscordAppCommands ¶ added in v0.4.7
func GetDiscordAppCommands() []models.DiscordAppCommand
func GetInspiroService ¶ added in v0.4.7
func GetInspiroService() *services.InspiroService
func GetInspiroServiceWithConfig ¶ added in v0.4.7
func GetInspiroServiceWithConfig(config *services.InspiroConfig) *services.InspiroService
func InspiroClientWithConfig ¶ added in v0.4.7
func InspiroClientWithConfig(config *services.InspiroConfig) *services.InspiroClient
func IsFeaturedConfigured ¶
Checks FeatureConfigs for key
func NewDiscordServiceWithSession ¶ added in v0.4.5
func NewDiscordServiceWithSession(session *discordgo.Session) *services.DiscordService
func NewDiscordServiceWithToken ¶ added in v0.4.5
func NewDiscordServiceWithToken(token string) (*services.DiscordService, error)
NewDiscordServiceWithToken creates a new DiscordService with a token Oauth tokens need to be prefixed with "Bearer " instead so this won't work for that
func NewHealthLoggingInterceptor ¶ added in v0.4.4
func NewHealthLoggingInterceptor() health.Interceptor
func NewReadinessChecker ¶
func NewZapLogger ¶
func OnComponentStatusChanged ¶ added in v0.4.4
func OnComponentStatusChanged(_ context.Context, name string, state health.CheckState)
func OnReadinessStatusChanged ¶ added in v0.4.4
func OnReadinessStatusChanged(_ context.Context, state health.CheckerState)
func OnSystemStatusChanged ¶ added in v0.4.4
func OnSystemStatusChanged(_ context.Context, state health.CheckerState)
Types ¶
type BloopyEnt ¶
type BloopyEnt struct {
// contains filtered or unexported fields
}
func NewBloopyEnt ¶
func NewBloopyEnt() *BloopyEnt
func (*BloopyEnt) AddDiscordMessage ¶
Click to show internal directories.
Click to hide internal directories.