Move microsub to pkg/microsub
This commit is contained in:
parent
6d3eaa020d
commit
bf645f33ef
|
@ -7,9 +7,9 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/pstuifzand/ekster/microsub"
|
|
||||||
"github.com/pstuifzand/ekster/pkg/client"
|
"github.com/pstuifzand/ekster/pkg/client"
|
||||||
"github.com/pstuifzand/ekster/pkg/indieauth"
|
"github.com/pstuifzand/ekster/pkg/indieauth"
|
||||||
|
"github.com/pstuifzand/ekster/pkg/microsub"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -34,7 +34,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/garyburd/redigo/redis"
|
"github.com/garyburd/redigo/redis"
|
||||||
"github.com/pstuifzand/ekster/microsub"
|
"github.com/pstuifzand/ekster/pkg/microsub"
|
||||||
"willnorris.com/go/microformats"
|
"willnorris.com/go/microformats"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/garyburd/redigo/redis"
|
"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/util"
|
||||||
"github.com/pstuifzand/ekster/pkg/websub"
|
"github.com/pstuifzand/ekster/pkg/websub"
|
||||||
)
|
)
|
||||||
|
|
|
@ -29,8 +29,8 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/garyburd/redigo/redis"
|
"github.com/garyburd/redigo/redis"
|
||||||
"github.com/pstuifzand/ekster/microsub"
|
|
||||||
"github.com/pstuifzand/ekster/pkg/feedbin"
|
"github.com/pstuifzand/ekster/pkg/feedbin"
|
||||||
|
"github.com/pstuifzand/ekster/pkg/microsub"
|
||||||
"willnorris.com/go/microformats"
|
"willnorris.com/go/microformats"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/garyburd/redigo/redis"
|
"github.com/garyburd/redigo/redis"
|
||||||
"github.com/pstuifzand/ekster/microsub"
|
"github.com/pstuifzand/ekster/pkg/microsub"
|
||||||
"willnorris.com/go/microformats"
|
"willnorris.com/go/microformats"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/garyburd/redigo/redis"
|
"github.com/garyburd/redigo/redis"
|
||||||
"github.com/pstuifzand/ekster/microsub"
|
"github.com/pstuifzand/ekster/pkg/microsub"
|
||||||
)
|
)
|
||||||
|
|
||||||
type microsubHandler struct {
|
type microsubHandler struct {
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/pstuifzand/ekster/microsub"
|
"github.com/pstuifzand/ekster/pkg/microsub"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NullBackend is the simplest possible backend
|
// NullBackend is the simplest possible backend
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/pstuifzand/ekster/microsub"
|
"github.com/pstuifzand/ekster/pkg/microsub"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Client struct {
|
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