2020-04-04 08:36:52 +00:00
|
|
|
package dynfunc
|
2020-03-29 13:00:22 +00:00
|
|
|
|
|
|
|
import "reflect"
|
|
|
|
|
|
|
|
// Handler represents a dynamic api handler
|
|
|
|
type Handler struct {
|
|
|
|
spec spec
|
2020-04-04 08:05:27 +00:00
|
|
|
fn interface{}
|
2020-03-29 13:00:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type spec struct {
|
|
|
|
Input map[string]reflect.Type
|
|
|
|
Output map[string]reflect.Type
|
|
|
|
}
|