koding / kite

Micro-service framework in Go
https://godoc.org/github.com/koding/kite
MIT License
3.26k stars 300 forks source link

kite: Added ClientFunc on Kite struct #150

Closed leeola closed 8 years ago

leeola commented 8 years ago

Due to Kite.kontrol.Client not being exposed (or existing before being dialed), api users were unable to set the Client.ClientFunc field for the Kontrol Client.

This commit simply adds a ClientFunc field onto the Kite itself, which will also be used as the default ClientFunc value for any Client's created from the Kite - including Kite.kontrol.Client.

cc @rjeczalik @cihangir

cihangir commented 8 years ago

cc @rjeczalik

rjeczalik commented 8 years ago

@leeola lgtm :+1: