move loader to main package
This commit is contained in:
parent
d793116a36
commit
980a4d11c3
5 changed files with 11 additions and 20 deletions
|
|
@ -1,5 +0,0 @@
|
|||
package loader
|
||||
|
||||
import (
|
||||
_ "github.com/tg123/sshpiper/sshpiperd/auditor/typescriptlogger" // init plugin
|
||||
)
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
package loader
|
||||
|
||||
import (
|
||||
_ "github.com/tg123/sshpiper/sshpiperd/challenger/pam" // init plugin
|
||||
_ "github.com/tg123/sshpiper/sshpiperd/challenger/welcometext" // init plugin
|
||||
)
|
||||
|
|
@ -8,12 +8,9 @@ import (
|
|||
"github.com/jessevdk/go-flags"
|
||||
|
||||
"github.com/tg123/sshpiper/sshpiperd/auditor"
|
||||
_ "github.com/tg123/sshpiper/sshpiperd/auditor/loader"
|
||||
"github.com/tg123/sshpiper/sshpiperd/challenger"
|
||||
_ "github.com/tg123/sshpiper/sshpiperd/challenger/loader"
|
||||
"github.com/tg123/sshpiper/sshpiperd/registry"
|
||||
"github.com/tg123/sshpiper/sshpiperd/upstream"
|
||||
_ "github.com/tg123/sshpiper/sshpiperd/upstream/loader"
|
||||
)
|
||||
|
||||
type subCommand struct{ callback func(args []string) error }
|
||||
|
|
|
|||
11
sshpiperd/loader.go
Normal file
11
sshpiperd/loader.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
_ "github.com/tg123/sshpiper/sshpiperd/upstream/mysql"
|
||||
_ "github.com/tg123/sshpiper/sshpiperd/upstream/workingdir"
|
||||
|
||||
_ "github.com/tg123/sshpiper/sshpiperd/challenger/pam"
|
||||
_ "github.com/tg123/sshpiper/sshpiperd/challenger/welcometext"
|
||||
|
||||
_ "github.com/tg123/sshpiper/sshpiperd/auditor/typescriptlogger"
|
||||
)
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
package loader
|
||||
|
||||
import (
|
||||
_ "github.com/tg123/sshpiper/sshpiperd/upstream/mysql" // init plugin
|
||||
_ "github.com/tg123/sshpiper/sshpiperd/upstream/workingdir" // init plugin
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue