Switch to Gitlab.
This commit is contained in:
parent
2beb9ecef9
commit
fc8f4e9d8b
@ -1,4 +1,4 @@
|
|||||||
[Chat on Keybase.io](https://keybase.io/team/fastpastebin)
|
Chat at #fastpastebin @ irc.oftc.net or in Matrix at #fastpastebin:pztrn.name
|
||||||
|
|
||||||
# Fast Pastebin
|
# Fast Pastebin
|
||||||
|
|
||||||
|
@ -26,9 +26,9 @@ package api
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/api/http"
|
"gitlab.com/pztrn/fastpastebin/api/http"
|
||||||
"github.com/pztrn/fastpastebin/api/json"
|
"gitlab.com/pztrn/fastpastebin/api/json"
|
||||||
"github.com/pztrn/fastpastebin/context"
|
"gitlab.com/pztrn/fastpastebin/context"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
|
@ -26,8 +26,8 @@ package http
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/api/http/static"
|
"gitlab.com/pztrn/fastpastebin/api/http/static"
|
||||||
"github.com/pztrn/fastpastebin/context"
|
"gitlab.com/pztrn/fastpastebin/context"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
|
@ -29,8 +29,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/captcha"
|
"gitlab.com/pztrn/fastpastebin/captcha"
|
||||||
"github.com/pztrn/fastpastebin/templater"
|
"gitlab.com/pztrn/fastpastebin/templater"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"github.com/alecthomas/chroma/lexers"
|
"github.com/alecthomas/chroma/lexers"
|
||||||
|
@ -26,7 +26,7 @@ package json
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/context"
|
"gitlab.com/pztrn/fastpastebin/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -25,12 +25,12 @@
|
|||||||
package captcha
|
package captcha
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/labstack/echo"
|
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/context"
|
"gitlab.com/pztrn/fastpastebin/context"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"github.com/dchest/captcha"
|
"github.com/dchest/captcha"
|
||||||
|
"github.com/labstack/echo"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -31,13 +31,13 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/api"
|
"gitlab.com/pztrn/fastpastebin/api"
|
||||||
"github.com/pztrn/fastpastebin/captcha"
|
"gitlab.com/pztrn/fastpastebin/captcha"
|
||||||
"github.com/pztrn/fastpastebin/context"
|
"gitlab.com/pztrn/fastpastebin/context"
|
||||||
"github.com/pztrn/fastpastebin/database"
|
"gitlab.com/pztrn/fastpastebin/database"
|
||||||
"github.com/pztrn/fastpastebin/database/migrations"
|
"gitlab.com/pztrn/fastpastebin/database/migrations"
|
||||||
"github.com/pztrn/fastpastebin/pastes"
|
"gitlab.com/pztrn/fastpastebin/pastes"
|
||||||
"github.com/pztrn/fastpastebin/templater"
|
"gitlab.com/pztrn/fastpastebin/templater"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -31,8 +31,8 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/config"
|
"gitlab.com/pztrn/fastpastebin/config"
|
||||||
"github.com/pztrn/fastpastebin/database/interface"
|
"gitlab.com/pztrn/fastpastebin/database/interface"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
|
@ -29,10 +29,10 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/database/dialects/flatfiles"
|
"gitlab.com/pztrn/fastpastebin/database/dialects/flatfiles"
|
||||||
"github.com/pztrn/fastpastebin/database/dialects/interface"
|
"gitlab.com/pztrn/fastpastebin/database/dialects/interface"
|
||||||
"github.com/pztrn/fastpastebin/database/dialects/mysql"
|
"gitlab.com/pztrn/fastpastebin/database/dialects/mysql"
|
||||||
"github.com/pztrn/fastpastebin/pastes/model"
|
"gitlab.com/pztrn/fastpastebin/pastes/model"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
_ "github.com/go-sql-driver/mysql"
|
_ "github.com/go-sql-driver/mysql"
|
||||||
|
@ -26,8 +26,8 @@ package flatfiles
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/context"
|
"gitlab.com/pztrn/fastpastebin/context"
|
||||||
"github.com/pztrn/fastpastebin/database/dialects/interface"
|
"gitlab.com/pztrn/fastpastebin/database/dialects/interface"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -37,7 +37,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/pastes/model"
|
"gitlab.com/pztrn/fastpastebin/pastes/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FlatFiles struct {
|
type FlatFiles struct {
|
||||||
|
@ -29,7 +29,7 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/pastes/model"
|
"gitlab.com/pztrn/fastpastebin/pastes/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Handler struct{}
|
type Handler struct{}
|
||||||
|
@ -29,7 +29,7 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/pastes/model"
|
"gitlab.com/pztrn/fastpastebin/pastes/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Interface interface {
|
type Interface interface {
|
||||||
|
@ -26,8 +26,8 @@ package mysql
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/context"
|
"gitlab.com/pztrn/fastpastebin/context"
|
||||||
"github.com/pztrn/fastpastebin/database/dialects/interface"
|
"gitlab.com/pztrn/fastpastebin/database/dialects/interface"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -29,7 +29,7 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/pastes/model"
|
"gitlab.com/pztrn/fastpastebin/pastes/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Handler struct{}
|
type Handler struct{}
|
||||||
|
@ -30,7 +30,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/pastes/model"
|
"gitlab.com/pztrn/fastpastebin/pastes/model"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
_ "github.com/go-sql-driver/mysql"
|
_ "github.com/go-sql-driver/mysql"
|
||||||
|
@ -26,8 +26,8 @@ package database
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/context"
|
"gitlab.com/pztrn/fastpastebin/context"
|
||||||
"github.com/pztrn/fastpastebin/database/interface"
|
"gitlab.com/pztrn/fastpastebin/database/interface"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -29,8 +29,8 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/database/dialects/interface"
|
"gitlab.com/pztrn/fastpastebin/database/dialects/interface"
|
||||||
"github.com/pztrn/fastpastebin/pastes/model"
|
"gitlab.com/pztrn/fastpastebin/pastes/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 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
|
||||||
"github.com/pztrn/fastpastebin/database/dialects/interface"
|
"gitlab.com/pztrn/fastpastebin/database/dialects/interface"
|
||||||
"github.com/pztrn/fastpastebin/pastes/model"
|
"gitlab.com/pztrn/fastpastebin/pastes/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Interface represents database interface which is available to all
|
// Interface represents database interface which is available to all
|
||||||
|
@ -26,10 +26,10 @@ package migrations
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/context"
|
"gitlab.com/pztrn/fastpastebin/context"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
//"github.com/jmoiron/sqlx"
|
//"gitlab.com/jmoiron/sqlx"
|
||||||
"github.com/pressly/goose"
|
"github.com/pressly/goose"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/api/http/static"
|
"gitlab.com/pztrn/fastpastebin/api/http/static"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CreateHTML creates pagination HTML based on passed parameters.
|
// CreateHTML creates pagination HTML based on passed parameters.
|
||||||
|
@ -34,10 +34,10 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/captcha"
|
"gitlab.com/pztrn/fastpastebin/captcha"
|
||||||
"github.com/pztrn/fastpastebin/pagination"
|
"gitlab.com/pztrn/fastpastebin/pagination"
|
||||||
"github.com/pztrn/fastpastebin/pastes/model"
|
"gitlab.com/pztrn/fastpastebin/pastes/model"
|
||||||
"github.com/pztrn/fastpastebin/templater"
|
"gitlab.com/pztrn/fastpastebin/templater"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"github.com/alecthomas/chroma"
|
"github.com/alecthomas/chroma"
|
||||||
@ -45,7 +45,7 @@ import (
|
|||||||
htmlfmt "github.com/alecthomas/chroma/formatters/html"
|
htmlfmt "github.com/alecthomas/chroma/formatters/html"
|
||||||
"github.com/alecthomas/chroma/lexers"
|
"github.com/alecthomas/chroma/lexers"
|
||||||
"github.com/alecthomas/chroma/styles"
|
"github.com/alecthomas/chroma/styles"
|
||||||
//"github.com/dchest/captcha"
|
//"gitlab.com/dchest/captcha"
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ package pastes
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/context"
|
"gitlab.com/pztrn/fastpastebin/context"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -30,8 +30,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
// local
|
// local
|
||||||
"github.com/pztrn/fastpastebin/api/http/static"
|
"gitlab.com/pztrn/fastpastebin/api/http/static"
|
||||||
"github.com/pztrn/fastpastebin/context"
|
"gitlab.com/pztrn/fastpastebin/context"
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
|
Loading…
Reference in New Issue
Block a user