Move from dep to go mod (experiment)
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
// 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"`
|
||||
}
|
@@ -1,12 +0,0 @@
|
||||
// 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"`
|
||||
}
|
@@ -1,11 +0,0 @@
|
||||
// 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"`
|
||||
}
|
@@ -1,11 +0,0 @@
|
||||
// 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"`
|
||||
}
|
@@ -1,11 +0,0 @@
|
||||
// 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