MCPcopy Create free account
hub / github.com/koding/kite / init

Function init

kite.go:34–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32var hostname string
33
34func 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

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected