Rename Miniflux package name to follow Go module naming convention

For reference: https://go.dev/ref/mod#major-version-suffixes
This commit is contained in:
Frédéric Guillot 2023-08-09 21:15:55 -07:00
parent c980dfe434
commit c234903255
315 changed files with 1134 additions and 1134 deletions

View file

@ -3,7 +3,7 @@ DOCKER_IMAGE := miniflux/miniflux
VERSION := $(shell git describe --tags --abbrev=0)
COMMIT := $(shell git rev-parse --short HEAD)
BUILD_DATE := `date +%FT%T%z`
LD_FLAGS := "-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.Commit=$(COMMIT)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'"
LD_FLAGS := "-s -w -X 'miniflux.app/v2/version.Version=$(VERSION)' -X 'miniflux.app/v2/version.Commit=$(COMMIT)' -X 'miniflux.app/v2/version.BuildDate=$(BUILD_DATE)'"
PKG_LIST := $(shell go list ./... | grep -v /vendor/)
DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
DEB_IMG_ARCH := amd64
@ -122,7 +122,7 @@ integration-test:
./miniflux-test >/tmp/miniflux.log 2>&1 & echo "$$!" > "/tmp/miniflux.pid"
while ! nc -z localhost 8080; do sleep 1; done
go test -v -tags=integration -count=1 miniflux.app/tests
go test -v -tags=integration -count=1 miniflux.app/v2/tests
clean-integration-test:
@ kill -9 `cat /tmp/miniflux.pid`

View file

@ -1,13 +1,13 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"
import (
"net/http"
"miniflux.app/storage"
"miniflux.app/worker"
"miniflux.app/v2/storage"
"miniflux.app/v2/worker"
"github.com/gorilla/mux"
)

View file

@ -1,17 +1,17 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"
import (
json_parser "encoding/json"
"net/http"
"time"
"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/model"
"miniflux.app/validator"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/model"
"miniflux.app/v2/validator"
)
func (h *handler) createCategory(w http.ResponseWriter, r *http.Request) {

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"
import (
json_parser "encoding/json"
@ -11,16 +11,16 @@ import (
"strings"
"time"
"miniflux.app/config"
"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/integration"
"miniflux.app/model"
"miniflux.app/proxy"
"miniflux.app/reader/processor"
"miniflux.app/storage"
"miniflux.app/url"
"miniflux.app/validator"
"miniflux.app/v2/config"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/integration"
"miniflux.app/v2/model"
"miniflux.app/v2/proxy"
"miniflux.app/v2/reader/processor"
"miniflux.app/v2/storage"
"miniflux.app/v2/url"
"miniflux.app/v2/validator"
)
func (h *handler) getEntryFromBuilder(w http.ResponseWriter, r *http.Request, b *storage.EntryQueryBuilder) {

View file

@ -1,18 +1,18 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"
import (
json_parser "encoding/json"
"net/http"
"time"
"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/model"
feedHandler "miniflux.app/reader/handler"
"miniflux.app/validator"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/model"
feedHandler "miniflux.app/v2/reader/handler"
"miniflux.app/v2/validator"
)
func (h *handler) createFeed(w http.ResponseWriter, r *http.Request) {

View file

@ -1,13 +1,13 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"
import (
"net/http"
"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response/json"
)
func (h *handler) feedIcon(w http.ResponseWriter, r *http.Request) {

View file

@ -1,16 +1,16 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"
import (
"context"
"net/http"
"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/logger"
"miniflux.app/storage"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/logger"
"miniflux.app/v2/storage"
)
type middleware struct {

View file

@ -1,15 +1,15 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"
import (
"net/http"
"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/http/response/xml"
"miniflux.app/reader/opml"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/http/response/xml"
"miniflux.app/v2/reader/opml"
)
func (h *handler) exportFeeds(w http.ResponseWriter, r *http.Request) {

View file

@ -1,10 +1,10 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"
import (
"miniflux.app/model"
"miniflux.app/v2/model"
)
type feedIconResponse struct {

View file

@ -1,16 +1,16 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"
import (
json_parser "encoding/json"
"net/http"
"miniflux.app/http/response/json"
"miniflux.app/model"
"miniflux.app/reader/subscription"
"miniflux.app/validator"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/model"
"miniflux.app/v2/reader/subscription"
"miniflux.app/v2/validator"
)
func (h *handler) discoverSubscriptions(w http.ResponseWriter, r *http.Request) {

View file

@ -1,17 +1,17 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package api // import "miniflux.app/api"
package api // import "miniflux.app/v2/api"
import (
json_parser "encoding/json"
"errors"
"net/http"
"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/model"
"miniflux.app/validator"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/model"
"miniflux.app/v2/validator"
)
func (h *handler) currentUser(w http.ResponseWriter, r *http.Request) {

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"
import (
"bufio"

View file

@ -1,16 +1,16 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"
import (
"time"
"miniflux.app/config"
"miniflux.app/logger"
"miniflux.app/metric"
"miniflux.app/model"
"miniflux.app/storage"
"miniflux.app/v2/config"
"miniflux.app/v2/logger"
"miniflux.app/v2/metric"
"miniflux.app/v2/model"
"miniflux.app/v2/storage"
)
func runCleanupTasks(store *storage.Storage) {

View file

@ -1,19 +1,19 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"
import (
"flag"
"fmt"
"miniflux.app/config"
"miniflux.app/database"
"miniflux.app/locale"
"miniflux.app/logger"
"miniflux.app/storage"
"miniflux.app/ui/static"
"miniflux.app/version"
"miniflux.app/v2/config"
"miniflux.app/v2/database"
"miniflux.app/v2/locale"
"miniflux.app/v2/logger"
"miniflux.app/v2/storage"
"miniflux.app/v2/ui/static"
"miniflux.app/v2/version"
)
const (

View file

@ -1,17 +1,17 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"
import (
"fmt"
"os"
"miniflux.app/config"
"miniflux.app/logger"
"miniflux.app/model"
"miniflux.app/storage"
"miniflux.app/validator"
"miniflux.app/v2/config"
"miniflux.app/v2/logger"
"miniflux.app/v2/model"
"miniflux.app/v2/storage"
"miniflux.app/v2/validator"
)
func createAdmin(store *storage.Storage) {

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"
import (
"context"
@ -11,13 +11,13 @@ import (
"syscall"
"time"
"miniflux.app/config"
httpd "miniflux.app/http/server"
"miniflux.app/logger"
"miniflux.app/metric"
"miniflux.app/storage"
"miniflux.app/systemd"
"miniflux.app/worker"
"miniflux.app/v2/config"
httpd "miniflux.app/v2/http/server"
"miniflux.app/v2/logger"
"miniflux.app/v2/metric"
"miniflux.app/v2/storage"
"miniflux.app/v2/systemd"
"miniflux.app/v2/worker"
)
func startDaemon(store *storage.Storage) {

View file

@ -1,13 +1,13 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"
import (
"fmt"
"os"
"miniflux.app/storage"
"miniflux.app/v2/storage"
)
func flushSessions(store *storage.Storage) {

View file

@ -1,14 +1,14 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"
import (
"net/http"
"time"
"miniflux.app/config"
"miniflux.app/logger"
"miniflux.app/v2/config"
"miniflux.app/v2/logger"
)
func doHealthCheck(healthCheckEndpoint string) {

View file

@ -1,13 +1,13 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"
import (
"fmt"
"runtime"
"miniflux.app/version"
"miniflux.app/v2/version"
)
func info() {

View file

@ -1,17 +1,17 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"
import (
"sync"
"time"
"miniflux.app/config"
"miniflux.app/logger"
"miniflux.app/model"
feedHandler "miniflux.app/reader/handler"
"miniflux.app/storage"
"miniflux.app/v2/config"
"miniflux.app/v2/logger"
"miniflux.app/v2/model"
feedHandler "miniflux.app/v2/reader/handler"
"miniflux.app/v2/storage"
)
func refreshFeeds(store *storage.Storage) {

View file

@ -1,15 +1,15 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"
import (
"fmt"
"os"
"miniflux.app/model"
"miniflux.app/storage"
"miniflux.app/validator"
"miniflux.app/v2/model"
"miniflux.app/v2/storage"
"miniflux.app/v2/validator"
)
func resetPassword(store *storage.Storage) {

View file

@ -1,15 +1,15 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package cli // import "miniflux.app/cli"
package cli // import "miniflux.app/v2/cli"
import (
"time"
"miniflux.app/config"
"miniflux.app/logger"
"miniflux.app/storage"
"miniflux.app/worker"
"miniflux.app/v2/config"
"miniflux.app/v2/logger"
"miniflux.app/v2/storage"
"miniflux.app/v2/worker"
)
func runScheduler(store *storage.Storage, pool *worker.Pool) {

View file

@ -22,7 +22,7 @@ import (
"fmt"
"os"
miniflux "miniflux.app/client"
miniflux "miniflux.app/v2/client"
)
func main() {

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package client // import "miniflux.app/client"
package client // import "miniflux.app/v2/client"
import (
"encoding/json"

View file

@ -9,7 +9,7 @@ Package client implements a client library for the Miniflux REST API.
This code snippet fetch the list of users:
import (
miniflux "miniflux.app/client"
miniflux "miniflux.app/v2/client"
)
client := miniflux.New("https://api.example.org", "admin", "secret")
@ -29,4 +29,4 @@ This one discover subscriptions on a website:
}
fmt.Println(subscriptions)
*/
package client // import "miniflux.app/client"
package client // import "miniflux.app/v2/client"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package client // import "miniflux.app/client"
package client // import "miniflux.app/v2/client"
import (
"fmt"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package client // import "miniflux.app/client"
package client // import "miniflux.app/v2/client"
import (
"bytes"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package config // import "miniflux.app/config"
package config // import "miniflux.app/v2/config"
// Opts holds parsed configuration options.
var Opts *Options

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package config // import "miniflux.app/config"
package config // import "miniflux.app/v2/config"
import (
"os"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package config // import "miniflux.app/config"
package config // import "miniflux.app/v2/config"
import (
"crypto/rand"
@ -10,7 +10,7 @@ import (
"strings"
"time"
"miniflux.app/version"
"miniflux.app/v2/version"
)
const (

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package config // import "miniflux.app/config"
package config // import "miniflux.app/v2/config"
import (
"bufio"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package config // import "miniflux.app/config"
package config // import "miniflux.app/v2/config"
import (
"testing"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package crypto // import "miniflux.app/crypto"
package crypto // import "miniflux.app/v2/crypto"
import (
"crypto/rand"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package database // import "miniflux.app/database"
package database // import "miniflux.app/v2/database"
import (
"database/sql"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package database // import "miniflux.app/database"
package database // import "miniflux.app/v2/database"
import (
"database/sql"

View file

@ -1,12 +1,12 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package errors // import "miniflux.app/errors"
package errors // import "miniflux.app/v2/errors"
import (
"fmt"
"miniflux.app/locale"
"miniflux.app/v2/locale"
)
// LocalizedError represents an error than could be translated to another language.

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package fever // import "miniflux.app/fever"
package fever // import "miniflux.app/v2/fever"
import (
"net/http"
@ -9,13 +9,13 @@ import (
"strings"
"time"
"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/integration"
"miniflux.app/logger"
"miniflux.app/model"
"miniflux.app/proxy"
"miniflux.app/storage"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/integration"
"miniflux.app/v2/logger"
"miniflux.app/v2/model"
"miniflux.app/v2/proxy"
"miniflux.app/v2/storage"
"github.com/gorilla/mux"
)

View file

@ -1,16 +1,16 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package fever // import "miniflux.app/fever"
package fever // import "miniflux.app/v2/fever"
import (
"context"
"net/http"
"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/logger"
"miniflux.app/storage"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/logger"
"miniflux.app/v2/storage"
)
type middleware struct {

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package fever // import "miniflux.app/fever"
package fever // import "miniflux.app/v2/fever"
import (
"time"

2
go.mod
View file

@ -1,4 +1,4 @@
module miniflux.app
module miniflux.app/v2
// +heroku goVersion go1.21

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package googlereader // import "miniflux.app/googlereader"
package googlereader // import "miniflux.app/v2/googlereader"
import (
"errors"
@ -13,19 +13,19 @@ import (
"time"
"github.com/gorilla/mux"
"miniflux.app/config"
"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/http/route"
"miniflux.app/integration"
"miniflux.app/logger"
"miniflux.app/model"
"miniflux.app/proxy"
mff "miniflux.app/reader/handler"
mfs "miniflux.app/reader/subscription"
"miniflux.app/storage"
"miniflux.app/url"
"miniflux.app/validator"
"miniflux.app/v2/config"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/http/route"
"miniflux.app/v2/integration"
"miniflux.app/v2/logger"
"miniflux.app/v2/model"
"miniflux.app/v2/proxy"
mff "miniflux.app/v2/reader/handler"
mfs "miniflux.app/v2/reader/subscription"
"miniflux.app/v2/storage"
"miniflux.app/v2/url"
"miniflux.app/v2/validator"
)
type handler struct {

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package googlereader // import "miniflux.app/googlereader"
package googlereader // import "miniflux.app/v2/googlereader"
import (
"context"
@ -11,12 +11,12 @@ import (
"net/http"
"strings"
"miniflux.app/http/request"
"miniflux.app/http/response"
"miniflux.app/http/response/json"
"miniflux.app/logger"
"miniflux.app/model"
"miniflux.app/storage"
"miniflux.app/v2/http/request"
"miniflux.app/v2/http/response"
"miniflux.app/v2/http/response/json"
"miniflux.app/v2/logger"
"miniflux.app/v2/model"
"miniflux.app/v2/storage"
)
type middleware struct {

View file

@ -1,14 +1,14 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package googlereader // import "miniflux.app/googlereader"
package googlereader // import "miniflux.app/v2/googlereader"
import (
"fmt"
"net/http"
"miniflux.app/http/response"
"miniflux.app/logger"
"miniflux.app/v2/http/response"
"miniflux.app/v2/logger"
)
type login struct {

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package client // import "miniflux.app/http/client"
package client // import "miniflux.app/v2/http/client"
import (
"bytes"
@ -16,10 +16,10 @@ import (
"strings"
"time"
"miniflux.app/config"
"miniflux.app/errors"
"miniflux.app/logger"
"miniflux.app/timer"
"miniflux.app/v2/config"
"miniflux.app/v2/errors"
"miniflux.app/v2/logger"
"miniflux.app/v2/timer"
)
const (

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package client // import "miniflux.app/http/client"
package client // import "miniflux.app/v2/http/client"
import (
"fmt"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package client // import "miniflux.app/http/client"
package client // import "miniflux.app/v2/http/client"
import (
"bytes"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package client // import "miniflux.app/http/client"
package client // import "miniflux.app/v2/http/client"
import (
"bytes"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package cookie // import "miniflux.app/http/cookie"
package cookie // import "miniflux.app/v2/http/cookie"
import (
"net/http"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package request // import "miniflux.app/http/request"
package request // import "miniflux.app/v2/http/request"
import (
"net"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package request // import "miniflux.app/http/request"
package request // import "miniflux.app/v2/http/request"
import (
"net/http"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package request // import "miniflux.app/http/request"
package request // import "miniflux.app/v2/http/request"
import "net/http"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package request // import "miniflux.app/http/request"
package request // import "miniflux.app/v2/http/request"
import (
"context"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package request // import "miniflux.app/http/request"
package request // import "miniflux.app/v2/http/request"
import "net/http"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package request // import "miniflux.app/http/request"
package request // import "miniflux.app/v2/http/request"
import (
"net/http"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package request // import "miniflux.app/http/request"
package request // import "miniflux.app/v2/http/request"
import (
"net/http"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package request // import "miniflux.app/http/request"
package request // import "miniflux.app/v2/http/request"
import (
"net/http"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package response // import "miniflux.app/http/response"
package response // import "miniflux.app/v2/http/response"
import (
"compress/flate"
@ -12,7 +12,7 @@ import (
"strings"
"time"
"miniflux.app/logger"
"miniflux.app/v2/logger"
)
const compressionThreshold = 1024

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package response // import "miniflux.app/http/response"
package response // import "miniflux.app/v2/http/response"
import (
"errors"

View file

@ -1,13 +1,13 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package html // import "miniflux.app/http/response/html"
package html // import "miniflux.app/v2/http/response/html"
import (
"net/http"
"miniflux.app/http/response"
"miniflux.app/logger"
"miniflux.app/v2/http/response"
"miniflux.app/v2/logger"
)
// OK creates a new HTML response with a 200 status code.

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package html // import "miniflux.app/http/response/html"
package html // import "miniflux.app/v2/http/response/html"
import (
"errors"

View file

@ -1,15 +1,15 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package json // import "miniflux.app/http/response/json"
package json // import "miniflux.app/v2/http/response/json"
import (
"encoding/json"
"errors"
"net/http"
"miniflux.app/http/response"
"miniflux.app/logger"
"miniflux.app/v2/http/response"
"miniflux.app/v2/logger"
)
const contentTypeHeader = `application/json`

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package json // import "miniflux.app/http/response/json"
package json // import "miniflux.app/v2/http/response/json"
import (
"errors"

View file

@ -1,12 +1,12 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package xml // import "miniflux.app/http/response/xml"
package xml // import "miniflux.app/v2/http/response/xml"
import (
"net/http"
"miniflux.app/http/response"
"miniflux.app/v2/http/response"
)
// OK writes a standard XML response with a status 200 OK.

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package xml // import "miniflux.app/http/response/xml"
package xml // import "miniflux.app/v2/http/response/xml"
import (
"net/http"

View file

@ -1,13 +1,13 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package route // import "miniflux.app/http/route"
package route // import "miniflux.app/v2/http/route"
import (
"strconv"
"github.com/gorilla/mux"
"miniflux.app/logger"
"miniflux.app/v2/logger"
)
// Path returns the defined route based on given arguments.

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package httpd // import "miniflux.app/http/server"
package httpd // import "miniflux.app/v2/http/server"
import (
"crypto/tls"
@ -12,16 +12,16 @@ import (
"strings"
"time"
"miniflux.app/api"
"miniflux.app/config"
"miniflux.app/fever"
"miniflux.app/googlereader"
"miniflux.app/http/request"
"miniflux.app/logger"
"miniflux.app/storage"
"miniflux.app/ui"
"miniflux.app/version"
"miniflux.app/worker"
"miniflux.app/v2/api"
"miniflux.app/v2/config"
"miniflux.app/v2/fever"
"miniflux.app/v2/googlereader"
"miniflux.app/v2/http/request"
"miniflux.app/v2/logger"
"miniflux.app/v2/storage"
"miniflux.app/v2/ui"
"miniflux.app/v2/version"
"miniflux.app/v2/worker"
"github.com/gorilla/mux"
"github.com/prometheus/client_golang/prometheus/promhttp"

View file

@ -1,15 +1,15 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package httpd // import "miniflux.app/http/server"
package httpd // import "miniflux.app/v2/http/server"
import (
"context"
"net/http"
"miniflux.app/config"
"miniflux.app/http/request"
"miniflux.app/logger"
"miniflux.app/v2/config"
"miniflux.app/v2/http/request"
"miniflux.app/v2/logger"
)
func middleware(next http.Handler) http.Handler {

View file

@ -9,8 +9,8 @@ import (
"strings"
"time"
"miniflux.app/http/client"
"miniflux.app/model"
"miniflux.app/v2/http/client"
"miniflux.app/v2/model"
)
// Client represents a Apprise client.

View file

@ -1,14 +1,14 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package espial // import "miniflux.app/integration/espial"
package espial // import "miniflux.app/v2/integration/espial"
import (
"fmt"
"net/url"
"path"
"miniflux.app/http/client"
"miniflux.app/v2/http/client"
)
// Document structure of an Espial document

View file

@ -1,13 +1,13 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package instapaper // import "miniflux.app/integration/instapaper"
package instapaper // import "miniflux.app/v2/integration/instapaper"
import (
"fmt"
"net/url"
"miniflux.app/http/client"
"miniflux.app/v2/http/client"
)
// Client represents an Instapaper client.

View file

@ -1,24 +1,24 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package integration // import "miniflux.app/integration"
package integration // import "miniflux.app/v2/integration"
import (
"miniflux.app/config"
"miniflux.app/integration/apprise"
"miniflux.app/integration/espial"
"miniflux.app/integration/instapaper"
"miniflux.app/integration/linkding"
"miniflux.app/integration/matrixbot"
"miniflux.app/integration/notion"
"miniflux.app/integration/nunuxkeeper"
"miniflux.app/integration/pinboard"
"miniflux.app/integration/pocket"
"miniflux.app/integration/readwise"
"miniflux.app/integration/telegrambot"
"miniflux.app/integration/wallabag"
"miniflux.app/logger"
"miniflux.app/model"
"miniflux.app/v2/config"
"miniflux.app/v2/integration/apprise"
"miniflux.app/v2/integration/espial"
"miniflux.app/v2/integration/instapaper"
"miniflux.app/v2/integration/linkding"
"miniflux.app/v2/integration/matrixbot"
"miniflux.app/v2/integration/notion"
"miniflux.app/v2/integration/nunuxkeeper"
"miniflux.app/v2/integration/pinboard"
"miniflux.app/v2/integration/pocket"
"miniflux.app/v2/integration/readwise"
"miniflux.app/v2/integration/telegrambot"
"miniflux.app/v2/integration/wallabag"
"miniflux.app/v2/logger"
"miniflux.app/v2/model"
)
// SendEntry sends the entry to third-party providers when the user click on "Save".

View file

@ -1,14 +1,14 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package linkding // import "miniflux.app/integration/linkding"
package linkding // import "miniflux.app/v2/integration/linkding"
import (
"fmt"
"net/url"
"strings"
"miniflux.app/http/client"
"miniflux.app/v2/http/client"
)
// Document structure of a Linkding document

View file

@ -1,13 +1,13 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package matrixbot // import "miniflux.app/integration/matrixbot"
package matrixbot // import "miniflux.app/v2/integration/matrixbot"
import (
"fmt"
"miniflux.app/logger"
"miniflux.app/model"
"miniflux.app/v2/logger"
"miniflux.app/v2/model"
"github.com/matrix-org/gomatrix"
)

View file

@ -6,7 +6,7 @@ package notion
import (
"fmt"
"miniflux.app/http/client"
"miniflux.app/v2/http/client"
)
// Client represents a Notion client.

View file

@ -1,14 +1,14 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package nunuxkeeper // import "miniflux.app/integration/nunuxkeeper"
package nunuxkeeper // import "miniflux.app/v2/integration/nunuxkeeper"
import (
"fmt"
"net/url"
"path"
"miniflux.app/http/client"
"miniflux.app/v2/http/client"
)
// Document structure of a Nununx Keeper document

View file

@ -1,13 +1,13 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package pinboard // import "miniflux.app/integration/pinboard"
package pinboard // import "miniflux.app/v2/integration/pinboard"
import (
"fmt"
"net/url"
"miniflux.app/http/client"
"miniflux.app/v2/http/client"
)
// Client represents a Pinboard client.

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package pocket // import "miniflux.app/integration/pocket"
package pocket // import "miniflux.app/v2/integration/pocket"
import (
"errors"
@ -9,7 +9,7 @@ import (
"io"
"net/url"
"miniflux.app/http/client"
"miniflux.app/v2/http/client"
)
// Connector manages the authorization flow with Pocket to get a personal access token.

View file

@ -1,12 +1,12 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package pocket // import "miniflux.app/integration/pocket"
package pocket // import "miniflux.app/v2/integration/pocket"
import (
"fmt"
"miniflux.app/http/client"
"miniflux.app/v2/http/client"
)
// Client represents a Pocket client.

View file

@ -3,13 +3,13 @@
// Readwise Reader API documentation: https://readwise.io/reader_api
package readwise // import "miniflux.app/integration/readwise"
package readwise // import "miniflux.app/v2/integration/readwise"
import (
"fmt"
"net/url"
"miniflux.app/http/client"
"miniflux.app/v2/http/client"
)
// Document structure of a Readwise Reader document

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package telegrambot // import "miniflux.app/integration/telegrambot"
package telegrambot // import "miniflux.app/v2/integration/telegrambot"
import (
"bytes"
@ -10,7 +10,7 @@ import (
"strconv"
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api"
"miniflux.app/model"
"miniflux.app/v2/model"
)
// PushEntry pushes entry to telegram chat using integration settings provided

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package wallabag // import "miniflux.app/integration/wallabag"
package wallabag // import "miniflux.app/v2/integration/wallabag"
import (
"encoding/json"
@ -9,7 +9,7 @@ import (
"io"
"net/url"
"miniflux.app/http/client"
"miniflux.app/v2/http/client"
)
// Client represents a Wallabag client.

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package locale // import "miniflux.app/locale"
package locale // import "miniflux.app/v2/locale"
import (
"embed"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package locale // import "miniflux.app/locale"
package locale // import "miniflux.app/v2/locale"
import "testing"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package locale // import "miniflux.app/locale"
package locale // import "miniflux.app/v2/locale"
// AvailableLanguages returns the list of available languages.
func AvailableLanguages() map[string]string {

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package locale // import "miniflux.app/locale"
package locale // import "miniflux.app/v2/locale"
import "testing"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package locale // import "miniflux.app/locale"
package locale // import "miniflux.app/v2/locale"
type pluralFormFunc func(n int) int

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package locale // import "miniflux.app/locale"
package locale // import "miniflux.app/v2/locale"
import "testing"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package locale // import "miniflux.app/locale"
package locale // import "miniflux.app/v2/locale"
import "fmt"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package locale // import "miniflux.app/locale"
package locale // import "miniflux.app/v2/locale"
import "testing"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package logger // import "miniflux.app/logger"
package logger // import "miniflux.app/v2/logger"
import (
"fmt"

View file

@ -1,10 +1,10 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package main // import "miniflux.app"
package main // import "miniflux.app/v2"
import (
"miniflux.app/cli"
"miniflux.app/v2/cli"
)
func main() {

View file

@ -1,13 +1,13 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package metric // import "miniflux.app/metric"
package metric // import "miniflux.app/v2/metric"
import (
"time"
"miniflux.app/logger"
"miniflux.app/storage"
"miniflux.app/v2/logger"
"miniflux.app/v2/storage"
"github.com/prometheus/client_golang/prometheus"
)

View file

@ -1,12 +1,12 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package model // import "miniflux.app/model"
package model // import "miniflux.app/v2/model"
import (
"time"
"miniflux.app/crypto"
"miniflux.app/v2/crypto"
)
// APIKey represents an application API key.

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package model // import "miniflux.app/model"
package model // import "miniflux.app/v2/model"
import (
"database/sql/driver"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package model // import "miniflux.app/model"
package model // import "miniflux.app/v2/model"
func CategoriesSortingOptions() map[string]string {
return map[string]string{

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package model // import "miniflux.app/model"
package model // import "miniflux.app/v2/model"
import "fmt"

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package model // import "miniflux.app/model"
package model // import "miniflux.app/v2/model"
import "strings"
// Enclosure represents an attachment.

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package model // import "miniflux.app/model"
package model // import "miniflux.app/v2/model"
import (
"time"

View file

@ -1,15 +1,15 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package model // import "miniflux.app/model"
package model // import "miniflux.app/v2/model"
import (
"fmt"
"math"
"time"
"miniflux.app/config"
"miniflux.app/http/client"
"miniflux.app/v2/config"
"miniflux.app/v2/http/client"
)
// List of supported schedulers.

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package model // import "miniflux.app/model"
package model // import "miniflux.app/v2/model"
import (
"fmt"
@ -9,8 +9,8 @@ import (
"testing"
"time"
"miniflux.app/config"
"miniflux.app/http/client"
"miniflux.app/v2/config"
"miniflux.app/v2/http/client"
)
func TestFeedWithResponse(t *testing.T) {

Some files were not shown because too many files have changed in this diff Show more