refactor: rename to vanity url

This commit is contained in:
2023-02-26 22:33:01 -07:00
parent 3f3ea4439c
commit 0621e2e815
60 changed files with 214 additions and 217 deletions

View File

@@ -3,7 +3,7 @@ package webfinger
import (
"encoding/json"
"github.com/sour-is/ev/pkg/es/event"
"go.sour.is/ev/pkg/es/event"
)
type SubjectSet struct {
@@ -35,7 +35,7 @@ func (e *SubjectSet) UnmarshalBinary(b []byte) error {
var _ event.Event = (*SubjectSet)(nil)
type SubjectDeleted struct {
Subject string `json:"subject"`
Subject string `json:"subject"`
eventMeta event.Meta
}

View File

@@ -8,9 +8,9 @@ import (
"hash/fnv"
"sort"
"github.com/sour-is/ev/pkg/es/event"
"github.com/sour-is/ev/pkg/set"
"github.com/sour-is/ev/pkg/slice"
"go.sour.is/ev/pkg/es/event"
"go.sour.is/ev/pkg/set"
"go.sour.is/ev/pkg/slice"
"gopkg.in/yaml.v3"
)
@@ -34,14 +34,14 @@ type JRD struct {
func (a *JRD) CloneValues() *JRD {
m := make(map[string]*string, len(a.Properties))
for k,v := range a.Properties {
for k, v := range a.Properties {
m[k] = v
}
return &JRD{
Subject: a.Subject,
Aliases: append([]string{}, a.Aliases...),
Properties: m,
Links: append([]*Link{}, a.Links...),
Subject: a.Subject,
Aliases: append([]string{}, a.Aliases...),
Properties: m,
Links: append([]*Link{}, a.Links...),
}
}

View File

@@ -14,12 +14,12 @@ import (
"github.com/matryer/is"
"go.uber.org/multierr"
"github.com/sour-is/ev"
"github.com/sour-is/ev/app/webfinger"
memstore "github.com/sour-is/ev/pkg/es/driver/mem-store"
"github.com/sour-is/ev/pkg/es/driver/projecter"
"github.com/sour-is/ev/pkg/es/driver/streamer"
"github.com/sour-is/ev/pkg/es/event"
"go.sour.is/ev"
"go.sour.is/ev/app/webfinger"
memstore "go.sour.is/ev/pkg/es/driver/mem-store"
"go.sour.is/ev/pkg/es/driver/projecter"
"go.sour.is/ev/pkg/es/driver/streamer"
"go.sour.is/ev/pkg/es/event"
)
func TestParseJRD(t *testing.T) {

View File

@@ -13,10 +13,10 @@ import (
"strings"
"github.com/golang-jwt/jwt/v4"
"github.com/sour-is/ev"
"github.com/sour-is/ev/internal/lg"
"github.com/sour-is/ev/pkg/es/event"
"github.com/sour-is/ev/pkg/set"
"go.sour.is/ev"
"go.sour.is/ev/internal/lg"
"go.sour.is/ev/pkg/es/event"
"go.sour.is/ev/pkg/set"
)
type service struct {
@@ -328,4 +328,4 @@ func validOptionalPort(port string) bool {
}
}
return true
}
}