configuration.go 588 B

12345678910111213141516171819202122232425262728293031323334
  1. package configuration
  2. type Cfg struct {
  3. Http HttpCfg
  4. }
  5. type HttpCfg struct {
  6. Port string
  7. GoogleOAuth GoogleOAuthCfg
  8. }
  9. type GoogleOAuthCfg struct {
  10. Enabled bool
  11. ClientId string
  12. ClientSecret string
  13. }
  14. type DashboardSourceCfg struct {
  15. sourceType string
  16. path string
  17. }
  18. func NewCfg(port string) *Cfg {
  19. return &Cfg{
  20. Http: HttpCfg{
  21. Port: port,
  22. GoogleOAuth: GoogleOAuthCfg{
  23. Enabled: true,
  24. ClientId: "106011922963-4pvl05e9urtrm8bbqr0vouosj3e8p8kb.apps.googleusercontent.com",
  25. ClientSecret: "K2evIa4QhfbhhAm3SO72t2Zv",
  26. },
  27. },
  28. }
  29. }