Configuration draft.
This commit is contained in:
parent
5035a73884
commit
af8584b105
27
config/config.go
Normal file
27
config/config.go
Normal file
|
@ -0,0 +1,27 @@
|
|||
package config
|
||||
|
||||
type Config struct {
|
||||
Telegram TelegramConfig
|
||||
Ollama OllamaConfig
|
||||
Stats StatsConfig
|
||||
}
|
||||
|
||||
type StatsConfig struct {
|
||||
Enabled bool
|
||||
}
|
||||
|
||||
type TelegramConfig struct {
|
||||
Token string
|
||||
AdministratorIds []int64
|
||||
OnlyAllowedChats bool
|
||||
AllowedChats []int64
|
||||
}
|
||||
|
||||
type OllamaConfig struct {
|
||||
BaseUrl string
|
||||
Token string
|
||||
}
|
||||
|
||||
func ReadFromEnvAndFile() Config {
|
||||
|
||||
}
|
Loading…
Reference in a new issue