Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunCallbackServer ¶
func RunCallbackServer(port int, redirectURI string, callback func(w http.ResponseWriter, r *http.Request) (interface{}, error)) (interface{}, error)
RunCallbackServer starts a server listening at a specific path and port and calls a callback function as soon as that path is hit.
It blocks and waits until the path is hit, then shuts down and returns the result of the callback function.
Types ¶
type CallbackResult ¶
type CallbackResult struct { Interface interface{} Error error }
CallbackResult is used by our channel to store callback results.
Click to show internal directories.
Click to hide internal directories.