providers

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 GetBotToken

func GetBotToken() string

Retrieves Bot Token

func GetDiscordAppCommands added in v0.4.7

func GetDiscordAppCommands() []models.DiscordAppCommand

func GetFeatures

func GetFeatures() map[string]config.FeatureConfig

Returns

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 GetLogLevel

func GetLogLevel() string

Retrieves logLevel if set

func GetUser

func GetUser(bloopyId string) models.User

func InspiroClientWithConfig added in v0.4.7

func InspiroClientWithConfig(config *services.InspiroConfig) *services.InspiroClient

func IsFeaturedConfigured

func IsFeaturedConfigured(key string) bool

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 NewReadinessChecker(discordReady func() bool) health.Checker

func NewZapLogger

func NewZapLogger() *zap.Logger

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

func (be *BloopyEnt) AddDiscordMessage(ctx context.Context, dmsg *discordgo.Message) error

func (*BloopyEnt) Quit

func (be *BloopyEnt) Quit(ctx context.Context) error

func (*BloopyEnt) Start

func (be *BloopyEnt) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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