🚚 Renamed module due project migration
continuous-integration/drone Build is failing Details

This commit is contained in:
Maxim Lebedev 2022-03-13 15:58:34 +05:00
parent 86f3b3d581
commit 3b0ebb3690
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
91 changed files with 256 additions and 257 deletions

2
go.mod
View File

@ -1,4 +1,4 @@
module source.toby3d.me/website/indieauth module source.toby3d.me/toby3d/auth
go 1.16 go 1.16

View File

@ -15,12 +15,12 @@ import (
"source.toby3d.me/toby3d/form" "source.toby3d.me/toby3d/form"
"source.toby3d.me/toby3d/middleware" "source.toby3d.me/toby3d/middleware"
"source.toby3d.me/website/indieauth/internal/auth" "source.toby3d.me/toby3d/auth/internal/auth"
"source.toby3d.me/website/indieauth/internal/client" "source.toby3d.me/toby3d/auth/internal/client"
"source.toby3d.me/website/indieauth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/profile" "source.toby3d.me/toby3d/auth/internal/profile"
"source.toby3d.me/website/indieauth/web" "source.toby3d.me/toby3d/auth/web"
) )
type ( type (

View File

@ -11,19 +11,19 @@ import (
"golang.org/x/text/language" "golang.org/x/text/language"
"golang.org/x/text/message" "golang.org/x/text/message"
"source.toby3d.me/website/indieauth/internal/auth" "source.toby3d.me/toby3d/auth/internal/auth"
delivery "source.toby3d.me/website/indieauth/internal/auth/delivery/http" delivery "source.toby3d.me/toby3d/auth/internal/auth/delivery/http"
ucase "source.toby3d.me/website/indieauth/internal/auth/usecase" ucase "source.toby3d.me/toby3d/auth/internal/auth/usecase"
"source.toby3d.me/website/indieauth/internal/client" "source.toby3d.me/toby3d/auth/internal/client"
clientrepo "source.toby3d.me/website/indieauth/internal/client/repository/memory" clientrepo "source.toby3d.me/toby3d/auth/internal/client/repository/memory"
clientucase "source.toby3d.me/website/indieauth/internal/client/usecase" clientucase "source.toby3d.me/toby3d/auth/internal/client/usecase"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/profile" "source.toby3d.me/toby3d/auth/internal/profile"
profilerepo "source.toby3d.me/website/indieauth/internal/profile/repository/memory" profilerepo "source.toby3d.me/toby3d/auth/internal/profile/repository/memory"
"source.toby3d.me/website/indieauth/internal/session" "source.toby3d.me/toby3d/auth/internal/session"
sessionrepo "source.toby3d.me/website/indieauth/internal/session/repository/memory" sessionrepo "source.toby3d.me/toby3d/auth/internal/session/repository/memory"
"source.toby3d.me/website/indieauth/internal/testing/httptest" "source.toby3d.me/toby3d/auth/internal/testing/httptest"
userrepo "source.toby3d.me/website/indieauth/internal/user/repository/memory" userrepo "source.toby3d.me/toby3d/auth/internal/user/repository/memory"
) )
type Dependencies struct { type Dependencies struct {

View File

@ -3,7 +3,7 @@ package auth
import ( import (
"context" "context"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
type ( type (

View File

@ -4,11 +4,11 @@ import (
"context" "context"
"fmt" "fmt"
"source.toby3d.me/website/indieauth/internal/auth" "source.toby3d.me/toby3d/auth/internal/auth"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/profile" "source.toby3d.me/toby3d/auth/internal/profile"
"source.toby3d.me/website/indieauth/internal/random" "source.toby3d.me/toby3d/auth/internal/random"
"source.toby3d.me/website/indieauth/internal/session" "source.toby3d.me/toby3d/auth/internal/session"
) )
type authUseCase struct { type authUseCase struct {

View File

@ -9,12 +9,12 @@ import (
"golang.org/x/text/language" "golang.org/x/text/language"
"golang.org/x/text/message" "golang.org/x/text/message"
"source.toby3d.me/toby3d/auth/internal/common"
"source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/toby3d/auth/internal/token"
"source.toby3d.me/toby3d/auth/web"
"source.toby3d.me/toby3d/form" "source.toby3d.me/toby3d/form"
"source.toby3d.me/toby3d/middleware" "source.toby3d.me/toby3d/middleware"
"source.toby3d.me/website/indieauth/internal/common"
"source.toby3d.me/website/indieauth/internal/domain"
"source.toby3d.me/website/indieauth/internal/token"
"source.toby3d.me/website/indieauth/web"
) )
type ( type (

View File

@ -9,16 +9,16 @@ import (
"golang.org/x/text/language" "golang.org/x/text/language"
"golang.org/x/text/message" "golang.org/x/text/message"
delivery "source.toby3d.me/website/indieauth/internal/client/delivery/http" delivery "source.toby3d.me/toby3d/auth/internal/client/delivery/http"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/profile" "source.toby3d.me/toby3d/auth/internal/profile"
profilerepo "source.toby3d.me/website/indieauth/internal/profile/repository/memory" profilerepo "source.toby3d.me/toby3d/auth/internal/profile/repository/memory"
"source.toby3d.me/website/indieauth/internal/session" "source.toby3d.me/toby3d/auth/internal/session"
sessionrepo "source.toby3d.me/website/indieauth/internal/session/repository/memory" sessionrepo "source.toby3d.me/toby3d/auth/internal/session/repository/memory"
"source.toby3d.me/website/indieauth/internal/testing/httptest" "source.toby3d.me/toby3d/auth/internal/testing/httptest"
"source.toby3d.me/website/indieauth/internal/token" "source.toby3d.me/toby3d/auth/internal/token"
tokenrepo "source.toby3d.me/website/indieauth/internal/token/repository/memory" tokenrepo "source.toby3d.me/toby3d/auth/internal/token/repository/memory"
tokenucase "source.toby3d.me/website/indieauth/internal/token/usecase" tokenucase "source.toby3d.me/toby3d/auth/internal/token/usecase"
) )
type Dependencies struct { type Dependencies struct {

View File

@ -3,7 +3,7 @@ package client
import ( import (
"context" "context"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
type Repository interface { type Repository interface {

View File

@ -6,9 +6,9 @@ import (
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
"source.toby3d.me/website/indieauth/internal/client" "source.toby3d.me/toby3d/auth/internal/client"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/util" "source.toby3d.me/toby3d/auth/internal/util"
) )
type httpClientRepository struct { type httpClientRepository struct {

View File

@ -8,10 +8,10 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
repository "source.toby3d.me/website/indieauth/internal/client/repository/http" repository "source.toby3d.me/toby3d/auth/internal/client/repository/http"
"source.toby3d.me/website/indieauth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/testing/httptest" "source.toby3d.me/toby3d/auth/internal/testing/httptest"
) )
const testBody string = ` const testBody string = `

View File

@ -6,8 +6,8 @@ import (
"path" "path"
"sync" "sync"
"source.toby3d.me/website/indieauth/internal/client" "source.toby3d.me/toby3d/auth/internal/client"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
type memoryClientRepository struct { type memoryClientRepository struct {

View File

@ -7,8 +7,8 @@ import (
"sync" "sync"
"testing" "testing"
repository "source.toby3d.me/website/indieauth/internal/client/repository/memory" repository "source.toby3d.me/toby3d/auth/internal/client/repository/memory"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
func TestGet(t *testing.T) { func TestGet(t *testing.T) {

View File

@ -3,7 +3,7 @@ package client
import ( import (
"context" "context"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
type UseCase interface { type UseCase interface {

View File

@ -4,8 +4,8 @@ import (
"context" "context"
"fmt" "fmt"
"source.toby3d.me/website/indieauth/internal/client" "source.toby3d.me/toby3d/auth/internal/client"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
type clientUseCase struct { type clientUseCase struct {

View File

@ -7,9 +7,9 @@ import (
"sync" "sync"
"testing" "testing"
repository "source.toby3d.me/website/indieauth/internal/client/repository/memory" repository "source.toby3d.me/toby3d/auth/internal/client/repository/memory"
"source.toby3d.me/website/indieauth/internal/client/usecase" "source.toby3d.me/toby3d/auth/internal/client/usecase"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
func TestDiscovery(t *testing.T) { func TestDiscovery(t *testing.T) {

View File

@ -4,7 +4,7 @@ package domain_test
import ( import (
"testing" "testing"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
func TestParseAction(t *testing.T) { func TestParseAction(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
func TestParseClientID(t *testing.T) { func TestParseClientID(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
func TestClient_ValidateRedirectURI(t *testing.T) { func TestClient_ValidateRedirectURI(t *testing.T) {

View File

@ -12,8 +12,8 @@ import (
"github.com/brianvoe/gofakeit/v6" "github.com/brianvoe/gofakeit/v6"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/random" "source.toby3d.me/toby3d/auth/internal/random"
) )
func TestParseCodeChallengeMethod(t *testing.T) { func TestParseCodeChallengeMethod(t *testing.T) {

View File

@ -3,7 +3,7 @@ package domain_test
import ( import (
"testing" "testing"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
func TestConfigServer_GetAddress(t *testing.T) { func TestConfigServer_GetAddress(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
func TestParseEmail(t *testing.T) { func TestParseEmail(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
func ExampleNewError() { func ExampleNewError() {

View File

@ -4,7 +4,7 @@ package domain_test
import ( import (
"testing" "testing"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
func TestParseGrantType(t *testing.T) { func TestParseGrantType(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
func TestParseMe(t *testing.T) { func TestParseMe(t *testing.T) {

View File

@ -4,7 +4,7 @@ package domain_test
import ( import (
"testing" "testing"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
func TestResponseTypeType(t *testing.T) { func TestResponseTypeType(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
func TestParseScope(t *testing.T) { func TestParseScope(t *testing.T) {

View File

@ -3,7 +3,7 @@ package domain
import ( import (
"testing" "testing"
"source.toby3d.me/website/indieauth/internal/random" "source.toby3d.me/toby3d/auth/internal/random"
) )
//nolint: tagliatelle //nolint: tagliatelle

View File

@ -9,7 +9,7 @@ import (
"github.com/lestrrat-go/jwx/jwt" "github.com/lestrrat-go/jwx/jwt"
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
"source.toby3d.me/website/indieauth/internal/random" "source.toby3d.me/toby3d/auth/internal/random"
) )
type ( type (

View File

@ -8,7 +8,7 @@ import (
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
func TestNewToken(t *testing.T) { func TestNewToken(t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
func TestParseURL(t *testing.T) { func TestParseURL(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
"source.toby3d.me/toby3d/middleware" "source.toby3d.me/toby3d/middleware"
"source.toby3d.me/website/indieauth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"
) )
type RequestHandler struct{} type RequestHandler struct{}

View File

@ -6,8 +6,8 @@ import (
"github.com/fasthttp/router" "github.com/fasthttp/router"
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
delivery "source.toby3d.me/website/indieauth/internal/health/delivery/http" delivery "source.toby3d.me/toby3d/auth/internal/health/delivery/http"
"source.toby3d.me/website/indieauth/internal/testing/httptest" "source.toby3d.me/toby3d/auth/internal/testing/httptest"
) )
func TestRequestHandler(t *testing.T) { func TestRequestHandler(t *testing.T) {

View File

@ -6,8 +6,8 @@ import (
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
"source.toby3d.me/toby3d/middleware" "source.toby3d.me/toby3d/middleware"
"source.toby3d.me/website/indieauth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
type ( type (

View File

@ -7,9 +7,9 @@ import (
"github.com/goccy/go-json" "github.com/goccy/go-json"
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
delivery "source.toby3d.me/website/indieauth/internal/metadata/delivery/http" delivery "source.toby3d.me/toby3d/auth/internal/metadata/delivery/http"
"source.toby3d.me/website/indieauth/internal/testing/httptest" "source.toby3d.me/toby3d/auth/internal/testing/httptest"
) )
func TestMetadata(t *testing.T) { func TestMetadata(t *testing.T) {

View File

@ -3,7 +3,7 @@ package metadata
import ( import (
"context" "context"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
type Repository interface { type Repository interface {

View File

@ -7,9 +7,9 @@ import (
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/metadata" "source.toby3d.me/toby3d/auth/internal/metadata"
"source.toby3d.me/website/indieauth/internal/util" "source.toby3d.me/toby3d/auth/internal/util"
) )
type ( type (

View File

@ -5,8 +5,8 @@ import (
"path" "path"
"sync" "sync"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/metadata" "source.toby3d.me/toby3d/auth/internal/metadata"
) )
type memoryMetadataRepository struct { type memoryMetadataRepository struct {

View File

@ -3,7 +3,7 @@ package profile
import ( import (
"context" "context"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
type Repository interface { type Repository interface {

View File

@ -6,9 +6,9 @@ import (
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/profile" "source.toby3d.me/toby3d/auth/internal/profile"
"source.toby3d.me/website/indieauth/internal/util" "source.toby3d.me/toby3d/auth/internal/util"
) )
type httpProfileRepository struct { type httpProfileRepository struct {

View File

@ -6,8 +6,8 @@ import (
"path" "path"
"sync" "sync"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/profile" "source.toby3d.me/toby3d/auth/internal/profile"
) )
type memoryProfileRepository struct { type memoryProfileRepository struct {

View File

@ -3,7 +3,7 @@ package profile
import ( import (
"context" "context"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
type UseCase interface { type UseCase interface {

View File

@ -4,8 +4,8 @@ import (
"context" "context"
"fmt" "fmt"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/profile" "source.toby3d.me/toby3d/auth/internal/profile"
) )
type profileUseCase struct { type profileUseCase struct {

View File

@ -3,7 +3,7 @@ package session
import ( import (
"context" "context"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
type Repository interface { type Repository interface {

View File

@ -7,8 +7,8 @@ import (
"sync" "sync"
"time" "time"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/session" "source.toby3d.me/toby3d/auth/internal/session"
) )
type ( type (

View File

@ -11,8 +11,8 @@ import (
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/session" "source.toby3d.me/toby3d/auth/internal/session"
) )
type ( type (

View File

@ -7,9 +7,9 @@ import (
"github.com/DATA-DOG/go-sqlmock" "github.com/DATA-DOG/go-sqlmock"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
repository "source.toby3d.me/website/indieauth/internal/session/repository/sqlite3" repository "source.toby3d.me/toby3d/auth/internal/session/repository/sqlite3"
"source.toby3d.me/website/indieauth/internal/testing/sqltest" "source.toby3d.me/toby3d/auth/internal/testing/sqltest"
) )
//nolint: gochecknoglobals // slices cannot be contants //nolint: gochecknoglobals // slices cannot be contants

View File

@ -3,7 +3,7 @@ package session
import ( import (
"context" "context"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
type UseCase interface { type UseCase interface {

View File

@ -4,8 +4,8 @@ import (
"context" "context"
"fmt" "fmt"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/session" "source.toby3d.me/toby3d/auth/internal/session"
) )
type sessionUseCase struct { type sessionUseCase struct {

View File

@ -14,11 +14,11 @@ import (
"source.toby3d.me/toby3d/form" "source.toby3d.me/toby3d/form"
"source.toby3d.me/toby3d/middleware" "source.toby3d.me/toby3d/middleware"
"source.toby3d.me/website/indieauth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/random" "source.toby3d.me/toby3d/auth/internal/random"
"source.toby3d.me/website/indieauth/internal/ticket" "source.toby3d.me/toby3d/auth/internal/ticket"
"source.toby3d.me/website/indieauth/web" "source.toby3d.me/toby3d/auth/web"
) )
type ( type (

View File

@ -9,13 +9,13 @@ import (
"golang.org/x/text/language" "golang.org/x/text/language"
"golang.org/x/text/message" "golang.org/x/text/message"
"source.toby3d.me/website/indieauth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/testing/httptest" "source.toby3d.me/toby3d/auth/internal/testing/httptest"
"source.toby3d.me/website/indieauth/internal/ticket" "source.toby3d.me/toby3d/auth/internal/ticket"
delivery "source.toby3d.me/website/indieauth/internal/ticket/delivery/http" delivery "source.toby3d.me/toby3d/auth/internal/ticket/delivery/http"
ticketrepo "source.toby3d.me/website/indieauth/internal/ticket/repository/memory" ticketrepo "source.toby3d.me/toby3d/auth/internal/ticket/repository/memory"
ucase "source.toby3d.me/website/indieauth/internal/ticket/usecase" ucase "source.toby3d.me/toby3d/auth/internal/ticket/usecase"
) )
type Dependencies struct { type Dependencies struct {

View File

@ -3,7 +3,7 @@ package ticket
import ( import (
"context" "context"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
type Repository interface { type Repository interface {

View File

@ -7,8 +7,8 @@ import (
"sync" "sync"
"time" "time"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/ticket" "source.toby3d.me/toby3d/auth/internal/ticket"
) )
type ( type (

View File

@ -8,8 +8,8 @@ import (
"testing" "testing"
"time" "time"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
repository "source.toby3d.me/website/indieauth/internal/ticket/repository/memory" repository "source.toby3d.me/toby3d/auth/internal/ticket/repository/memory"
) )
func TestCreate(t *testing.T) { func TestCreate(t *testing.T) {

View File

@ -9,8 +9,8 @@ import (
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/ticket" "source.toby3d.me/toby3d/auth/internal/ticket"
) )
type ( type (

View File

@ -7,9 +7,9 @@ import (
"github.com/DATA-DOG/go-sqlmock" "github.com/DATA-DOG/go-sqlmock"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/testing/sqltest" "source.toby3d.me/toby3d/auth/internal/testing/sqltest"
repository "source.toby3d.me/website/indieauth/internal/ticket/repository/sqlite3" repository "source.toby3d.me/toby3d/auth/internal/ticket/repository/sqlite3"
) )
//nolint: gochecknoglobals // slices cannot be contants //nolint: gochecknoglobals // slices cannot be contants

View File

@ -3,7 +3,7 @@ package ticket
import ( import (
"context" "context"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
type UseCase interface { type UseCase interface {

View File

@ -8,10 +8,10 @@ import (
json "github.com/goccy/go-json" json "github.com/goccy/go-json"
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
"source.toby3d.me/website/indieauth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/ticket" "source.toby3d.me/toby3d/auth/internal/ticket"
"source.toby3d.me/website/indieauth/internal/util" "source.toby3d.me/toby3d/auth/internal/util"
) )
type ( type (

View File

@ -8,10 +8,10 @@ import (
"github.com/fasthttp/router" "github.com/fasthttp/router"
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
"source.toby3d.me/website/indieauth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/testing/httptest" "source.toby3d.me/toby3d/auth/internal/testing/httptest"
ucase "source.toby3d.me/website/indieauth/internal/ticket/usecase" ucase "source.toby3d.me/toby3d/auth/internal/ticket/usecase"
) )
func TestRedeem(t *testing.T) { func TestRedeem(t *testing.T) {

View File

@ -11,10 +11,10 @@ import (
"source.toby3d.me/toby3d/form" "source.toby3d.me/toby3d/form"
"source.toby3d.me/toby3d/middleware" "source.toby3d.me/toby3d/middleware"
"source.toby3d.me/website/indieauth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/ticket" "source.toby3d.me/toby3d/auth/internal/ticket"
"source.toby3d.me/website/indieauth/internal/token" "source.toby3d.me/toby3d/auth/internal/token"
) )
type ( type (

View File

@ -10,20 +10,20 @@ import (
json "github.com/goccy/go-json" json "github.com/goccy/go-json"
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
"source.toby3d.me/website/indieauth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/profile" "source.toby3d.me/toby3d/auth/internal/profile"
profilerepo "source.toby3d.me/website/indieauth/internal/profile/repository/memory" profilerepo "source.toby3d.me/toby3d/auth/internal/profile/repository/memory"
"source.toby3d.me/website/indieauth/internal/session" "source.toby3d.me/toby3d/auth/internal/session"
sessionrepo "source.toby3d.me/website/indieauth/internal/session/repository/memory" sessionrepo "source.toby3d.me/toby3d/auth/internal/session/repository/memory"
"source.toby3d.me/website/indieauth/internal/testing/httptest" "source.toby3d.me/toby3d/auth/internal/testing/httptest"
"source.toby3d.me/website/indieauth/internal/ticket" "source.toby3d.me/toby3d/auth/internal/ticket"
ticketrepo "source.toby3d.me/website/indieauth/internal/ticket/repository/memory" ticketrepo "source.toby3d.me/toby3d/auth/internal/ticket/repository/memory"
ticketucase "source.toby3d.me/website/indieauth/internal/ticket/usecase" ticketucase "source.toby3d.me/toby3d/auth/internal/ticket/usecase"
"source.toby3d.me/website/indieauth/internal/token" "source.toby3d.me/toby3d/auth/internal/token"
delivery "source.toby3d.me/website/indieauth/internal/token/delivery/http" delivery "source.toby3d.me/toby3d/auth/internal/token/delivery/http"
tokenrepo "source.toby3d.me/website/indieauth/internal/token/repository/memory" tokenrepo "source.toby3d.me/toby3d/auth/internal/token/repository/memory"
tokenucase "source.toby3d.me/website/indieauth/internal/token/usecase" tokenucase "source.toby3d.me/toby3d/auth/internal/token/usecase"
) )
type Dependencies struct { type Dependencies struct {

View File

@ -3,7 +3,7 @@ package token
import ( import (
"context" "context"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
type Repository interface { type Repository interface {

View File

@ -6,8 +6,8 @@ import (
"path" "path"
"sync" "sync"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/token" "source.toby3d.me/toby3d/auth/internal/token"
) )
type memoryTokenRepository struct { type memoryTokenRepository struct {

View File

@ -8,9 +8,9 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/token" "source.toby3d.me/toby3d/auth/internal/token"
repository "source.toby3d.me/website/indieauth/internal/token/repository/memory" repository "source.toby3d.me/toby3d/auth/internal/token/repository/memory"
) )
func TestCreate(t *testing.T) { func TestCreate(t *testing.T) {

View File

@ -10,8 +10,8 @@ import (
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/token" "source.toby3d.me/toby3d/auth/internal/token"
) )
type ( type (

View File

@ -7,9 +7,9 @@ import (
"github.com/DATA-DOG/go-sqlmock" "github.com/DATA-DOG/go-sqlmock"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/testing/sqltest" "source.toby3d.me/toby3d/auth/internal/testing/sqltest"
repository "source.toby3d.me/website/indieauth/internal/token/repository/sqlite3" repository "source.toby3d.me/toby3d/auth/internal/token/repository/sqlite3"
) )
//nolint: gochecknoglobals // slices cannot be contants //nolint: gochecknoglobals // slices cannot be contants

View File

@ -3,7 +3,7 @@ package token
import ( import (
"context" "context"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
type ( type (

View File

@ -8,10 +8,10 @@ import (
"github.com/lestrrat-go/jwx/jwa" "github.com/lestrrat-go/jwx/jwa"
"github.com/lestrrat-go/jwx/jwt" "github.com/lestrrat-go/jwx/jwt"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/profile" "source.toby3d.me/toby3d/auth/internal/profile"
"source.toby3d.me/website/indieauth/internal/session" "source.toby3d.me/toby3d/auth/internal/session"
"source.toby3d.me/website/indieauth/internal/token" "source.toby3d.me/toby3d/auth/internal/token"
) )
type ( type (
@ -91,13 +91,12 @@ func (uc *tokenUseCase) Exchange(ctx context.Context, opts token.ExchangeOptions
} }
func (uc *tokenUseCase) Verify(ctx context.Context, accessToken string) (*domain.Token, *domain.Profile, error) { func (uc *tokenUseCase) Verify(ctx context.Context, accessToken string) (*domain.Token, *domain.Profile, error) {
find, err := uc.tokens.Get(ctx, accessToken) if _, err := uc.tokens.Get(ctx, accessToken); err != nil {
if err != nil && !errors.Is(err, token.ErrNotExist) { if errors.Is(err, token.ErrNotExist) {
return nil, nil, fmt.Errorf("cannot check token in store: %w", err) return nil, nil, token.ErrRevoke
} }
if find != nil { return nil, nil, fmt.Errorf("cannot check token in store: %w", err)
return nil, nil, token.ErrRevoke
} }
tkn, err := jwt.ParseString(accessToken, jwt.WithVerify(jwa.SignatureAlgorithm(uc.config.JWT.Algorithm), tkn, err := jwt.ParseString(accessToken, jwt.WithVerify(jwa.SignatureAlgorithm(uc.config.JWT.Algorithm),

View File

@ -9,14 +9,14 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/profile" "source.toby3d.me/toby3d/auth/internal/profile"
profilerepo "source.toby3d.me/website/indieauth/internal/profile/repository/memory" profilerepo "source.toby3d.me/toby3d/auth/internal/profile/repository/memory"
"source.toby3d.me/website/indieauth/internal/session" "source.toby3d.me/toby3d/auth/internal/session"
sessionrepo "source.toby3d.me/website/indieauth/internal/session/repository/memory" sessionrepo "source.toby3d.me/toby3d/auth/internal/session/repository/memory"
"source.toby3d.me/website/indieauth/internal/token" "source.toby3d.me/toby3d/auth/internal/token"
tokenrepo "source.toby3d.me/website/indieauth/internal/token/repository/memory" tokenrepo "source.toby3d.me/toby3d/auth/internal/token/repository/memory"
usecase "source.toby3d.me/website/indieauth/internal/token/usecase" usecase "source.toby3d.me/toby3d/auth/internal/token/usecase"
) )
type Dependencies struct { type Dependencies struct {

View File

@ -9,9 +9,9 @@ import (
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
"source.toby3d.me/toby3d/middleware" "source.toby3d.me/toby3d/middleware"
"source.toby3d.me/website/indieauth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/token" "source.toby3d.me/toby3d/auth/internal/token"
) )
type ( type (

View File

@ -9,16 +9,16 @@ import (
"github.com/goccy/go-json" "github.com/goccy/go-json"
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/profile" "source.toby3d.me/toby3d/auth/internal/profile"
profilerepo "source.toby3d.me/website/indieauth/internal/profile/repository/memory" profilerepo "source.toby3d.me/toby3d/auth/internal/profile/repository/memory"
"source.toby3d.me/website/indieauth/internal/session" "source.toby3d.me/toby3d/auth/internal/session"
sessionrepo "source.toby3d.me/website/indieauth/internal/session/repository/memory" sessionrepo "source.toby3d.me/toby3d/auth/internal/session/repository/memory"
"source.toby3d.me/website/indieauth/internal/testing/httptest" "source.toby3d.me/toby3d/auth/internal/testing/httptest"
"source.toby3d.me/website/indieauth/internal/token" "source.toby3d.me/toby3d/auth/internal/token"
tokenrepo "source.toby3d.me/website/indieauth/internal/token/repository/memory" tokenrepo "source.toby3d.me/toby3d/auth/internal/token/repository/memory"
tokenucase "source.toby3d.me/website/indieauth/internal/token/usecase" tokenucase "source.toby3d.me/toby3d/auth/internal/token/usecase"
delivery "source.toby3d.me/website/indieauth/internal/user/delivery/http" delivery "source.toby3d.me/toby3d/auth/internal/user/delivery/http"
) )
type Dependencies struct { type Dependencies struct {

View File

@ -3,7 +3,7 @@ package user
import ( import (
"context" "context"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
type Repository interface { type Repository interface {

View File

@ -6,9 +6,9 @@ import (
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/user" "source.toby3d.me/toby3d/auth/internal/user"
"source.toby3d.me/website/indieauth/internal/util" "source.toby3d.me/toby3d/auth/internal/util"
) )
type httpUserRepository struct { type httpUserRepository struct {

View File

@ -10,10 +10,10 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
"source.toby3d.me/website/indieauth/internal/common" "source.toby3d.me/toby3d/auth/internal/common"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/testing/httptest" "source.toby3d.me/toby3d/auth/internal/testing/httptest"
repository "source.toby3d.me/website/indieauth/internal/user/repository/http" repository "source.toby3d.me/toby3d/auth/internal/user/repository/http"
) )
const testBody string = ` const testBody string = `

View File

@ -5,8 +5,8 @@ import (
"path" "path"
"sync" "sync"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/user" "source.toby3d.me/toby3d/auth/internal/user"
) )
type memoryUserRepository struct { type memoryUserRepository struct {

View File

@ -7,8 +7,8 @@ import (
"sync" "sync"
"testing" "testing"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
repository "source.toby3d.me/website/indieauth/internal/user/repository/memory" repository "source.toby3d.me/toby3d/auth/internal/user/repository/memory"
) )
func TestGet(t *testing.T) { func TestGet(t *testing.T) {

View File

@ -3,7 +3,7 @@ package user
import ( import (
"context" "context"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
type UseCase interface { type UseCase interface {

View File

@ -4,8 +4,8 @@ import (
"context" "context"
"fmt" "fmt"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/website/indieauth/internal/user" "source.toby3d.me/toby3d/auth/internal/user"
) )
type userUseCase struct { type userUseCase struct {

View File

@ -7,9 +7,9 @@ import (
"sync" "sync"
"testing" "testing"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
repository "source.toby3d.me/website/indieauth/internal/user/repository/memory" repository "source.toby3d.me/toby3d/auth/internal/user/repository/memory"
ucase "source.toby3d.me/website/indieauth/internal/user/usecase" ucase "source.toby3d.me/toby3d/auth/internal/user/usecase"
) )
func TestFetch(t *testing.T) { func TestFetch(t *testing.T) {

View File

@ -11,7 +11,7 @@ import (
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
"willnorris.com/go/microformats" "willnorris.com/go/microformats"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
var ErrEndpointNotExist = domain.NewError( var ErrEndpointNotExist = domain.NewError(

View File

@ -5,7 +5,7 @@ import (
http "github.com/valyala/fasthttp" http "github.com/valyala/fasthttp"
"source.toby3d.me/website/indieauth/internal/util" "source.toby3d.me/toby3d/auth/internal/util"
) )
const testBody = `<html> const testBody = `<html>

54
main.go
View File

@ -30,33 +30,33 @@ import (
"golang.org/x/text/message" "golang.org/x/text/message"
_ "modernc.org/sqlite" _ "modernc.org/sqlite"
"source.toby3d.me/website/indieauth/internal/auth" "source.toby3d.me/toby3d/auth/internal/auth"
authhttpdelivery "source.toby3d.me/website/indieauth/internal/auth/delivery/http" authhttpdelivery "source.toby3d.me/toby3d/auth/internal/auth/delivery/http"
authucase "source.toby3d.me/website/indieauth/internal/auth/usecase" authucase "source.toby3d.me/toby3d/auth/internal/auth/usecase"
"source.toby3d.me/website/indieauth/internal/client" "source.toby3d.me/toby3d/auth/internal/client"
clienthttpdelivery "source.toby3d.me/website/indieauth/internal/client/delivery/http" clienthttpdelivery "source.toby3d.me/toby3d/auth/internal/client/delivery/http"
clienthttprepo "source.toby3d.me/website/indieauth/internal/client/repository/http" clienthttprepo "source.toby3d.me/toby3d/auth/internal/client/repository/http"
clientucase "source.toby3d.me/website/indieauth/internal/client/usecase" clientucase "source.toby3d.me/toby3d/auth/internal/client/usecase"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
healthhttpdelivery "source.toby3d.me/website/indieauth/internal/health/delivery/http" healthhttpdelivery "source.toby3d.me/toby3d/auth/internal/health/delivery/http"
metadatahttpdelivery "source.toby3d.me/website/indieauth/internal/metadata/delivery/http" metadatahttpdelivery "source.toby3d.me/toby3d/auth/internal/metadata/delivery/http"
"source.toby3d.me/website/indieauth/internal/profile" "source.toby3d.me/toby3d/auth/internal/profile"
profilehttprepo "source.toby3d.me/website/indieauth/internal/profile/repository/http" profilehttprepo "source.toby3d.me/toby3d/auth/internal/profile/repository/http"
"source.toby3d.me/website/indieauth/internal/session" "source.toby3d.me/toby3d/auth/internal/session"
sessionmemoryrepo "source.toby3d.me/website/indieauth/internal/session/repository/memory" sessionmemoryrepo "source.toby3d.me/toby3d/auth/internal/session/repository/memory"
sessionsqlite3repo "source.toby3d.me/website/indieauth/internal/session/repository/sqlite3" sessionsqlite3repo "source.toby3d.me/toby3d/auth/internal/session/repository/sqlite3"
sessionucase "source.toby3d.me/website/indieauth/internal/session/usecase" sessionucase "source.toby3d.me/toby3d/auth/internal/session/usecase"
"source.toby3d.me/website/indieauth/internal/ticket" "source.toby3d.me/toby3d/auth/internal/ticket"
tickethttpdelivery "source.toby3d.me/website/indieauth/internal/ticket/delivery/http" tickethttpdelivery "source.toby3d.me/toby3d/auth/internal/ticket/delivery/http"
ticketmemoryrepo "source.toby3d.me/website/indieauth/internal/ticket/repository/memory" ticketmemoryrepo "source.toby3d.me/toby3d/auth/internal/ticket/repository/memory"
ticketsqlite3repo "source.toby3d.me/website/indieauth/internal/ticket/repository/sqlite3" ticketsqlite3repo "source.toby3d.me/toby3d/auth/internal/ticket/repository/sqlite3"
ticketucase "source.toby3d.me/website/indieauth/internal/ticket/usecase" ticketucase "source.toby3d.me/toby3d/auth/internal/ticket/usecase"
"source.toby3d.me/website/indieauth/internal/token" "source.toby3d.me/toby3d/auth/internal/token"
tokenhttpdelivery "source.toby3d.me/website/indieauth/internal/token/delivery/http" tokenhttpdelivery "source.toby3d.me/toby3d/auth/internal/token/delivery/http"
tokenmemoryrepo "source.toby3d.me/website/indieauth/internal/token/repository/memory" tokenmemoryrepo "source.toby3d.me/toby3d/auth/internal/token/repository/memory"
tokensqlite3repo "source.toby3d.me/website/indieauth/internal/token/repository/sqlite3" tokensqlite3repo "source.toby3d.me/toby3d/auth/internal/token/repository/sqlite3"
tokenucase "source.toby3d.me/website/indieauth/internal/token/usecase" tokenucase "source.toby3d.me/toby3d/auth/internal/token/usecase"
userhttpdelivery "source.toby3d.me/website/indieauth/internal/user/delivery/http" userhttpdelivery "source.toby3d.me/toby3d/auth/internal/user/delivery/http"
) )
type ( type (

View File

@ -1,4 +1,4 @@
{% import "source.toby3d.me/website/indieauth/internal/domain" %} {% import "source.toby3d.me/toby3d/auth/internal/domain" %}
{% code type AuthorizePage struct { {% code type AuthorizePage struct {
BaseOf BaseOf

View File

@ -5,7 +5,7 @@
package web package web
//line web/authorize.qtpl:1 //line web/authorize.qtpl:1
import "source.toby3d.me/website/indieauth/internal/domain" import "source.toby3d.me/toby3d/auth/internal/domain"
//line web/authorize.qtpl:3 //line web/authorize.qtpl:3
import ( import (

View File

@ -2,7 +2,7 @@
"golang.org/x/text/language" "golang.org/x/text/language"
"golang.org/x/text/message" "golang.org/x/text/message"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) %} ) %}
{% interface Page { {% interface Page {

View File

@ -9,7 +9,7 @@ import (
"golang.org/x/text/language" "golang.org/x/text/language"
"golang.org/x/text/message" "golang.org/x/text/message"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
//line web/baseof.qtpl:8 //line web/baseof.qtpl:8

View File

@ -1,4 +1,4 @@
{% import "source.toby3d.me/website/indieauth/internal/domain" %} {% import "source.toby3d.me/toby3d/auth/internal/domain" %}
{% code type CallbackPage struct { {% code type CallbackPage struct {
BaseOf BaseOf

View File

@ -5,7 +5,7 @@
package web package web
//line web/callback.qtpl:1 //line web/callback.qtpl:1
import "source.toby3d.me/website/indieauth/internal/domain" import "source.toby3d.me/toby3d/auth/internal/domain"
//line web/callback.qtpl:3 //line web/callback.qtpl:3
import ( import (

View File

@ -1,7 +1,7 @@
{% import ( {% import (
"errors" "errors"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) %} ) %}
{% code type ErrorPage struct { {% code type ErrorPage struct {

View File

@ -8,7 +8,7 @@ package web
import ( import (
"errors" "errors"
"source.toby3d.me/website/indieauth/internal/domain" "source.toby3d.me/toby3d/auth/internal/domain"
) )
//line web/error.qtpl:7 //line web/error.qtpl:7

View File

@ -1,4 +1,4 @@
{% import "source.toby3d.me/website/indieauth/internal/domain" %} {% import "source.toby3d.me/toby3d/auth/internal/domain" %}
{% code type HomePage struct { {% code type HomePage struct {
BaseOf BaseOf

View File

@ -5,7 +5,7 @@
package web package web
//line web/home.qtpl:1 //line web/home.qtpl:1
import "source.toby3d.me/website/indieauth/internal/domain" import "source.toby3d.me/toby3d/auth/internal/domain"
//line web/home.qtpl:3 //line web/home.qtpl:3
import ( import (