github.com/mikespook/gleam@v0.0.0-20170807230223-29a9392b522c/config.go (about) 1 package gleam 2 3 import ( 4 "time" 5 ) 6 7 const ( 8 TopicAll = "" 9 TopicIndividual = "i" 10 TopicBroadcast = "b" 11 ) 12 13 type Config struct { 14 ClientId string 15 FinalTick time.Duration 16 17 MQTT []ConfigMQTT 18 NotVerifyTLS bool 19 20 Tasks map[string]ConfigTask 21 Schedule ConfigSchedule 22 } 23 24 type ConfigTask map[string]byte 25 26 type ConfigMQTT struct { 27 Addr string 28 Username string 29 Password string 30 } 31 32 type ConfigSchedule struct { 33 Tick time.Duration 34 Tasks map[string]time.Duration 35 }