Move microsub to pkg/microsub
This commit is contained in:
parent
6d3eaa020d
commit
bf645f33ef
|
@ -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() {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/pstuifzand/ekster/microsub"
|
||||
"github.com/pstuifzand/ekster/pkg/microsub"
|
||||
)
|
||||
|
||||
// NullBackend is the simplest possible backend
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"net/url"
|
||||
"strings"
|
||||
|
||||
"github.com/pstuifzand/ekster/microsub"
|
||||
"github.com/pstuifzand/ekster/pkg/microsub"
|
||||
)
|
||||
|
||||
type Client struct {
|
||||
|
|
15
pkg/microsub/protocol_test.go
Normal file
15
pkg/microsub/protocol_test.go
Normal 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)
|
||||
}
|
Loading…
Reference in New Issue
Block a user