This commit is contained in:
Boshi Lian 2018-12-26 22:56:47 +00:00
parent f6e64a7538
commit ff020f14ff
6 changed files with 7 additions and 8 deletions

View file

@ -3,9 +3,9 @@
package pam
import (
"errors"
"fmt"
"os"
"errors"
"golang.org/x/crypto/ssh"

View file

@ -22,14 +22,14 @@ type keydata struct {
type privateKey struct {
Key keydata
KeyId int
KeyID int
UpstreamID int
}
type hostKey struct {
Key keydata
KeyId int
KeyID int
ServerID int
}
@ -61,7 +61,7 @@ type upstream struct {
type authorizedKey struct {
Key keydata
KeyId int
KeyID int
DownstreamID int
}

View file

@ -5,7 +5,7 @@ import (
mysqldriver "github.com/go-sql-driver/mysql"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/mysql"
_ "github.com/jinzhu/gorm/dialects/mysql" // gorm dialiect
upstreamprovider "github.com/tg123/sshpiper/sshpiperd/upstream"
)

View file

@ -4,7 +4,6 @@ import (
"log"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/mysql"
upstreamprovider "github.com/tg123/sshpiper/sshpiperd/upstream"
)

View file

@ -4,7 +4,7 @@ import (
"fmt"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/postgres"
_ "github.com/jinzhu/gorm/dialects/postgres" // gorm dialect
upstreamprovider "github.com/tg123/sshpiper/sshpiperd/upstream"
)

View file

@ -2,7 +2,7 @@ package database
import (
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/sqlite"
_ "github.com/jinzhu/gorm/dialects/sqlite" // gorm dialect
upstreamprovider "github.com/tg123/sshpiper/sshpiperd/upstream"
)