mirror of
https://github.com/Damillora/Yuriko.git
synced 2024-11-22 09:37:31 +00:00
24 lines
439 B
Go
24 lines
439 B
Go
package config
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
)
|
|
|
|
type Config struct {
|
|
TypesenseApiUrl string
|
|
TypesenseApiKey string
|
|
WebhookApiKey string
|
|
}
|
|
|
|
var CurrentConfig Config
|
|
|
|
func InitializeConfig() {
|
|
CurrentConfig = Config{
|
|
TypesenseApiUrl: os.Getenv("TYPESENSE_API_URL"),
|
|
TypesenseApiKey: os.Getenv("TYPESENSE_API_KEY"),
|
|
WebhookApiKey: os.Getenv("WEBHOOK_API_KEY"),
|
|
}
|
|
log.Println("Typesense API URL: " + os.Getenv("TYPESENSE_API_URL"))
|
|
}
|