Update dependencies
This commit is contained in:
10
internal/config/announces.go
Normal file
10
internal/config/announces.go
Normal file
@@ -0,0 +1,10 @@
|
||||
// Fantasy World Zookeeper Bot
|
||||
// Copyright (c) 2018 Vladimir "fat0troll" Hodakov
|
||||
|
||||
package config
|
||||
|
||||
// Announces is a struct which handles announces configuration
|
||||
type Announces struct {
|
||||
ChannelID int64 `yaml:"channel_id"`
|
||||
EnableLocal bool `yaml:"enable_local"`
|
||||
}
|
12
internal/config/proxy.go
Normal file
12
internal/config/proxy.go
Normal file
@@ -0,0 +1,12 @@
|
||||
// Fantasy World Zookeeper Bot
|
||||
// Copyright (c) 2018 Vladimir "fat0troll" Hodakov
|
||||
|
||||
package config
|
||||
|
||||
// Proxy handles settings for Telegram SOCKS5 proxy
|
||||
type Proxy struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
Address string `yaml:"address,omitempty"`
|
||||
Username string `yaml:"username,omitempty"`
|
||||
Password string `yaml:"password,omitempty"`
|
||||
}
|
11
internal/config/struct.go
Normal file
11
internal/config/struct.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// Fantasy World Zookeeper Bot
|
||||
// Copyright (c) 2018 Vladimir "fat0troll" Hodakov
|
||||
|
||||
package config
|
||||
|
||||
// Struct is a main configuration structure that holds all other
|
||||
// structs within.
|
||||
type Struct struct {
|
||||
Telegram Telegram `yaml:"telegram"`
|
||||
Announces Announces `yaml:"announces"`
|
||||
}
|
11
internal/config/telegram.go
Normal file
11
internal/config/telegram.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// Fantasy World Zookeeper Bot
|
||||
// Copyright (c) 2018 Vladimir "fat0troll" Hodakov
|
||||
|
||||
package config
|
||||
|
||||
// Telegram represents bot's Telegram configuration
|
||||
type Telegram struct {
|
||||
Token string `yaml:"token"`
|
||||
Webhook Webhook `yaml:"webhook"`
|
||||
Proxy Proxy `yaml:"proxy"`
|
||||
}
|
11
internal/config/webhook.go
Normal file
11
internal/config/webhook.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// Fantasy World Zookeeper Bot
|
||||
// Copyright (c) 2018 Vladimir "fat0troll" Hodakov
|
||||
|
||||
package config
|
||||
|
||||
// Webhook handles settings for Telegram webhook
|
||||
type Webhook struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
Domain string `yaml:"domain,omitempty"`
|
||||
Listen string `yaml:"listen,omitempty"`
|
||||
}
|
Reference in New Issue
Block a user