Switch to Gitlab.

This commit is contained in:
Stanislav Nikitin 2018-12-01 02:16:06 +05:00
parent 2beb9ecef9
commit fc8f4e9d8b
24 changed files with 50 additions and 50 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -26,7 +26,7 @@ package json
import ( import (
// local // local
"github.com/pztrn/fastpastebin/context" "gitlab.com/pztrn/fastpastebin/context"
) )
var ( var (

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -26,7 +26,7 @@ package pastes
import ( import (
// local // local
"github.com/pztrn/fastpastebin/context" "gitlab.com/pztrn/fastpastebin/context"
) )
var ( var (

View File

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