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:
parent
c980dfe434
commit
c234903255
315 changed files with 1134 additions and 1134 deletions
4
Makefile
4
Makefile
|
@ -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`
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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) {
|
||||
|
|
22
api/entry.go
22
api/entry.go
|
@ -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) {
|
||||
|
|
12
api/feed.go
12
api/feed.go
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 {
|
||||
|
|
10
api/opml.go
10
api/opml.go
|
@ -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) {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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) {
|
||||
|
|
10
api/user.go
10
api/user.go
|
@ -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) {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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) {
|
||||
|
|
16
cli/cli.go
16
cli/cli.go
|
@ -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 (
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -22,7 +22,7 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
|
||||
miniflux "miniflux.app/client"
|
||||
miniflux "miniflux.app/v2/client"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module miniflux.app
|
||||
module miniflux.app/v2
|
||||
|
||||
// +heroku goVersion go1.21
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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`
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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".
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -6,7 +6,7 @@ package notion
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"miniflux.app/http/client"
|
||||
"miniflux.app/v2/http/client"
|
||||
)
|
||||
|
||||
// Client represents a Notion client.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
4
main.go
4
main.go
|
@ -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() {
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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{
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue