mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-22 12:43:58 +08:00
Used goimports to fix import order (#2682)
Keeps the list sorted and prevents future merge conflicts.
This commit is contained in:
parent
d411b7d087
commit
3856ad03b0
|
@ -29,12 +29,12 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
|
||||||
"github.com/klauspost/cpuid"
|
|
||||||
"github.com/caddyserver/caddy"
|
"github.com/caddyserver/caddy"
|
||||||
"github.com/caddyserver/caddy/caddyfile"
|
"github.com/caddyserver/caddy/caddyfile"
|
||||||
"github.com/caddyserver/caddy/caddytls"
|
"github.com/caddyserver/caddy/caddytls"
|
||||||
"github.com/caddyserver/caddy/telemetry"
|
"github.com/caddyserver/caddy/telemetry"
|
||||||
|
"github.com/google/uuid"
|
||||||
|
"github.com/klauspost/cpuid"
|
||||||
"github.com/mholt/certmagic"
|
"github.com/mholt/certmagic"
|
||||||
lumberjack "gopkg.in/natefinch/lumberjack.v2"
|
lumberjack "gopkg.in/natefinch/lumberjack.v2"
|
||||||
|
|
||||||
|
|
|
@ -33,8 +33,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/jimstudt/http-authentication/basic"
|
|
||||||
"github.com/caddyserver/caddy/caddyhttp/httpserver"
|
"github.com/caddyserver/caddy/caddyhttp/httpserver"
|
||||||
|
"github.com/jimstudt/http-authentication/basic"
|
||||||
)
|
)
|
||||||
|
|
||||||
// BasicAuth is middleware to protect resources with a username and password.
|
// BasicAuth is middleware to protect resources with a username and password.
|
||||||
|
|
|
@ -29,9 +29,9 @@ import (
|
||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/dustin/go-humanize"
|
|
||||||
"github.com/caddyserver/caddy/caddyhttp/httpserver"
|
"github.com/caddyserver/caddy/caddyhttp/httpserver"
|
||||||
"github.com/caddyserver/caddy/caddyhttp/staticfiles"
|
"github.com/caddyserver/caddy/caddyhttp/staticfiles"
|
||||||
|
"github.com/dustin/go-humanize"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -23,8 +23,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
gsyslog "github.com/hashicorp/go-syslog"
|
|
||||||
"github.com/caddyserver/caddy"
|
"github.com/caddyserver/caddy"
|
||||||
|
gsyslog "github.com/hashicorp/go-syslog"
|
||||||
)
|
)
|
||||||
|
|
||||||
var remoteSyslogPrefixes = map[string]string{
|
var remoteSyslogPrefixes = map[string]string{
|
||||||
|
|
|
@ -31,11 +31,11 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/lucas-clemente/quic-go/h2quic"
|
|
||||||
"github.com/caddyserver/caddy"
|
"github.com/caddyserver/caddy"
|
||||||
"github.com/caddyserver/caddy/caddyhttp/staticfiles"
|
"github.com/caddyserver/caddy/caddyhttp/staticfiles"
|
||||||
"github.com/caddyserver/caddy/caddytls"
|
"github.com/caddyserver/caddy/caddytls"
|
||||||
"github.com/caddyserver/caddy/telemetry"
|
"github.com/caddyserver/caddy/telemetry"
|
||||||
|
"github.com/lucas-clemente/quic-go/h2quic"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Server is the HTTP server implementation.
|
// Server is the HTTP server implementation.
|
||||||
|
|
|
@ -41,9 +41,9 @@ import (
|
||||||
|
|
||||||
"golang.org/x/net/http2"
|
"golang.org/x/net/http2"
|
||||||
|
|
||||||
|
"github.com/caddyserver/caddy/caddyhttp/httpserver"
|
||||||
"github.com/lucas-clemente/quic-go"
|
"github.com/lucas-clemente/quic-go"
|
||||||
"github.com/lucas-clemente/quic-go/h2quic"
|
"github.com/lucas-clemente/quic-go/h2quic"
|
||||||
"github.com/caddyserver/caddy/caddyhttp/httpserver"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -19,8 +19,8 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
|
||||||
"github.com/caddyserver/caddy/caddyhttp/httpserver"
|
"github.com/caddyserver/caddy/caddyhttp/httpserver"
|
||||||
|
"github.com/google/uuid"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Handler is a middleware handler
|
// Handler is a middleware handler
|
||||||
|
|
|
@ -29,8 +29,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/websocket"
|
|
||||||
"github.com/caddyserver/caddy/caddyhttp/httpserver"
|
"github.com/caddyserver/caddy/caddyhttp/httpserver"
|
||||||
|
"github.com/gorilla/websocket"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -23,9 +23,9 @@ import (
|
||||||
|
|
||||||
"github.com/go-acme/lego/challenge/tlsalpn01"
|
"github.com/go-acme/lego/challenge/tlsalpn01"
|
||||||
|
|
||||||
|
"github.com/caddyserver/caddy"
|
||||||
"github.com/go-acme/lego/certcrypto"
|
"github.com/go-acme/lego/certcrypto"
|
||||||
"github.com/klauspost/cpuid"
|
"github.com/klauspost/cpuid"
|
||||||
"github.com/caddyserver/caddy"
|
|
||||||
"github.com/mholt/certmagic"
|
"github.com/mholt/certmagic"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/go-acme/lego/certcrypto"
|
|
||||||
"github.com/caddyserver/caddy"
|
"github.com/caddyserver/caddy"
|
||||||
|
"github.com/go-acme/lego/certcrypto"
|
||||||
"github.com/mholt/certmagic"
|
"github.com/mholt/certmagic"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
package caddytls
|
package caddytls
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/go-acme/lego/challenge"
|
|
||||||
"github.com/caddyserver/caddy"
|
"github.com/caddyserver/caddy"
|
||||||
|
"github.com/go-acme/lego/challenge"
|
||||||
"github.com/mholt/certmagic"
|
"github.com/mholt/certmagic"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
|
||||||
"github.com/caddyserver/caddy"
|
"github.com/caddyserver/caddy"
|
||||||
|
"github.com/google/uuid"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestHook(t *testing.T) {
|
func TestHook(t *testing.T) {
|
||||||
|
|
|
@ -3,9 +3,9 @@ package onevent
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
|
||||||
"github.com/caddyserver/caddy"
|
"github.com/caddyserver/caddy"
|
||||||
"github.com/caddyserver/caddy/onevent/hook"
|
"github.com/caddyserver/caddy/onevent/hook"
|
||||||
|
"github.com/google/uuid"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user