Browse Source

๐Ÿšš Renamed module due project migration

develop
Maxim Lebedev 4 months ago
parent
commit
3b0ebb3690
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
  1. 2
      go.mod
  2. 12
      internal/auth/delivery/http/auth_http.go
  3. 26
      internal/auth/delivery/http/auth_http_test.go
  4. 2
      internal/auth/usecase.go
  5. 10
      internal/auth/usecase/auth_ucase.go
  6. 8
      internal/client/delivery/http/client_http.go
  7. 20
      internal/client/delivery/http/client_http_test.go
  8. 2
      internal/client/repository.go
  9. 6
      internal/client/repository/http/http_client.go
  10. 8
      internal/client/repository/http/http_client_test.go
  11. 4
      internal/client/repository/memory/memory_client.go
  12. 4
      internal/client/repository/memory/memory_client_test.go
  13. 2
      internal/client/usecase.go
  14. 4
      internal/client/usecase/client_ucase.go
  15. 6
      internal/client/usecase/client_ucase_test.go
  16. 2
      internal/domain/action_test.go
  17. 2
      internal/domain/client_id_test.go
  18. 2
      internal/domain/client_test.go
  19. 4
      internal/domain/code_challenge_method_test.go
  20. 2
      internal/domain/config_test.go
  21. 2
      internal/domain/email_test.go
  22. 2
      internal/domain/error_test.go
  23. 2
      internal/domain/grant_type_test.go
  24. 2
      internal/domain/me_test.go
  25. 2
      internal/domain/response_type_test.go
  26. 2
      internal/domain/scope_test.go
  27. 2
      internal/domain/session.go
  28. 2
      internal/domain/token.go
  29. 2
      internal/domain/token_test.go
  30. 2
      internal/domain/url_test.go
  31. 2
      internal/health/delivery/http/health_http.go
  32. 4
      internal/health/delivery/http/health_http_test.go
  33. 4
      internal/metadata/delivery/http/metadata_http.go
  34. 6
      internal/metadata/delivery/http/metadata_http_test.go
  35. 2
      internal/metadata/repository.go
  36. 6
      internal/metadata/repository/http/http_metadata.go
  37. 4
      internal/metadata/repository/memory/memory_metadata.go
  38. 2
      internal/profile/repository.go
  39. 6
      internal/profile/repository/http/http_profile.go
  40. 4
      internal/profile/repository/memory/memory_profile.go
  41. 2
      internal/profile/usecase.go
  42. 4
      internal/profile/usecase/profile_ucase.go
  43. 2
      internal/session/repository.go
  44. 4
      internal/session/repository/memory/memory_session.go
  45. 4
      internal/session/repository/sqlite3/sqlite3_session.go
  46. 6
      internal/session/repository/sqlite3/sqlite3_session_test.go
  47. 2
      internal/session/usecase.go
  48. 4
      internal/session/usecase/session_ucase.go
  49. 10
      internal/ticket/delivery/http/ticket_http.go
  50. 14
      internal/ticket/delivery/http/ticket_http_test.go
  51. 2
      internal/ticket/repository.go
  52. 4
      internal/ticket/repository/memory/memory_ticket.go
  53. 4
      internal/ticket/repository/memory/memory_ticket_test.go
  54. 4
      internal/ticket/repository/sqlite3/sqlite3_ticket.go
  55. 6
      internal/ticket/repository/sqlite3/sqlite3_ticket_test.go
  56. 2
      internal/ticket/usecase.go
  57. 8
      internal/ticket/usecase/ticket_ucase.go
  58. 8
      internal/ticket/usecase/ticket_ucase_test.go
  59. 8
      internal/token/delivery/http/token_http.go
  60. 28
      internal/token/delivery/http/token_http_test.go
  61. 2
      internal/token/repository.go
  62. 4
      internal/token/repository/memory/memory_token.go
  63. 6
      internal/token/repository/memory/memory_token_test.go
  64. 4
      internal/token/repository/sqlite3/sqlite3_token.go
  65. 6
      internal/token/repository/sqlite3/sqlite3_token_test.go
  66. 2
      internal/token/usecase.go
  67. 19
      internal/token/usecase/token_ucase.go
  68. 16
      internal/token/usecase/token_ucase_test.go
  69. 6
      internal/user/delivery/http/user_http.go
  70. 20
      internal/user/delivery/http/user_http_test.go
  71. 2
      internal/user/repository.go
  72. 6
      internal/user/repository/http/http_user.go
  73. 8
      internal/user/repository/http/http_user_test.go
  74. 4
      internal/user/repository/memory/memory_user.go
  75. 4
      internal/user/repository/memory/memory_user_test.go
  76. 2
      internal/user/usecase.go
  77. 4
      internal/user/usecase/user_ucase.go
  78. 6
      internal/user/usecase/user_ucase_test.go
  79. 2
      internal/util/http.go
  80. 2
      internal/util/http_test.go
  81. 54
      main.go
  82. 2
      web/authorize.qtpl
  83. 2
      web/authorize.qtpl.go
  84. 2
      web/baseof.qtpl
  85. 2
      web/baseof.qtpl.go
  86. 2
      web/callback.qtpl
  87. 2
      web/callback.qtpl.go
  88. 2
      web/error.qtpl
  89. 2
      web/error.qtpl.go
  90. 2
      web/home.qtpl
  91. 2
      web/home.qtpl.go

2
go.mod

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

12
internal/auth/delivery/http/auth_http.go

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

26
internal/auth/delivery/http/auth_http_test.go

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

2
internal/auth/usecase.go

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

10
internal/auth/usecase/auth_ucase.go

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

8
internal/client/delivery/http/client_http.go

@ -9,12 +9,12 @@ import (
"golang.org/x/text/language"
"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/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 (

20
internal/client/delivery/http/client_http_test.go

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

2
internal/client/repository.go

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

6
internal/client/repository/http/http_client.go

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

8
internal/client/repository/http/http_client_test.go

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

4
internal/client/repository/memory/memory_client.go

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

4
internal/client/repository/memory/memory_client_test.go

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

2
internal/client/usecase.go

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

4
internal/client/usecase/client_ucase.go

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

6
internal/client/usecase/client_ucase_test.go

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

2
internal/domain/action_test.go

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

2
internal/domain/client_id_test.go

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

2
internal/domain/client_test.go

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

4
internal/domain/code_challenge_method_test.go

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

2
internal/domain/config_test.go

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

2
internal/domain/email_test.go

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

2
internal/domain/error_test.go

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

2
internal/domain/grant_type_test.go

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

2
internal/domain/me_test.go

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

2
internal/domain/response_type_test.go

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

2
internal/domain/scope_test.go

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

2
internal/domain/session.go

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

2
internal/domain/token.go

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

2
internal/domain/token_test.go

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

2
internal/domain/url_test.go

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

2
internal/health/delivery/http/health_http.go

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

4
internal/health/delivery/http/health_http_test.go

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

4
internal/metadata/delivery/http/metadata_http.go

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

6
internal/metadata/delivery/http/metadata_http_test.go

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

2
internal/metadata/repository.go

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

6
internal/metadata/repository/http/http_metadata.go

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

4
internal/metadata/repository/memory/memory_metadata.go

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

2
internal/profile/repository.go

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

6
internal/profile/repository/http/http_profile.go

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

4
internal/profile/repository/memory/memory_profile.go

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

2
internal/profile/usecase.go

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

4
internal/profile/usecase/profile_ucase.go

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

2
internal/session/repository.go

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

4
internal/session/repository/memory/memory_session.go

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

4
internal/session/repository/sqlite3/sqlite3_session.go

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

6
internal/session/repository/sqlite3/sqlite3_session_test.go

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

2
internal/session/usecase.go

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

4
internal/session/usecase/session_ucase.go

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

10
internal/ticket/delivery/http/ticket_http.go

@ -14,11 +14,11 @@ import (
"source.toby3d.me/toby3d/form"
"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/random"
"source.toby3d.me/website/indieauth/internal/ticket"
"source.toby3d.me/website/indieauth/web"
"source.toby3d.me/toby3d/auth/internal/common"
"source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/toby3d/auth/internal/random"
"source.toby3d.me/toby3d/auth/internal/ticket"
"source.toby3d.me/toby3d/auth/web"
)
type (

14
internal/ticket/delivery/http/ticket_http_test.go

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

2
internal/ticket/repository.go

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

4
internal/ticket/repository/memory/memory_ticket.go

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

4
internal/ticket/repository/memory/memory_ticket_test.go

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

4
internal/ticket/repository/sqlite3/sqlite3_ticket.go

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

6
internal/ticket/repository/sqlite3/sqlite3_ticket_test.go

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

2
internal/ticket/usecase.go

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

8
internal/ticket/usecase/ticket_ucase.go

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

8
internal/ticket/usecase/ticket_ucase_test.go

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

8
internal/token/delivery/http/token_http.go

@ -11,10 +11,10 @@ import (
"source.toby3d.me/toby3d/form"
"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/ticket"
"source.toby3d.me/website/indieauth/internal/token"
"source.toby3d.me/toby3d/auth/internal/common"
"source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/toby3d/auth/internal/ticket"
"source.toby3d.me/toby3d/auth/internal/token"
)
type (

28
internal/token/delivery/http/token_http_test.go

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

2
internal/token/repository.go

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

4
internal/token/repository/memory/memory_token.go

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

6
internal/token/repository/memory/memory_token_test.go

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

4
internal/token/repository/sqlite3/sqlite3_token.go

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

6
internal/token/repository/sqlite3/sqlite3_token_test.go

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

2
internal/token/usecase.go

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

19
internal/token/usecase/token_ucase.go

@ -8,10 +8,10 @@ import (
"github.com/lestrrat-go/jwx/jwa"
"github.com/lestrrat-go/jwx/jwt"
"source.toby3d.me/website/indieauth/internal/domain"
"source.toby3d.me/website/indieauth/internal/profile"
"source.toby3d.me/website/indieauth/internal/session"
"source.toby3d.me/website/indieauth/internal/token"
"source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/toby3d/auth/internal/profile"
"source.toby3d.me/toby3d/auth/internal/session"
"source.toby3d.me/toby3d/auth/internal/token"
)
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) {
find, err := uc.tokens.Get(ctx, accessToken)
if err != nil && !errors.Is(err, token.ErrNotExist) {
return nil, nil, fmt.Errorf("cannot check token in store: %w", err)
}
if _, err := uc.tokens.Get(ctx, accessToken); err != nil {
if errors.Is(err, token.ErrNotExist) {
return nil, nil, token.ErrRevoke
}
if find != nil {
return nil, nil, token.ErrRevoke
return nil, nil, fmt.Errorf("cannot check token in store: %w", err)
}
tkn, err := jwt.ParseString(accessToken, jwt.WithVerify(jwa.SignatureAlgorithm(uc.config.JWT.Algorithm),

16
internal/token/usecase/token_ucase_test.go

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

6
internal/user/delivery/http/user_http.go

@ -9,9 +9,9 @@ import (
http "github.com/valyala/fasthttp"
"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/toby3d/auth/internal/common"
"source.toby3d.me/toby3d/auth/internal/domain"
"source.toby3d.me/toby3d/auth/internal/token"
)
type (

20
internal/user/delivery/http/user_http_test.go

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

2
internal/user/repository.go

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

6
internal/user/repository/http/http_user.go

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

8
internal/user/repository/http/http_user_test.go

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

4
internal/user/repository/memory/memory_user.go

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

4
internal/user/repository/memory/memory_user_test.go

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

2
internal/user/usecase.go

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

4
internal/user/usecase/user_ucase.go

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

6
internal/user/usecase/user_ucase_test.go

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

2
internal/util/http.go

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

2
internal/util/http_test.go

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

54
main.go

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

2
web/authorize.qtpl

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

2
web/authorize.qtpl.go

@ -5,7 +5,7 @@
package web
//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
import (

2
web/baseof.qtpl

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

2
web/baseof.qtpl.go

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

2
web/callback.qtpl

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

2
web/callback.qtpl.go

@ -5,7 +5,7 @@
package web
//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
import (

2
web/error.qtpl

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