Format go code

This commit is contained in:
Moritz Marquardt 2024-04-02 21:14:03 +02:00
parent 584ba5c74d
commit 5bf538c5ec
8 changed files with 17 additions and 9 deletions

View file

@ -1,8 +1,9 @@
package cache package cache
import ( import (
"github.com/OrlovEvgeny/go-mcache"
"time" "time"
"github.com/OrlovEvgeny/go-mcache"
) )
type MCache struct { type MCache struct {

View file

@ -3,9 +3,10 @@ package cache
import ( import (
"context" "context"
"errors" "errors"
"time"
"github.com/redis/go-redis/v9" "github.com/redis/go-redis/v9"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"time"
) )
type RedisCache struct { type RedisCache struct {

View file

@ -6,11 +6,12 @@ import (
"crypto/x509" "crypto/x509"
"errors" "errors"
"fmt" "fmt"
"github.com/OrlovEvgeny/go-mcache"
"strconv" "strconv"
"strings" "strings"
"time" "time"
"github.com/OrlovEvgeny/go-mcache"
"github.com/go-acme/lego/v4/certcrypto" "github.com/go-acme/lego/v4/certcrypto"
"github.com/go-acme/lego/v4/certificate" "github.com/go-acme/lego/v4/certificate"
"github.com/go-acme/lego/v4/challenge/tlsalpn01" "github.com/go-acme/lego/v4/challenge/tlsalpn01"

View file

@ -1,10 +1,11 @@
package dns package dns
import ( import (
"github.com/OrlovEvgeny/go-mcache"
"net" "net"
"strings" "strings"
"time" "time"
"github.com/OrlovEvgeny/go-mcache"
) )
// lookupCacheTimeout specifies the timeout for the DNS lookup cache. // lookupCacheTimeout specifies the timeout for the DNS lookup cache.

View file

@ -1,10 +1,11 @@
package handler package handler
import ( import (
"github.com/OrlovEvgeny/go-mcache"
"net/http" "net/http"
"strings" "strings"
"github.com/OrlovEvgeny/go-mcache"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"codeberg.org/codeberg/pages/config" "codeberg.org/codeberg/pages/config"

View file

@ -1,11 +1,12 @@
package handler package handler
import ( import (
"github.com/OrlovEvgeny/go-mcache"
"net/http" "net/http"
"path" "path"
"strings" "strings"
"github.com/OrlovEvgeny/go-mcache"
"codeberg.org/codeberg/pages/html" "codeberg.org/codeberg/pages/html"
"codeberg.org/codeberg/pages/server/cache" "codeberg.org/codeberg/pages/server/cache"
"codeberg.org/codeberg/pages/server/context" "codeberg.org/codeberg/pages/server/context"

View file

@ -1,12 +1,13 @@
package handler package handler
import ( import (
"github.com/OrlovEvgeny/go-mcache"
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"time" "time"
"github.com/OrlovEvgeny/go-mcache"
"codeberg.org/codeberg/pages/config" "codeberg.org/codeberg/pages/config"
"codeberg.org/codeberg/pages/server/cache" "codeberg.org/codeberg/pages/server/cache"
"codeberg.org/codeberg/pages/server/gitea" "codeberg.org/codeberg/pages/server/gitea"

View file

@ -5,14 +5,15 @@ import (
"crypto/tls" "crypto/tls"
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/OrlovEvgeny/go-mcache"
"github.com/redis/go-redis/v9"
"net" "net"
"net/http" "net/http"
"os" "os"
"strings" "strings"
"time" "time"
"github.com/OrlovEvgeny/go-mcache"
"github.com/redis/go-redis/v9"
"github.com/rs/zerolog" "github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"