Highly-opinionated (ex-bullshit-free) MTPROTO proxy for Telegram. If you use v1.0 or upgrade broke you proxy, please read the chapter Version 2
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

init.go 360B

12345678910111213141516171819202122
  1. package stats
  2. import (
  3. "github.com/juju/errors"
  4. "github.com/9seconds/mtg/config"
  5. )
  6. func Init(conf *config.Config) error {
  7. if conf.StatsD.Enabled {
  8. client, err := newStatsd(conf)
  9. if err != nil {
  10. return errors.Annotate(err, "Cannot initialize statsd client")
  11. }
  12. go client.run()
  13. }
  14. go NewStats(conf).start()
  15. go startServer(conf)
  16. return nil
  17. }