Moved from gitlab.com to Gitea with giredore.
This commit is contained in:
parent
333fc1d12a
commit
e042c4414f
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,5 @@
|
|||||||
examples/fastpastebin.yaml
|
examples/fastpastebin.yaml
|
||||||
dist/
|
dist/
|
||||||
data/
|
data/
|
||||||
|
.idea
|
||||||
*DS_Store*
|
*DS_Store*
|
||||||
|
@ -31,13 +31,13 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/domains/database_not_available"
|
"go.dev.pztrn.name/fastpastebin/domains/database_not_available"
|
||||||
"gitlab.com/pztrn/fastpastebin/domains/indexpage"
|
"go.dev.pztrn.name/fastpastebin/domains/indexpage"
|
||||||
"gitlab.com/pztrn/fastpastebin/domains/pastes"
|
"go.dev.pztrn.name/fastpastebin/domains/pastes"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/captcha"
|
"go.dev.pztrn.name/fastpastebin/internal/captcha"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/context"
|
"go.dev.pztrn.name/fastpastebin/internal/context"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/database"
|
"go.dev.pztrn.name/fastpastebin/internal/database"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/templater"
|
"go.dev.pztrn.name/fastpastebin/internal/templater"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -29,7 +29,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/templater"
|
"go.dev.pztrn.name/fastpastebin/internal/templater"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
|
@ -26,7 +26,7 @@ package database_not_available
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/context"
|
"go.dev.pztrn.name/fastpastebin/internal/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -26,7 +26,7 @@ package indexpage
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/context"
|
"go.dev.pztrn.name/fastpastebin/internal/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -29,8 +29,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/captcha"
|
"go.dev.pztrn.name/fastpastebin/internal/captcha"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/templater"
|
"go.dev.pztrn.name/fastpastebin/internal/templater"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"github.com/alecthomas/chroma/lexers"
|
"github.com/alecthomas/chroma/lexers"
|
||||||
|
@ -29,7 +29,7 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/context"
|
"go.dev.pztrn.name/fastpastebin/internal/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -8,8 +8,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/structs"
|
"go.dev.pztrn.name/fastpastebin/internal/structs"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/templater"
|
"go.dev.pztrn.name/fastpastebin/internal/templater"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"github.com/alecthomas/chroma"
|
"github.com/alecthomas/chroma"
|
||||||
|
@ -9,9 +9,9 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/captcha"
|
"go.dev.pztrn.name/fastpastebin/internal/captcha"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/structs"
|
"go.dev.pztrn.name/fastpastebin/internal/structs"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/templater"
|
"go.dev.pztrn.name/fastpastebin/internal/templater"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"github.com/alecthomas/chroma/lexers"
|
"github.com/alecthomas/chroma/lexers"
|
||||||
|
@ -31,8 +31,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/pagination"
|
"go.dev.pztrn.name/fastpastebin/internal/pagination"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/templater"
|
"go.dev.pztrn.name/fastpastebin/internal/templater"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
|
@ -26,7 +26,7 @@ package captcha
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/context"
|
"go.dev.pztrn.name/fastpastebin/internal/context"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"github.com/dchest/captcha"
|
"github.com/dchest/captcha"
|
||||||
|
@ -31,8 +31,8 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/config"
|
"go.dev.pztrn.name/fastpastebin/internal/config"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/database/interface"
|
"go.dev.pztrn.name/fastpastebin/internal/database/interface"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
|
@ -2,7 +2,7 @@ package context
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/assets/static"
|
"go.dev.pztrn.name/fastpastebin/assets/static"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
|
@ -29,11 +29,11 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/database/dialects/flatfiles"
|
"go.dev.pztrn.name/fastpastebin/internal/database/dialects/flatfiles"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/database/dialects/interface"
|
"go.dev.pztrn.name/fastpastebin/internal/database/dialects/interface"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/database/dialects/mysql"
|
"go.dev.pztrn.name/fastpastebin/internal/database/dialects/mysql"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/database/dialects/postgresql"
|
"go.dev.pztrn.name/fastpastebin/internal/database/dialects/postgresql"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/structs"
|
"go.dev.pztrn.name/fastpastebin/internal/structs"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
_ "github.com/go-sql-driver/mysql"
|
_ "github.com/go-sql-driver/mysql"
|
||||||
|
@ -26,8 +26,8 @@ package flatfiles
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/context"
|
"go.dev.pztrn.name/fastpastebin/internal/context"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/database/dialects/interface"
|
"go.dev.pztrn.name/fastpastebin/internal/database/dialects/interface"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -37,7 +37,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/structs"
|
"go.dev.pztrn.name/fastpastebin/internal/structs"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FlatFiles struct {
|
type FlatFiles struct {
|
||||||
|
@ -29,7 +29,7 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/structs"
|
"go.dev.pztrn.name/fastpastebin/internal/structs"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Handler struct{}
|
type Handler struct{}
|
||||||
|
@ -29,7 +29,7 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/structs"
|
"go.dev.pztrn.name/fastpastebin/internal/structs"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Interface interface {
|
type Interface interface {
|
||||||
|
@ -26,8 +26,8 @@ package mysql
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/context"
|
"go.dev.pztrn.name/fastpastebin/internal/context"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/database/dialects/interface"
|
"go.dev.pztrn.name/fastpastebin/internal/database/dialects/interface"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -29,7 +29,7 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/structs"
|
"go.dev.pztrn.name/fastpastebin/internal/structs"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Handler struct{}
|
type Handler struct{}
|
||||||
|
@ -26,7 +26,7 @@ package migrations
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/context"
|
"go.dev.pztrn.name/fastpastebin/internal/context"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
//"gitlab.com/jmoiron/sqlx"
|
//"gitlab.com/jmoiron/sqlx"
|
||||||
|
@ -30,8 +30,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/database/dialects/mysql/migrations"
|
"go.dev.pztrn.name/fastpastebin/internal/database/dialects/mysql/migrations"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/structs"
|
"go.dev.pztrn.name/fastpastebin/internal/structs"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
_ "github.com/go-sql-driver/mysql"
|
_ "github.com/go-sql-driver/mysql"
|
||||||
|
@ -26,8 +26,8 @@ package postgresql
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/context"
|
"go.dev.pztrn.name/fastpastebin/internal/context"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/database/dialects/interface"
|
"go.dev.pztrn.name/fastpastebin/internal/database/dialects/interface"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -29,7 +29,7 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/structs"
|
"go.dev.pztrn.name/fastpastebin/internal/structs"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Handler struct{}
|
type Handler struct{}
|
||||||
|
@ -26,7 +26,7 @@ package migrations
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/context"
|
"go.dev.pztrn.name/fastpastebin/internal/context"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
//"gitlab.com/jmoiron/sqlx"
|
//"gitlab.com/jmoiron/sqlx"
|
||||||
|
@ -31,8 +31,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/database/dialects/postgresql/migrations"
|
"go.dev.pztrn.name/fastpastebin/internal/database/dialects/postgresql/migrations"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/structs"
|
"go.dev.pztrn.name/fastpastebin/internal/structs"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"github.com/jmoiron/sqlx"
|
"github.com/jmoiron/sqlx"
|
||||||
|
@ -26,8 +26,8 @@ package database
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/context"
|
"go.dev.pztrn.name/fastpastebin/internal/context"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/database/interface"
|
"go.dev.pztrn.name/fastpastebin/internal/database/interface"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -29,8 +29,8 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/database/dialects/interface"
|
"go.dev.pztrn.name/fastpastebin/internal/database/dialects/interface"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/structs"
|
"go.dev.pztrn.name/fastpastebin/internal/structs"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Handler is an interfaceable structure that proxifies calls from anyone
|
// Handler is an interfaceable structure that proxifies calls from anyone
|
||||||
|
@ -29,8 +29,8 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/database/dialects/interface"
|
"go.dev.pztrn.name/fastpastebin/internal/database/dialects/interface"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/structs"
|
"go.dev.pztrn.name/fastpastebin/internal/structs"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Interface represents database interface which is available to all
|
// Interface represents database interface which is available to all
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/assets/static"
|
"go.dev.pztrn.name/fastpastebin/assets/static"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CreateHTML creates pagination HTML based on passed parameters.
|
// CreateHTML creates pagination HTML based on passed parameters.
|
||||||
|
@ -30,8 +30,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"gitlab.com/pztrn/fastpastebin/assets/static"
|
"go.dev.pztrn.name/fastpastebin/assets/static"
|
||||||
"gitlab.com/pztrn/fastpastebin/internal/context"
|
"go.dev.pztrn.name/fastpastebin/internal/context"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
|
Loading…
Reference in New Issue
Block a user