fix lint
This commit is contained in:
parent
f6e64a7538
commit
ff020f14ff
6 changed files with 7 additions and 8 deletions
|
|
@ -3,9 +3,9 @@
|
|||
package pam
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"errors"
|
||||
|
||||
"golang.org/x/crypto/ssh"
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ import (
|
|||
"log"
|
||||
|
||||
"github.com/jinzhu/gorm"
|
||||
_ "github.com/jinzhu/gorm/dialects/mysql"
|
||||
|
||||
upstreamprovider "github.com/tg123/sshpiper/sshpiperd/upstream"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue