callbackserver

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL