refactor for git.ptzo.gdn (#162)

Reviewed-on: https://git.ptzo.gdn/feditools/relay/pulls/162
Co-authored-by: Tyr Mactire <tyr@pettingzoo.co>
Co-committed-by: Tyr Mactire <tyr@pettingzoo.co>
This commit is contained in:
Tyr Mactire 2022-11-26 23:53:11 +00:00 committed by PettingZoo Gitea
parent 1ad1b55cb3
commit 1608ce9df1
No known key found for this signature in database
GPG Key ID: 39788A4390A1372F
173 changed files with 391 additions and 388 deletions

View File

@ -18,14 +18,21 @@ builds:
goarch: goarch:
- amd64 - amd64
- arm64 - arm64
- riscv64
goos: goos:
- linux - linux
- darwin - darwin
goamd64:
- v1
- v2
- v3
mod_timestamp: "{{ .CommitTimestamp }}" mod_timestamp: "{{ .CommitTimestamp }}"
universal_binaries:
- replace: true
archives: archives:
- replacements: - format: tar.gz
format_overrides:
- goos: windows
format: zip
replacements:
darwin: Darwin darwin: Darwin
linux: Linux linux: Linux
windows: Windows windows: Windows
@ -80,10 +87,10 @@ docker_manifests:
image_templates: image_templates:
- feditools/{{ .ProjectName }}:latest-amd64 - feditools/{{ .ProjectName }}:latest-amd64
- feditools/{{ .ProjectName }}:latest-arm64v8 - feditools/{{ .ProjectName }}:latest-arm64v8
docker_signs: #docker_signs:
- artifacts: all # - artifacts: all
args: ["sign", "--key=env://COSIGN_PRIVATE_KEY", "${artifact}"] # args: ["sign", "--key=env://COSIGN_PRIVATE_KEY", "${artifact}"]
stdin: '{{ .Env.COSIGN_PASSWORD }}' # stdin: '{{ .Env.COSIGN_PASSWORD }}'
snapshot: snapshot:
name_template: "{{ incpatch .Version }}-dev" name_template: "{{ incpatch .Version }}-dev"
changelog: changelog:
@ -92,3 +99,6 @@ changelog:
exclude: exclude:
- '^docs:' - '^docs:'
- '^deployments:' - '^deployments:'
gitea_urls:
api: https://git.ptzo.gdn/api/v1/
download: https://git.ptzo.gdn

41
Jenkinsfile vendored
View File

@ -1,35 +1,18 @@
pipeline { pipeline {
environment { environment {
BUILD_IMAGE = 'gobuild:1.18' BUILD_IMAGE = 'gobuild:1.19'
BUILD_ARGS = '-e GOCACHE=/gocache -e HOME=${WORKSPACE} -v /var/lib/jenkins/gocache:/gocache -v /var/lib/jenkins/go/pkg:/go/pkg' BUILD_ARGS = '-e HOME=${WORKSPACE} -v /var/lib/jenkins/go/pkg:/go/pkg'
PATH = '/go/bin:~/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin' PATH = '/go/bin:~/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin'
composeFile = "deployments/docker-compose-integration.yaml" composeFile = "deployments/docker-compose-integration.yaml"
networkName = "network-${env.BUILD_TAG}" networkName = "network-${env.BUILD_TAG}"
registryCredential = 'docker-io-feditools' registryCredential = 'docker-io-feditools'
scannerHome = tool 'SonarScanner 4.0'
} }
agent any agent any
stages { stages {
stage('Build Static Assets') {
agent {
docker {
image "${BUILD_IMAGE}"
args "${BUILD_ARGS}"
reuseNode true
}
}
steps {
script {
sh """#!/bin/bash
make clean
make stage-static
"""
}
}
}
stage('Start External Test Requirements'){ stage('Start External Test Requirements'){
steps{ steps{
script{ script{
@ -60,21 +43,23 @@ pipeline {
steps { steps {
script { script {
withCredentials([ withCredentials([
string(credentialsId: 'codecov-feditools-relay', variable: 'CODECOV_TOKEN'),
file(credentialsId: 'tls-localhost-crt', variable: 'MB_TLS_CERT'), file(credentialsId: 'tls-localhost-crt', variable: 'MB_TLS_CERT'),
file(credentialsId: 'tls-localhost-key', variable: 'MB_TLS_KEY') file(credentialsId: 'tls-localhost-key', variable: 'MB_TLS_KEY')
]) { ]) {
sh """#!/bin/bash sh "go test --tags=postgres -race -json -coverprofile=coverage.out -covermode=atomic ./... > test-report.out"
go test --tags=postgres -race -coverprofile=coverage.txt -covermode=atomic ./...
RESULT=\$?
bash <(curl -s https://codecov.io/bash)
exit \$RESULT
"""
} }
} }
} }
} }
stage('SonarQube analysis') {
steps {
withSonarQubeEnv('PupHaus') {
sh "${scannerHome}/bin/sonar-scanner"
}
}
}
stage('Build Snapshot') { stage('Build Snapshot') {
agent { agent {
docker { docker {
@ -85,7 +70,7 @@ pipeline {
} }
steps { steps {
script { script {
sh '/go/bin/goreleaser build --snapshot' sh '/go/bin/goreleaser build --rm-dist --snapshot'
} }
} }
} }

View File

@ -1,4 +1,5 @@
PROJECT_NAME=relay PROJECT_NAME=relay
GITHUB_TOKEN=
.DEFAULT_GOAL := test .DEFAULT_GOAL := test
@ -6,11 +7,6 @@ build-snapshot: export GPG_FINGERPRINT=922248E5D4629F2284964DB103B64DFCECF2BE40
build-snapshot: clean build-snapshot: clean
goreleaser release --snapshot goreleaser release --snapshot
bun-new-migration: export BUN_TIMESTAMP=$(shell date +%Y%m%d%H%M%S | head -c 14)
bun-new-migration:
touch internal/db/bun/migrations/${BUN_TIMESTAMP}_new.go
cat internal/db/bun/migrations/migration.go.tmpl > internal/db/bun/migrations/${BUN_TIMESTAMP}_new.go
clean: clean:
@echo cleaning up workspace @echo cleaning up workspace
@rm -Rvf .cache coverage.txt dist relay @rm -Rvf .cache coverage.txt dist relay
@ -34,6 +30,11 @@ fmt:
i18n-extract: i18n-extract:
goi18n extract -format yaml -outdir web/locales -crowdin goi18n extract -format yaml -outdir web/locales -crowdin
new-migration: export BUN_TIMESTAMP=$(shell date +%Y%m%d%H%M%S | head -c 14)
new-migration:
touch internal/db/bun/migrations/${BUN_TIMESTAMP}_new.go
cat internal/db/bun/migrations/migration.go.tmpl > internal/db/bun/migrations/${BUN_TIMESTAMP}_new.go
release: clean release: clean
goreleaser release goreleaser release
@ -52,4 +53,4 @@ tidy:
vendor: tidy vendor: tidy
go mod vendor go mod vendor
.PHONY: build-snapshot bun-new-migration clean docker-pull docker-restart docker-start docker-stop fmt i18n-extract release stage-static test test-ext test-bench-ext tidy vendor .PHONY: build-snapshot clean docker-pull docker-restart docker-start docker-stop fmt i18n-extract new-migration release stage-static test test-ext test-bench-ext tidy vendor

View File

@ -1,9 +1,9 @@
package main package main
import ( import (
"github.com/feditools/relay/cmd/relay/action/account" "git.ptzo.gdn/feditools/relay/cmd/relay/action/account"
"github.com/feditools/relay/cmd/relay/flag" "git.ptzo.gdn/feditools/relay/cmd/relay/flag"
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,6 +1,6 @@
package account package account
import "github.com/feditools/relay/internal/log" import "git.ptzo.gdn/feditools/relay/internal/log"
type empty struct{} type empty struct{}

View File

@ -3,9 +3,9 @@ package account
import ( import (
"context" "context"
"github.com/feditools/go-lib" "github.com/feditools/go-lib"
"github.com/feditools/relay/cmd/relay/action" "git.ptzo.gdn/feditools/relay/cmd/relay/action"
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/feditools/relay/internal/db/bun" "git.ptzo.gdn/feditools/relay/internal/db/bun"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View File

@ -1,7 +1,7 @@
package database package database
import ( import (
"github.com/feditools/relay/internal/log" "git.ptzo.gdn/feditools/relay/internal/log"
) )
type empty struct{} type empty struct{}

View File

@ -2,8 +2,8 @@ package database
import ( import (
"context" "context"
"github.com/feditools/relay/cmd/relay/action" "git.ptzo.gdn/feditools/relay/cmd/relay/action"
"github.com/feditools/relay/internal/db/bun" "git.ptzo.gdn/feditools/relay/internal/db/bun"
) )
// Migrate runs database migrations // Migrate runs database migrations

View File

@ -3,17 +3,17 @@ package server
import ( import (
"context" "context"
"github.com/feditools/go-lib" "github.com/feditools/go-lib"
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/fedi" "git.ptzo.gdn/feditools/relay/internal/fedi"
"github.com/feditools/relay/internal/http" "git.ptzo.gdn/feditools/relay/internal/http"
"github.com/feditools/relay/internal/http/activitypub" "git.ptzo.gdn/feditools/relay/internal/http/activitypub"
"github.com/feditools/relay/internal/http/robots" "git.ptzo.gdn/feditools/relay/internal/http/robots"
"github.com/feditools/relay/internal/http/webapp" "git.ptzo.gdn/feditools/relay/internal/http/webapp"
liblanguage "github.com/feditools/relay/internal/language" liblanguage "git.ptzo.gdn/feditools/relay/internal/language"
"github.com/feditools/relay/internal/logic" "git.ptzo.gdn/feditools/relay/internal/logic"
"github.com/feditools/relay/internal/runner" "git.ptzo.gdn/feditools/relay/internal/runner"
"github.com/feditools/relay/internal/token" "git.ptzo.gdn/feditools/relay/internal/token"
"github.com/go-redis/redis/v8" "github.com/go-redis/redis/v8"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View File

@ -1,7 +1,7 @@
package server package server
import ( import (
"github.com/feditools/relay/internal/log" "git.ptzo.gdn/feditools/relay/internal/log"
) )
type empty struct{} type empty struct{}

View File

@ -1,9 +1,9 @@
package server package server
import ( import (
"github.com/feditools/relay/internal/logic" "git.ptzo.gdn/feditools/relay/internal/logic"
"github.com/feditools/relay/internal/notification/manager" "git.ptzo.gdn/feditools/relay/internal/notification/manager"
"github.com/feditools/relay/internal/notification/telegram" "git.ptzo.gdn/feditools/relay/internal/notification/telegram"
) )
func newNotifier( func newNotifier(

View File

@ -4,20 +4,20 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"github.com/feditools/relay/cmd/relay/action" "git.ptzo.gdn/feditools/relay/cmd/relay/action"
"github.com/feditools/relay/internal/clock" "git.ptzo.gdn/feditools/relay/internal/clock"
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/feditools/relay/internal/db/bun" "git.ptzo.gdn/feditools/relay/internal/db/bun"
"github.com/feditools/relay/internal/db/cachemem" "git.ptzo.gdn/feditools/relay/internal/db/cachemem"
"github.com/feditools/relay/internal/fedi" "git.ptzo.gdn/feditools/relay/internal/fedi"
"github.com/feditools/relay/internal/http" "git.ptzo.gdn/feditools/relay/internal/http"
"github.com/feditools/relay/internal/kv/redis" "git.ptzo.gdn/feditools/relay/internal/kv/redis"
"github.com/feditools/relay/internal/language" "git.ptzo.gdn/feditools/relay/internal/language"
"github.com/feditools/relay/internal/logic/logic1" "git.ptzo.gdn/feditools/relay/internal/logic/logic1"
"github.com/feditools/relay/internal/metrics" "git.ptzo.gdn/feditools/relay/internal/metrics"
"github.com/feditools/relay/internal/runner/faktory" "git.ptzo.gdn/feditools/relay/internal/runner/faktory"
"github.com/feditools/relay/internal/scheduler" "git.ptzo.gdn/feditools/relay/internal/scheduler"
"github.com/feditools/relay/internal/token" "git.ptzo.gdn/feditools/relay/internal/token"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/uptrace/uptrace-go/uptrace" "github.com/uptrace/uptrace-go/uptrace"
"os" "os"

View File

@ -1,9 +1,9 @@
package main package main
import ( import (
"github.com/feditools/relay/cmd/relay/action/database" "git.ptzo.gdn/feditools/relay/cmd/relay/action/database"
"github.com/feditools/relay/cmd/relay/flag" "git.ptzo.gdn/feditools/relay/cmd/relay/flag"
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package flag package flag
import ( import (
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package flag package flag
import ( import (
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package flag package flag
import ( import (
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package flag package flag
import ( import (
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,7 +1,7 @@
package flag package flag
import ( import (
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@ -1,6 +1,6 @@
package flag package flag
import "github.com/feditools/relay/internal/config" import "git.ptzo.gdn/feditools/relay/internal/config"
var usage = config.KeyNames{ var usage = config.KeyNames{
ConfigPath: "Path to a file containing feditools configuration. Values set in this file will be overwritten by values set as env vars or arguments", ConfigPath: "Path to a file containing feditools configuration. Values set in this file will be overwritten by values set as env vars or arguments",

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/feditools/relay/internal/log" "git.ptzo.gdn/feditools/relay/internal/log"
) )
type empty struct{} type empty struct{}

View File

@ -3,10 +3,10 @@ package main
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/feditools/relay/cmd/relay/action" "git.ptzo.gdn/feditools/relay/cmd/relay/action"
"github.com/feditools/relay/cmd/relay/flag" "git.ptzo.gdn/feditools/relay/cmd/relay/flag"
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/feditools/relay/internal/log" "git.ptzo.gdn/feditools/relay/internal/log"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View File

@ -1,9 +1,9 @@
package main package main
import ( import (
"github.com/feditools/relay/cmd/relay/action/server" "git.ptzo.gdn/feditools/relay/cmd/relay/action/server"
"github.com/feditools/relay/cmd/relay/flag" "git.ptzo.gdn/feditools/relay/cmd/relay/flag"
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

4
go.mod
View File

@ -1,6 +1,6 @@
module github.com/feditools/relay module git.ptzo.gdn/feditools/relay
go 1.18 go 1.19
require ( require (
github.com/allegro/bigcache/v3 v3.0.2 github.com/allegro/bigcache/v3 v3.0.2

View File

@ -68,7 +68,7 @@ var Defaults = Values{
// application // application
ActorKeySize: 2048, ActorKeySize: 2048,
ApplicationName: "feditools-relay", ApplicationName: "feditools-relay",
ApplicationWebsite: "https://github.com/feditools/relay", ApplicationWebsite: "https://git.ptzo.gdn/feditools/relay",
CachedActivityLimit: 1024, CachedActivityLimit: 1024,
CachedActorLimit: 1024, CachedActorLimit: 1024,
CachedDigestLimit: 1024, CachedDigestLimit: 1024,

View File

@ -2,7 +2,7 @@ package db
import ( import (
"context" "context"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"time" "time"
) )

View File

@ -2,7 +2,7 @@ package db
import ( import (
"context" "context"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
) )
type Block interface { type Block interface {

View File

@ -4,8 +4,8 @@ import (
"context" "context"
"database/sql" "database/sql"
libdatabase "github.com/feditools/go-lib/database" libdatabase "github.com/feditools/go-lib/database"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/uptrace/bun" "github.com/uptrace/bun"
"time" "time"
) )

View File

@ -3,8 +3,8 @@ package bun
import ( import (
"context" "context"
libdatabase "github.com/feditools/go-lib/database" libdatabase "github.com/feditools/go-lib/database"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/uptrace/bun" "github.com/uptrace/bun"
"time" "time"
) )

View File

@ -8,8 +8,8 @@ import (
"encoding/pem" "encoding/pem"
"errors" "errors"
"fmt" "fmt"
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/jackc/pgx/v4" "github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/stdlib" "github.com/jackc/pgx/v4/stdlib"
"github.com/spf13/viper" "github.com/spf13/viper"

View File

@ -4,8 +4,8 @@ package bun
import ( import (
"context" "context"
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/spf13/viper" "github.com/spf13/viper"
"testing" "testing"
) )

View File

@ -5,8 +5,8 @@ import (
"crypto/tls" "crypto/tls"
"database/sql" "database/sql"
"fmt" "fmt"
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/jackc/pgconn" "github.com/jackc/pgconn"
"github.com/spf13/viper" "github.com/spf13/viper"
"testing" "testing"

View File

@ -2,8 +2,8 @@ package bun
import ( import (
"context" "context"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/db/bun/migrations" "git.ptzo.gdn/feditools/relay/internal/db/bun/migrations"
"github.com/uptrace/bun" "github.com/uptrace/bun"
"github.com/uptrace/bun/migrate" "github.com/uptrace/bun/migrate"
) )

View File

@ -2,8 +2,8 @@ package bun
import ( import (
"context" "context"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/uptrace/bun" "github.com/uptrace/bun"
"time" "time"
) )

View File

@ -3,7 +3,7 @@ package bun
import ( import (
"context" "context"
"database/sql" "database/sql"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/uptrace/bun" "github.com/uptrace/bun"
) )

View File

@ -1,7 +1,7 @@
package bun package bun
import ( import (
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/jackc/pgconn" "github.com/jackc/pgconn"
"modernc.org/sqlite" "modernc.org/sqlite"
sqlite3 "modernc.org/sqlite/lib" sqlite3 "modernc.org/sqlite/lib"

View File

@ -4,8 +4,8 @@ import (
"context" "context"
"fmt" "fmt"
libdatabase "github.com/feditools/go-lib/database" libdatabase "github.com/feditools/go-lib/database"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/uptrace/bun" "github.com/uptrace/bun"
"time" "time"
) )

View File

@ -3,8 +3,8 @@ package bun
import ( import (
"context" "context"
libdatabase "github.com/feditools/go-lib/database" libdatabase "github.com/feditools/go-lib/database"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/uptrace/bun" "github.com/uptrace/bun"
"time" "time"
) )

View File

@ -1,7 +1,7 @@
package bun package bun
import ( import (
"github.com/feditools/relay/internal/log" "git.ptzo.gdn/feditools/relay/internal/log"
) )
type empty struct{} type empty struct{}

View File

@ -2,7 +2,7 @@ package migrations
import ( import (
"context" "context"
models "github.com/feditools/relay/internal/db/bun/migrations/20220426162151_v0.1.0" models "git.ptzo.gdn/feditools/relay/internal/db/bun/migrations/20220426162151_v0.1.0"
"github.com/uptrace/bun" "github.com/uptrace/bun"
) )

View File

@ -3,7 +3,7 @@ package migrations
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/uptrace/bun" "github.com/uptrace/bun"
"github.com/uptrace/bun/dialect/sqltype" "github.com/uptrace/bun/dialect/sqltype"
) )

View File

@ -2,7 +2,7 @@ package migrations
import ( import (
"context" "context"
models "github.com/feditools/relay/internal/db/bun/migrations/20220806130729_v0.3.0" models "git.ptzo.gdn/feditools/relay/internal/db/bun/migrations/20220806130729_v0.3.0"
"github.com/uptrace/bun" "github.com/uptrace/bun"
) )

View File

@ -3,7 +3,7 @@ package migrations
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/uptrace/bun" "github.com/uptrace/bun"
"github.com/uptrace/bun/dialect/sqltype" "github.com/uptrace/bun/dialect/sqltype"
"strings" "strings"

View File

@ -3,7 +3,7 @@ package migrations
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/uptrace/bun" "github.com/uptrace/bun"
"github.com/uptrace/bun/dialect/sqltype" "github.com/uptrace/bun/dialect/sqltype"
"strings" "strings"

View File

@ -1,7 +1,7 @@
package migrations package migrations
import ( import (
"github.com/feditools/relay/internal/log" "git.ptzo.gdn/feditools/relay/internal/log"
) )
type empty struct{} type empty struct{}

View File

@ -7,8 +7,8 @@ import (
"encoding/gob" "encoding/gob"
"errors" "errors"
"github.com/allegro/bigcache/v3" "github.com/allegro/bigcache/v3"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"strconv" "strconv"
"strings" "strings"
"time" "time"

View File

@ -2,8 +2,8 @@ package cachemem
import ( import (
"context" "context"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
) )
func (c CacheMem) CountBlocks(ctx context.Context) (count int64, err db.Error) { func (c CacheMem) CountBlocks(ctx context.Context) (count int64, err db.Error) {

View File

@ -4,8 +4,8 @@ import (
"context" "context"
"encoding/gob" "encoding/gob"
"github.com/allegro/bigcache/v3" "github.com/allegro/bigcache/v3"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"go.opentelemetry.io/otel" "go.opentelemetry.io/otel"
semconv "go.opentelemetry.io/otel/semconv/v1.7.0" semconv "go.opentelemetry.io/otel/semconv/v1.7.0"
"go.opentelemetry.io/otel/trace" "go.opentelemetry.io/otel/trace"

View File

@ -2,8 +2,8 @@ package cachemem
import ( import (
"context" "context"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
) )
func (c CacheMem) CreateConfigTX(ctx context.Context, txID db.TxID, configs ...*models.Config) (err db.Error) { func (c CacheMem) CreateConfigTX(ctx context.Context, txID db.TxID, configs ...*models.Config) (err db.Error) {

View File

@ -2,8 +2,8 @@ package cachemem
import ( import (
"context" "context"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"time" "time"
) )

View File

@ -2,8 +2,8 @@ package cachemem
import ( import (
"context" "context"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
) )
func (c CacheMem) CountLogEntries(ctx context.Context) (count int64, err db.Error) { func (c CacheMem) CountLogEntries(ctx context.Context) (count int64, err db.Error) {

View File

@ -1,6 +1,6 @@
package cachemem package cachemem
import "github.com/feditools/relay/internal/log" import "git.ptzo.gdn/feditools/relay/internal/log"
type empty struct{} type empty struct{}

View File

@ -2,7 +2,7 @@ package db
import ( import (
"context" "context"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
) )
type Config interface { type Config interface {

View File

@ -2,7 +2,7 @@ package db
import ( import (
"context" "context"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"time" "time"
) )

View File

@ -2,7 +2,7 @@ package db
import ( import (
"context" "context"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
) )
type LogEntry interface { type LogEntry interface {

View File

@ -4,11 +4,11 @@ import (
"context" "context"
"github.com/feditools/go-lib/fedihelper" "github.com/feditools/go-lib/fedihelper"
"github.com/feditools/go-lib/fedihelper/mastodon" "github.com/feditools/go-lib/fedihelper/mastodon"
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/kv" "git.ptzo.gdn/feditools/relay/internal/kv"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/feditools/relay/internal/token" "git.ptzo.gdn/feditools/relay/internal/token"
"github.com/spf13/viper" "github.com/spf13/viper"
"net/url" "net/url"
) )

View File

@ -4,8 +4,8 @@ import (
"context" "context"
"errors" "errors"
"github.com/feditools/go-lib/fedihelper" "github.com/feditools/go-lib/fedihelper"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
) )
func (m *Module) CreateAccountHandler(ctx context.Context, accountI fedihelper.Account) (err error) { func (m *Module) CreateAccountHandler(ctx context.Context, accountI fedihelper.Account) (err error) {

View File

@ -2,10 +2,10 @@ package activitypub
import ( import (
"context" "context"
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
ihttp "github.com/feditools/relay/internal/http" ihttp "git.ptzo.gdn/feditools/relay/internal/http"
"github.com/feditools/relay/internal/logic" "git.ptzo.gdn/feditools/relay/internal/logic"
"github.com/feditools/relay/internal/runner" "git.ptzo.gdn/feditools/relay/internal/runner"
"github.com/spf13/viper" "github.com/spf13/viper"
) )

View File

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"github.com/feditools/go-lib/fedihelper" "github.com/feditools/go-lib/fedihelper"
libhttp "github.com/feditools/go-lib/http" libhttp "github.com/feditools/go-lib/http"
"github.com/feditools/relay/internal/path" "git.ptzo.gdn/feditools/relay/internal/path"
"net/http" "net/http"
) )

View File

@ -4,8 +4,8 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"github.com/feditools/go-lib/fedihelper" "github.com/feditools/go-lib/fedihelper"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
nethttp "net/http" nethttp "net/http"
"net/url" "net/url"
) )

View File

@ -1,7 +1,7 @@
package activitypub package activitypub
import ( import (
"github.com/feditools/relay/internal/log" "git.ptzo.gdn/feditools/relay/internal/log"
) )
type empty struct{} type empty struct{}

View File

@ -4,7 +4,7 @@ import (
"encoding/json" "encoding/json"
"github.com/feditools/go-lib" "github.com/feditools/go-lib"
libhttp "github.com/feditools/go-lib/http" libhttp "github.com/feditools/go-lib/http"
"github.com/feditools/relay/internal/path" "git.ptzo.gdn/feditools/relay/internal/path"
"net/http" "net/http"
) )

View File

@ -1,8 +1,8 @@
package activitypub package activitypub
import ( import (
"github.com/feditools/relay/internal/http" "git.ptzo.gdn/feditools/relay/internal/http"
"github.com/feditools/relay/internal/path" "git.ptzo.gdn/feditools/relay/internal/path"
) )
// Route attaches routes to the web server // Route attaches routes to the web server

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"github.com/feditools/go-lib/fedihelper" "github.com/feditools/go-lib/fedihelper"
libhttp "github.com/feditools/go-lib/http" libhttp "github.com/feditools/go-lib/http"
"github.com/feditools/relay/internal/path" "git.ptzo.gdn/feditools/relay/internal/path"
"net/http" "net/http"
) )

View File

@ -3,7 +3,7 @@ package http
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/spf13/viper" "github.com/spf13/viper"
"io" "io"
"net/http" "net/http"

View File

@ -1,7 +1,7 @@
package http package http
import ( import (
"github.com/feditools/relay/internal/log" "git.ptzo.gdn/feditools/relay/internal/log"
) )
type empty struct{} type empty struct{}

View File

@ -1,7 +1,7 @@
package robots package robots
import ( import (
"github.com/feditools/relay/internal/log" "git.ptzo.gdn/feditools/relay/internal/log"
) )
type empty struct{} type empty struct{}

View File

@ -3,11 +3,11 @@ package robots
import ( import (
"errors" "errors"
libhttp "github.com/feditools/go-lib/http" libhttp "github.com/feditools/go-lib/http"
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
ihttp "github.com/feditools/relay/internal/http" ihttp "git.ptzo.gdn/feditools/relay/internal/http"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/feditools/relay/internal/path" "git.ptzo.gdn/feditools/relay/internal/path"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"net/http" "net/http"
) )

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"fmt" "fmt"
libhttp "github.com/feditools/go-lib/http" libhttp "github.com/feditools/go-lib/http"
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/gorilla/mux" "github.com/gorilla/mux"
metrics "github.com/slok/go-http-metrics/metrics/prometheus" metrics "github.com/slok/go-http-metrics/metrics/prometheus"
"github.com/slok/go-http-metrics/middleware" "github.com/slok/go-http-metrics/middleware"

View File

@ -2,7 +2,7 @@ package template
import ( import (
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
) )
// AdminAccountName is the name of the admin block list template. // AdminAccountName is the name of the admin block list template.

View File

@ -2,7 +2,7 @@ package template
import ( import (
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
) )
// AdminBlockName is the name of the admin block list template. // AdminBlockName is the name of the admin block list template.

View File

@ -2,7 +2,7 @@ package template
import ( import (
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
) )
// AdminInstanceName is the name of the admin block list template. // AdminInstanceName is the name of the admin block list template.

View File

@ -2,7 +2,7 @@ package template
import ( import (
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
) )
// AdminInstanceViewName is the name of the admin block list template. // AdminInstanceViewName is the name of the admin block list template.

View File

@ -2,7 +2,7 @@ package template
import ( import (
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/logic" "git.ptzo.gdn/feditools/relay/internal/logic"
) )
// AdminJobsName is the name of the admin jobs template. // AdminJobsName is the name of the admin jobs template.

View File

@ -1,6 +1,6 @@
package template package template
import "github.com/feditools/relay/internal/models" import "git.ptzo.gdn/feditools/relay/internal/models"
// BlocksName is the name of the blocks template. // BlocksName is the name of the blocks template.
const BlocksName = "blocks" const BlocksName = "blocks"

View File

@ -2,8 +2,8 @@ package template
import ( import (
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/language" "git.ptzo.gdn/feditools/relay/internal/language"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
) )
// Common contains the variables used in nearly every template. // Common contains the variables used in nearly every template.

View File

@ -1,7 +1,7 @@
package template package template
import ( import (
"github.com/feditools/relay/internal/path" "git.ptzo.gdn/feditools/relay/internal/path"
"time" "time"
) )

View File

@ -1,6 +1,6 @@
package template package template
import "github.com/feditools/relay/internal/models" import "git.ptzo.gdn/feditools/relay/internal/models"
// HomeName is the name of the home template. // HomeName is the name of the home template.
const HomeName = "home" const HomeName = "home"

View File

@ -2,7 +2,7 @@ package template
import ( import (
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
) )
// InstanceName is the name of the my instance template. // InstanceName is the name of the my instance template.

View File

@ -2,8 +2,8 @@ package template
import ( import (
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/language" "git.ptzo.gdn/feditools/relay/internal/language"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
) )
type Login struct { type Login struct {

View File

@ -2,7 +2,7 @@ package template
import ( import (
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
) )
// LogsName is the name of the logs template. // LogsName is the name of the logs template.

View File

@ -1,6 +1,6 @@
package template package template
import "github.com/feditools/relay/internal/language" import "git.ptzo.gdn/feditools/relay/internal/language"
type Nav struct { type Nav struct {
Classes []string Classes []string

View File

@ -2,12 +2,12 @@ package template
import ( import (
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/config" "git.ptzo.gdn/feditools/relay/internal/config"
"github.com/feditools/relay/internal/language" "git.ptzo.gdn/feditools/relay/internal/language"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/feditools/relay/internal/path" "git.ptzo.gdn/feditools/relay/internal/path"
"github.com/feditools/relay/internal/token" "git.ptzo.gdn/feditools/relay/internal/token"
"github.com/feditools/relay/web" "git.ptzo.gdn/feditools/relay/web"
"github.com/spf13/viper" "github.com/spf13/viper"
"html/template" "html/template"
"io/ioutil" "io/ioutil"

View File

@ -3,9 +3,9 @@ package webapp
import ( import (
libhttp "github.com/feditools/go-lib/http" libhttp "github.com/feditools/go-lib/http"
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/http/template" "git.ptzo.gdn/feditools/relay/internal/http/template"
"github.com/feditools/relay/internal/language" "git.ptzo.gdn/feditools/relay/internal/language"
"github.com/feditools/relay/internal/path" "git.ptzo.gdn/feditools/relay/internal/path"
"net/http" "net/http"
) )

View File

@ -4,9 +4,9 @@ import (
"fmt" "fmt"
libhttp "github.com/feditools/go-lib/http" libhttp "github.com/feditools/go-lib/http"
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/http/template" "git.ptzo.gdn/feditools/relay/internal/http/template"
"github.com/feditools/relay/internal/language" "git.ptzo.gdn/feditools/relay/internal/language"
"github.com/feditools/relay/internal/path" "git.ptzo.gdn/feditools/relay/internal/path"
"net/http" "net/http"
) )

View File

@ -2,9 +2,9 @@ package webapp
import ( import (
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/language" "git.ptzo.gdn/feditools/relay/internal/language"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/feditools/relay/internal/util" "git.ptzo.gdn/feditools/relay/internal/util"
"net/http" "net/http"
) )

View File

@ -3,10 +3,10 @@ package webapp
import ( import (
"errors" "errors"
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/language" "git.ptzo.gdn/feditools/relay/internal/language"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/feditools/relay/internal/token" "git.ptzo.gdn/feditools/relay/internal/token"
"net/http" "net/http"
) )

View File

@ -4,11 +4,11 @@ import (
"errors" "errors"
"fmt" "fmt"
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/language" "git.ptzo.gdn/feditools/relay/internal/language"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/feditools/relay/internal/token" "git.ptzo.gdn/feditools/relay/internal/token"
"github.com/feditools/relay/internal/util" "git.ptzo.gdn/feditools/relay/internal/util"
"net/http" "net/http"
) )

View File

@ -6,9 +6,9 @@ import (
"fmt" "fmt"
libhttp "github.com/feditools/go-lib/http" libhttp "github.com/feditools/go-lib/http"
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/language" "git.ptzo.gdn/feditools/relay/internal/language"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/feditools/relay/internal/util" "git.ptzo.gdn/feditools/relay/internal/util"
"io" "io"
"io/ioutil" "io/ioutil"
"net/http" "net/http"

View File

@ -3,9 +3,9 @@ package webapp
import ( import (
"context" "context"
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/http/template" "git.ptzo.gdn/feditools/relay/internal/http/template"
"github.com/feditools/relay/internal/language" "git.ptzo.gdn/feditools/relay/internal/language"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"net/http" "net/http"
) )

View File

@ -1,7 +1,7 @@
package webapp package webapp
import ( import (
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"net/http" "net/http"
) )

View File

@ -3,9 +3,9 @@ package webapp
import ( import (
libhttp "github.com/feditools/go-lib/http" libhttp "github.com/feditools/go-lib/http"
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/http/template" "git.ptzo.gdn/feditools/relay/internal/http/template"
"github.com/feditools/relay/internal/language" "git.ptzo.gdn/feditools/relay/internal/language"
"github.com/feditools/relay/internal/path" "git.ptzo.gdn/feditools/relay/internal/path"
"net/http" "net/http"
) )

View File

@ -3,11 +3,11 @@ package webapp
import ( import (
"fmt" "fmt"
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/http/template" "git.ptzo.gdn/feditools/relay/internal/http/template"
"github.com/feditools/relay/internal/language" "git.ptzo.gdn/feditools/relay/internal/language"
"github.com/feditools/relay/internal/logic" "git.ptzo.gdn/feditools/relay/internal/logic"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/feditools/relay/internal/path" "git.ptzo.gdn/feditools/relay/internal/path"
"net/http" "net/http"
"strconv" "strconv"
"strings" "strings"

View File

@ -2,7 +2,7 @@ package webapp
import ( import (
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"net/http" "net/http"
) )

View File

@ -2,9 +2,9 @@ package webapp
import ( import (
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/http/template" "git.ptzo.gdn/feditools/relay/internal/http/template"
"github.com/feditools/relay/internal/language" "git.ptzo.gdn/feditools/relay/internal/language"
"github.com/feditools/relay/internal/scheduler" "git.ptzo.gdn/feditools/relay/internal/scheduler"
"net/http" "net/http"
) )

View File

@ -2,7 +2,7 @@ package webapp
import ( import (
libtemplate "github.com/feditools/go-lib/template" libtemplate "github.com/feditools/go-lib/template"
"github.com/feditools/relay/internal/language" "git.ptzo.gdn/feditools/relay/internal/language"
"net/http" "net/http"
) )

View File

@ -3,11 +3,11 @@ package webapp
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/feditools/relay/internal/http/template" "git.ptzo.gdn/feditools/relay/internal/http/template"
"github.com/feditools/relay/internal/language" "git.ptzo.gdn/feditools/relay/internal/language"
"github.com/feditools/relay/internal/logic" "git.ptzo.gdn/feditools/relay/internal/logic"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/feditools/relay/internal/path" "git.ptzo.gdn/feditools/relay/internal/path"
"net/http" "net/http"
"sort" "sort"
"strconv" "strconv"

View File

@ -1,8 +1,8 @@
package webapp package webapp
import ( import (
"github.com/feditools/relay/internal/http/template" "git.ptzo.gdn/feditools/relay/internal/http/template"
"github.com/feditools/relay/internal/language" "git.ptzo.gdn/feditools/relay/internal/language"
"net/http" "net/http"
) )

View File

@ -4,10 +4,10 @@ import (
"errors" "errors"
"fmt" "fmt"
"github.com/feditools/go-lib/fedihelper" "github.com/feditools/go-lib/fedihelper"
"github.com/feditools/relay/internal/db" "git.ptzo.gdn/feditools/relay/internal/db"
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/feditools/relay/internal/path" "git.ptzo.gdn/feditools/relay/internal/path"
"github.com/feditools/relay/internal/token" "git.ptzo.gdn/feditools/relay/internal/token"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/gorilla/sessions" "github.com/gorilla/sessions"
"net/http" "net/http"

View File

@ -2,8 +2,8 @@ package webapp
import ( import (
"fmt" "fmt"
"github.com/feditools/relay/internal/http/template" "git.ptzo.gdn/feditools/relay/internal/http/template"
"github.com/feditools/relay/internal/path" "git.ptzo.gdn/feditools/relay/internal/path"
"net/http" "net/http"
) )

View File

@ -1,7 +1,7 @@
package webapp package webapp
import ( import (
"github.com/feditools/relay/internal/models" "git.ptzo.gdn/feditools/relay/internal/models"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"net/http" "net/http"
) )

Some files were not shown because too many files have changed in this diff Show More