Move microsub to pkg/microsub

This commit is contained in:
Peter Stuifzand 2018-07-07 16:03:49 +02:00
parent 6d3eaa020d
commit bf645f33ef
10 changed files with 23 additions and 8 deletions

View File

@ -7,9 +7,9 @@ import (
"net/url"
"os"
"github.com/pstuifzand/ekster/microsub"
"github.com/pstuifzand/ekster/pkg/client"
"github.com/pstuifzand/ekster/pkg/indieauth"
"github.com/pstuifzand/ekster/pkg/microsub"
)
func init() {

View File

@ -34,7 +34,7 @@ import (
"time"
"github.com/garyburd/redigo/redis"
"github.com/pstuifzand/ekster/microsub"
"github.com/pstuifzand/ekster/pkg/microsub"
"willnorris.com/go/microformats"
)

View File

@ -28,7 +28,7 @@ import (
"time"
"github.com/garyburd/redigo/redis"
"github.com/pstuifzand/ekster/microsub"
"github.com/pstuifzand/ekster/pkg/microsub"
"github.com/pstuifzand/ekster/pkg/util"
"github.com/pstuifzand/ekster/pkg/websub"
)

View File

@ -29,8 +29,8 @@ import (
"time"
"github.com/garyburd/redigo/redis"
"github.com/pstuifzand/ekster/microsub"
"github.com/pstuifzand/ekster/pkg/feedbin"
"github.com/pstuifzand/ekster/pkg/microsub"
"willnorris.com/go/microformats"
)

View File

@ -9,7 +9,7 @@ import (
"strings"
"github.com/garyburd/redigo/redis"
"github.com/pstuifzand/ekster/microsub"
"github.com/pstuifzand/ekster/pkg/microsub"
"willnorris.com/go/microformats"
)

View File

@ -8,7 +8,7 @@ import (
"os"
"github.com/garyburd/redigo/redis"
"github.com/pstuifzand/ekster/microsub"
"github.com/pstuifzand/ekster/pkg/microsub"
)
type microsubHandler struct {

View File

@ -18,7 +18,7 @@
package main
import (
"github.com/pstuifzand/ekster/microsub"
"github.com/pstuifzand/ekster/pkg/microsub"
)
// NullBackend is the simplest possible backend

View File

@ -8,7 +8,7 @@ import (
"net/url"
"strings"
"github.com/pstuifzand/ekster/microsub"
"github.com/pstuifzand/ekster/pkg/microsub"
)
type Client struct {

View File

@ -0,0 +1,15 @@
package microsub
import (
"encoding/json"
"fmt"
"testing"
"github.com/pstuifzand/ekster/microsub"
)
func TestJson(t *testing.T) {
item := microsub.Item{Type: "entry"}
result, err := json.Marshal(item)
fmt.Println(string(result), err)
}