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

Method FinalFunc

method.go:203–205  ·  view source on GitHub ↗

FinalFunc registers a function that is always called as a last one after pre-, handler and post- functions. It receives a result and an error from last handler that got executed prior to calling final func.

(f FinalFunc)

Source from the content-addressed store, hash-verified

201// It receives a result and an error from last handler that
202// got executed prior to calling final func.
203func (k *Kite) FinalFunc(f FinalFunc) {
204 k.finalFuncs = append(k.finalFuncs, f)
205}
206
207func (m *Method) ServeKite(r *Request) (interface{}, error) {
208 var firstResp interface{}

Callers 1

TestKiteFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestKiteFunction · 0.36