Moved from gitlab.com to Gitea with giredore.

This commit is contained in:
Stanislav Nikitin 2019-10-12 14:18:35 +05:00
parent 333fc1d12a
commit e042c4414f
No known key found for this signature in database
GPG Key ID: 106900B32F8192EE
31 changed files with 56 additions and 56 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
examples/fastpastebin.yaml examples/fastpastebin.yaml
dist/ dist/
data/ data/
.idea
*DS_Store* *DS_Store*

View File

@ -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() {

View File

@ -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"

View File

@ -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 (

View File

@ -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 (

View File

@ -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"

View File

@ -29,7 +29,7 @@ import (
"regexp" "regexp"
// local // local
"gitlab.com/pztrn/fastpastebin/internal/context" "go.dev.pztrn.name/fastpastebin/internal/context"
) )
var ( var (

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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 (

View File

@ -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 {

View File

@ -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{}

View File

@ -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 {

View File

@ -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 (

View File

@ -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{}

View File

@ -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"

View File

@ -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"

View File

@ -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 (

View File

@ -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{}

View File

@ -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"

View File

@ -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"

View File

@ -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 (

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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"