jira-bot/pkg/config/types.go

30 lines
435 B
Go
Raw Permalink Normal View History

2021-06-03 01:59:32 +03:00
package config
import "github.com/andygrunwald/go-jira"
2021-06-02 16:07:53 +03:00
type Config struct {
2021-06-03 01:59:32 +03:00
Debug bool
Developers []int
Telegram TelegramConfig
Jira JiraConfig
BotVersion float64
Redis ReidsConfig
}
type TelegramConfig struct {
Token string
Url string
2021-06-02 16:07:53 +03:00
}
type JiraConfig struct {
Url string
2021-06-03 01:59:32 +03:00
Auth jira.BasicAuthTransport
2021-06-02 16:07:53 +03:00
}
2021-06-03 01:59:32 +03:00
type ReidsConfig struct {
Host string
Port string
2021-06-02 16:07:53 +03:00
Password string
2021-06-03 01:59:32 +03:00
Db int
2021-06-02 16:07:53 +03:00
}