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

Method FinalFunc

method.go:154–157  ·  view source on GitHub ↗

FinalFunc registers a function that is always called as a last one after pre-, handler and post- functions for the given method. 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

152// It receives a result and an error from last handler that
153// got executed prior to calling final func.
154func (m *Method) FinalFunc(f FinalFunc) *Method {
155 m.finalFuncs = append(m.finalFuncs, f)
156 return m
157}
158
159// Handle registers the handler for the given method. The handler is called
160// when a method call is received from a Kite.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected