MCPcopy Index your code
hub / github.com/koding/kite / UseTLSFile

Method UseTLSFile

server.go:139–151  ·  view source on GitHub ↗
(certFile, keyFile string)

Source from the content-addressed store, hash-verified

137}
138
139func (k *Kite) UseTLSFile(certFile, keyFile string) {
140 certData, err := ioutil.ReadFile(certFile)
141 if err != nil {
142 k.Log.Fatal("Cannot read certificate file: %s", err.Error())
143 }
144
145 keyData, err := ioutil.ReadFile(keyFile)
146 if err != nil {
147 k.Log.Fatal("Cannot read certificate file: %s", err.Error())
148 }
149
150 k.UseTLS(string(certData), string(keyData))
151}
152
153func (k *Kite) ServerCloseNotify() chan bool {
154 return k.closeC

Callers

nothing calls this directly

Calls 3

UseTLSMethod · 0.95
FatalMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected