Extract several packages to form a public API

This commit is contained in:
fox.cpp 2020-07-14 20:36:18 +03:00
parent 7d497f88f0
commit bcceec4fe4
No known key found for this signature in database
GPG key ID: 5B991F6215D2FCC0
170 changed files with 385 additions and 392 deletions

View file

@ -6,11 +6,11 @@ import (
"github.com/emersion/go-sasl"
dovecotsasl "github.com/foxcpp/go-dovecot-sasl"
"github.com/foxcpp/maddy/framework/config"
"github.com/foxcpp/maddy/framework/exterrors"
"github.com/foxcpp/maddy/framework/log"
"github.com/foxcpp/maddy/framework/module"
"github.com/foxcpp/maddy/internal/auth"
"github.com/foxcpp/maddy/internal/config"
"github.com/foxcpp/maddy/internal/exterrors"
"github.com/foxcpp/maddy/internal/log"
"github.com/foxcpp/maddy/internal/module"
)
type Auth struct {

View file

@ -6,10 +6,10 @@ import (
"os"
"path/filepath"
"github.com/foxcpp/maddy/framework/config"
"github.com/foxcpp/maddy/framework/log"
"github.com/foxcpp/maddy/framework/module"
"github.com/foxcpp/maddy/internal/auth"
"github.com/foxcpp/maddy/internal/config"
"github.com/foxcpp/maddy/internal/log"
"github.com/foxcpp/maddy/internal/module"
)
type ExternalAuth struct {

View file

@ -5,7 +5,7 @@ import (
"io"
"os/exec"
"github.com/foxcpp/maddy/internal/module"
"github.com/foxcpp/maddy/framework/module"
)
func AuthUsingHelper(binaryPath, accountName, password string) error {

View file

@ -6,10 +6,10 @@ import (
"os"
"path/filepath"
"github.com/foxcpp/maddy/framework/config"
"github.com/foxcpp/maddy/framework/log"
"github.com/foxcpp/maddy/framework/module"
"github.com/foxcpp/maddy/internal/auth/external"
"github.com/foxcpp/maddy/internal/config"
"github.com/foxcpp/maddy/internal/log"
"github.com/foxcpp/maddy/internal/module"
)
type Auth struct {

View file

@ -4,9 +4,9 @@ import (
"fmt"
"strings"
"github.com/foxcpp/maddy/internal/config"
modconfig "github.com/foxcpp/maddy/internal/config/module"
"github.com/foxcpp/maddy/internal/module"
"github.com/foxcpp/maddy/framework/config"
modconfig "github.com/foxcpp/maddy/framework/config/module"
"github.com/foxcpp/maddy/framework/module"
"golang.org/x/crypto/bcrypt"
"golang.org/x/text/secure/precis"
)

View file

@ -3,7 +3,7 @@ package pass_table
import (
"testing"
"github.com/foxcpp/maddy/internal/config"
"github.com/foxcpp/maddy/framework/config"
"github.com/foxcpp/maddy/internal/testutils"
)

View file

@ -4,9 +4,9 @@ import (
"errors"
"fmt"
"github.com/foxcpp/maddy/internal/config"
"github.com/foxcpp/maddy/internal/log"
"github.com/foxcpp/maddy/internal/module"
"github.com/foxcpp/maddy/framework/config"
"github.com/foxcpp/maddy/framework/log"
"github.com/foxcpp/maddy/framework/module"
)
type Auth struct {

View file

@ -5,7 +5,7 @@ import (
"testing"
"github.com/emersion/go-sasl"
"github.com/foxcpp/maddy/internal/module"
"github.com/foxcpp/maddy/framework/module"
)
type mockAuth struct {

View file

@ -6,10 +6,10 @@ import (
"net"
"github.com/emersion/go-sasl"
"github.com/foxcpp/maddy/internal/config"
modconfig "github.com/foxcpp/maddy/internal/config/module"
"github.com/foxcpp/maddy/internal/log"
"github.com/foxcpp/maddy/internal/module"
"github.com/foxcpp/maddy/framework/config"
modconfig "github.com/foxcpp/maddy/framework/config/module"
"github.com/foxcpp/maddy/framework/log"
"github.com/foxcpp/maddy/framework/module"
)
var (

View file

@ -5,7 +5,7 @@ import (
"net"
"testing"
"github.com/foxcpp/maddy/internal/module"
"github.com/foxcpp/maddy/framework/module"
"github.com/foxcpp/maddy/internal/testutils"
)

View file

@ -8,10 +8,10 @@ import (
"os"
"path/filepath"
"github.com/foxcpp/maddy/framework/config"
"github.com/foxcpp/maddy/framework/log"
"github.com/foxcpp/maddy/framework/module"
"github.com/foxcpp/maddy/internal/auth/external"
"github.com/foxcpp/maddy/internal/config"
"github.com/foxcpp/maddy/internal/log"
"github.com/foxcpp/maddy/internal/module"
)
type Auth struct {