Move Function and HTTPTrigger types to top level 'fission' package

This commit is contained in:
Soam Vasani
2016-09-09 15:04:15 -07:00
parent 796a9810a4
commit fb08d98037
8 changed files with 53 additions and 24 deletions
+3 -1
View File
@@ -19,11 +19,13 @@ package router
import (
"net/url"
"testing"
"github.com/platform9/fission"
)
func TestFunctionServiceMap(t *testing.T) {
m := makeFunctionServiceMap()
fn := &Function{Name: "foo", Uid: "012"}
fn := &fission.Function{Name: "foo", Uid: "012"}
u, err := url.Parse("/foo012")
if err != nil {
t.Errorf("can't parse url")