()
| 32 | var hostname string |
| 33 | |
| 34 | func init() { |
| 35 | var err error |
| 36 | hostname, err = os.Hostname() |
| 37 | if err != nil { |
| 38 | panic(fmt.Sprintf("kite: cannot get hostname: %s", err.Error())) |
| 39 | } |
| 40 | |
| 41 | jwt.TimeFunc = func() time.Time { |
| 42 | return time.Now().UTC() |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | // Kite defines a single process that enables distributed service messaging |
| 47 | // amongst the peers it is connected. A Kite process acts as a Client and as a |