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)
|
VERSION := $(shell git describe --tags --abbrev=0)
|
||||||
COMMIT := $(shell git rev-parse --short HEAD)
|
COMMIT := $(shell git rev-parse --short HEAD)
|
||||||
BUILD_DATE := `date +%FT%T%z`
|
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/)
|
PKG_LIST := $(shell go list ./... | grep -v /vendor/)
|
||||||
DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
|
DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
|
||||||
DEB_IMG_ARCH := amd64
|
DEB_IMG_ARCH := amd64
|
||||||
|
@ -122,7 +122,7 @@ integration-test:
|
||||||
./miniflux-test >/tmp/miniflux.log 2>&1 & echo "$$!" > "/tmp/miniflux.pid"
|
./miniflux-test >/tmp/miniflux.log 2>&1 & echo "$$!" > "/tmp/miniflux.pid"
|
||||||
|
|
||||||
while ! nc -z localhost 8080; do sleep 1; done
|
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:
|
clean-integration-test:
|
||||||
@ kill -9 `cat /tmp/miniflux.pid`
|
@ kill -9 `cat /tmp/miniflux.pid`
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package api // import "miniflux.app/api"
|
package api // import "miniflux.app/v2/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/storage"
|
"miniflux.app/v2/storage"
|
||||||
"miniflux.app/worker"
|
"miniflux.app/v2/worker"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package api // import "miniflux.app/api"
|
package api // import "miniflux.app/v2/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
json_parser "encoding/json"
|
json_parser "encoding/json"
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/http/request"
|
"miniflux.app/v2/http/request"
|
||||||
"miniflux.app/http/response/json"
|
"miniflux.app/v2/http/response/json"
|
||||||
"miniflux.app/model"
|
"miniflux.app/v2/model"
|
||||||
"miniflux.app/validator"
|
"miniflux.app/v2/validator"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *handler) createCategory(w http.ResponseWriter, r *http.Request) {
|
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-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package api // import "miniflux.app/api"
|
package api // import "miniflux.app/v2/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
json_parser "encoding/json"
|
json_parser "encoding/json"
|
||||||
|
@ -11,16 +11,16 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/config"
|
"miniflux.app/v2/config"
|
||||||
"miniflux.app/http/request"
|
"miniflux.app/v2/http/request"
|
||||||
"miniflux.app/http/response/json"
|
"miniflux.app/v2/http/response/json"
|
||||||
"miniflux.app/integration"
|
"miniflux.app/v2/integration"
|
||||||
"miniflux.app/model"
|
"miniflux.app/v2/model"
|
||||||
"miniflux.app/proxy"
|
"miniflux.app/v2/proxy"
|
||||||
"miniflux.app/reader/processor"
|
"miniflux.app/v2/reader/processor"
|
||||||
"miniflux.app/storage"
|
"miniflux.app/v2/storage"
|
||||||
"miniflux.app/url"
|
"miniflux.app/v2/url"
|
||||||
"miniflux.app/validator"
|
"miniflux.app/v2/validator"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *handler) getEntryFromBuilder(w http.ResponseWriter, r *http.Request, b *storage.EntryQueryBuilder) {
|
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-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package api // import "miniflux.app/api"
|
package api // import "miniflux.app/v2/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
json_parser "encoding/json"
|
json_parser "encoding/json"
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/http/request"
|
"miniflux.app/v2/http/request"
|
||||||
"miniflux.app/http/response/json"
|
"miniflux.app/v2/http/response/json"
|
||||||
"miniflux.app/model"
|
"miniflux.app/v2/model"
|
||||||
feedHandler "miniflux.app/reader/handler"
|
feedHandler "miniflux.app/v2/reader/handler"
|
||||||
"miniflux.app/validator"
|
"miniflux.app/v2/validator"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *handler) createFeed(w http.ResponseWriter, r *http.Request) {
|
func (h *handler) createFeed(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package api // import "miniflux.app/api"
|
package api // import "miniflux.app/v2/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/http/request"
|
"miniflux.app/v2/http/request"
|
||||||
"miniflux.app/http/response/json"
|
"miniflux.app/v2/http/response/json"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *handler) feedIcon(w http.ResponseWriter, r *http.Request) {
|
func (h *handler) feedIcon(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package api // import "miniflux.app/api"
|
package api // import "miniflux.app/v2/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/http/request"
|
"miniflux.app/v2/http/request"
|
||||||
"miniflux.app/http/response/json"
|
"miniflux.app/v2/http/response/json"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
"miniflux.app/storage"
|
"miniflux.app/v2/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
type middleware struct {
|
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-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package api // import "miniflux.app/api"
|
package api // import "miniflux.app/v2/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/http/request"
|
"miniflux.app/v2/http/request"
|
||||||
"miniflux.app/http/response/json"
|
"miniflux.app/v2/http/response/json"
|
||||||
"miniflux.app/http/response/xml"
|
"miniflux.app/v2/http/response/xml"
|
||||||
"miniflux.app/reader/opml"
|
"miniflux.app/v2/reader/opml"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *handler) exportFeeds(w http.ResponseWriter, r *http.Request) {
|
func (h *handler) exportFeeds(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package api // import "miniflux.app/api"
|
package api // import "miniflux.app/v2/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"miniflux.app/model"
|
"miniflux.app/v2/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type feedIconResponse struct {
|
type feedIconResponse struct {
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package api // import "miniflux.app/api"
|
package api // import "miniflux.app/v2/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
json_parser "encoding/json"
|
json_parser "encoding/json"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/http/response/json"
|
"miniflux.app/v2/http/response/json"
|
||||||
"miniflux.app/model"
|
"miniflux.app/v2/model"
|
||||||
"miniflux.app/reader/subscription"
|
"miniflux.app/v2/reader/subscription"
|
||||||
"miniflux.app/validator"
|
"miniflux.app/v2/validator"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *handler) discoverSubscriptions(w http.ResponseWriter, r *http.Request) {
|
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-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package api // import "miniflux.app/api"
|
package api // import "miniflux.app/v2/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
json_parser "encoding/json"
|
json_parser "encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/http/request"
|
"miniflux.app/v2/http/request"
|
||||||
"miniflux.app/http/response/json"
|
"miniflux.app/v2/http/response/json"
|
||||||
"miniflux.app/model"
|
"miniflux.app/v2/model"
|
||||||
"miniflux.app/validator"
|
"miniflux.app/v2/validator"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *handler) currentUser(w http.ResponseWriter, r *http.Request) {
|
func (h *handler) currentUser(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package cli // import "miniflux.app/cli"
|
package cli // import "miniflux.app/v2/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package cli // import "miniflux.app/cli"
|
package cli // import "miniflux.app/v2/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/config"
|
"miniflux.app/v2/config"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
"miniflux.app/metric"
|
"miniflux.app/v2/metric"
|
||||||
"miniflux.app/model"
|
"miniflux.app/v2/model"
|
||||||
"miniflux.app/storage"
|
"miniflux.app/v2/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
func runCleanupTasks(store *storage.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-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package cli // import "miniflux.app/cli"
|
package cli // import "miniflux.app/v2/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"miniflux.app/config"
|
"miniflux.app/v2/config"
|
||||||
"miniflux.app/database"
|
"miniflux.app/v2/database"
|
||||||
"miniflux.app/locale"
|
"miniflux.app/v2/locale"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
"miniflux.app/storage"
|
"miniflux.app/v2/storage"
|
||||||
"miniflux.app/ui/static"
|
"miniflux.app/v2/ui/static"
|
||||||
"miniflux.app/version"
|
"miniflux.app/v2/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package cli // import "miniflux.app/cli"
|
package cli // import "miniflux.app/v2/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"miniflux.app/config"
|
"miniflux.app/v2/config"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
"miniflux.app/model"
|
"miniflux.app/v2/model"
|
||||||
"miniflux.app/storage"
|
"miniflux.app/v2/storage"
|
||||||
"miniflux.app/validator"
|
"miniflux.app/v2/validator"
|
||||||
)
|
)
|
||||||
|
|
||||||
func createAdmin(store *storage.Storage) {
|
func createAdmin(store *storage.Storage) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package cli // import "miniflux.app/cli"
|
package cli // import "miniflux.app/v2/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
@ -11,13 +11,13 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/config"
|
"miniflux.app/v2/config"
|
||||||
httpd "miniflux.app/http/server"
|
httpd "miniflux.app/v2/http/server"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
"miniflux.app/metric"
|
"miniflux.app/v2/metric"
|
||||||
"miniflux.app/storage"
|
"miniflux.app/v2/storage"
|
||||||
"miniflux.app/systemd"
|
"miniflux.app/v2/systemd"
|
||||||
"miniflux.app/worker"
|
"miniflux.app/v2/worker"
|
||||||
)
|
)
|
||||||
|
|
||||||
func startDaemon(store *storage.Storage) {
|
func startDaemon(store *storage.Storage) {
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package cli // import "miniflux.app/cli"
|
package cli // import "miniflux.app/v2/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"miniflux.app/storage"
|
"miniflux.app/v2/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
func flushSessions(store *storage.Storage) {
|
func flushSessions(store *storage.Storage) {
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package cli // import "miniflux.app/cli"
|
package cli // import "miniflux.app/v2/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/config"
|
"miniflux.app/v2/config"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
func doHealthCheck(healthCheckEndpoint string) {
|
func doHealthCheck(healthCheckEndpoint string) {
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package cli // import "miniflux.app/cli"
|
package cli // import "miniflux.app/v2/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"miniflux.app/version"
|
"miniflux.app/v2/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
func info() {
|
func info() {
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package cli // import "miniflux.app/cli"
|
package cli // import "miniflux.app/v2/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/config"
|
"miniflux.app/v2/config"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
"miniflux.app/model"
|
"miniflux.app/v2/model"
|
||||||
feedHandler "miniflux.app/reader/handler"
|
feedHandler "miniflux.app/v2/reader/handler"
|
||||||
"miniflux.app/storage"
|
"miniflux.app/v2/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
func refreshFeeds(store *storage.Storage) {
|
func refreshFeeds(store *storage.Storage) {
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package cli // import "miniflux.app/cli"
|
package cli // import "miniflux.app/v2/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"miniflux.app/model"
|
"miniflux.app/v2/model"
|
||||||
"miniflux.app/storage"
|
"miniflux.app/v2/storage"
|
||||||
"miniflux.app/validator"
|
"miniflux.app/v2/validator"
|
||||||
)
|
)
|
||||||
|
|
||||||
func resetPassword(store *storage.Storage) {
|
func resetPassword(store *storage.Storage) {
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package cli // import "miniflux.app/cli"
|
package cli // import "miniflux.app/v2/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/config"
|
"miniflux.app/v2/config"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
"miniflux.app/storage"
|
"miniflux.app/v2/storage"
|
||||||
"miniflux.app/worker"
|
"miniflux.app/v2/worker"
|
||||||
)
|
)
|
||||||
|
|
||||||
func runScheduler(store *storage.Storage, pool *worker.Pool) {
|
func runScheduler(store *storage.Storage, pool *worker.Pool) {
|
||||||
|
|
|
@ -22,7 +22,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
miniflux "miniflux.app/client"
|
miniflux "miniflux.app/v2/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package client // import "miniflux.app/client"
|
package client // import "miniflux.app/v2/client"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"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:
|
This code snippet fetch the list of users:
|
||||||
|
|
||||||
import (
|
import (
|
||||||
miniflux "miniflux.app/client"
|
miniflux "miniflux.app/v2/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
client := miniflux.New("https://api.example.org", "admin", "secret")
|
client := miniflux.New("https://api.example.org", "admin", "secret")
|
||||||
|
@ -29,4 +29,4 @@ This one discover subscriptions on a website:
|
||||||
}
|
}
|
||||||
fmt.Println(subscriptions)
|
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-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package client // import "miniflux.app/client"
|
package client // import "miniflux.app/v2/client"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package client // import "miniflux.app/client"
|
package client // import "miniflux.app/v2/client"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package config // import "miniflux.app/config"
|
package config // import "miniflux.app/v2/config"
|
||||||
|
|
||||||
// Opts holds parsed configuration options.
|
// Opts holds parsed configuration options.
|
||||||
var Opts *Options
|
var Opts *Options
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package config // import "miniflux.app/config"
|
package config // import "miniflux.app/v2/config"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package config // import "miniflux.app/config"
|
package config // import "miniflux.app/v2/config"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
|
@ -10,7 +10,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/version"
|
"miniflux.app/v2/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package config // import "miniflux.app/config"
|
package config // import "miniflux.app/v2/config"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package config // import "miniflux.app/config"
|
package config // import "miniflux.app/v2/config"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package crypto // import "miniflux.app/crypto"
|
package crypto // import "miniflux.app/v2/crypto"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package database // import "miniflux.app/database"
|
package database // import "miniflux.app/v2/database"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package database // import "miniflux.app/database"
|
package database // import "miniflux.app/v2/database"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package errors // import "miniflux.app/errors"
|
package errors // import "miniflux.app/v2/errors"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"miniflux.app/locale"
|
"miniflux.app/v2/locale"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LocalizedError represents an error than could be translated to another language.
|
// 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-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package fever // import "miniflux.app/fever"
|
package fever // import "miniflux.app/v2/fever"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
@ -9,13 +9,13 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/http/request"
|
"miniflux.app/v2/http/request"
|
||||||
"miniflux.app/http/response/json"
|
"miniflux.app/v2/http/response/json"
|
||||||
"miniflux.app/integration"
|
"miniflux.app/v2/integration"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
"miniflux.app/model"
|
"miniflux.app/v2/model"
|
||||||
"miniflux.app/proxy"
|
"miniflux.app/v2/proxy"
|
||||||
"miniflux.app/storage"
|
"miniflux.app/v2/storage"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package fever // import "miniflux.app/fever"
|
package fever // import "miniflux.app/v2/fever"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/http/request"
|
"miniflux.app/v2/http/request"
|
||||||
"miniflux.app/http/response/json"
|
"miniflux.app/v2/http/response/json"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
"miniflux.app/storage"
|
"miniflux.app/v2/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
type middleware struct {
|
type middleware struct {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package fever // import "miniflux.app/fever"
|
package fever // import "miniflux.app/v2/fever"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
||||||
module miniflux.app
|
module miniflux.app/v2
|
||||||
|
|
||||||
// +heroku goVersion go1.21
|
// +heroku goVersion go1.21
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package googlereader // import "miniflux.app/googlereader"
|
package googlereader // import "miniflux.app/v2/googlereader"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
@ -13,19 +13,19 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"miniflux.app/config"
|
"miniflux.app/v2/config"
|
||||||
"miniflux.app/http/request"
|
"miniflux.app/v2/http/request"
|
||||||
"miniflux.app/http/response/json"
|
"miniflux.app/v2/http/response/json"
|
||||||
"miniflux.app/http/route"
|
"miniflux.app/v2/http/route"
|
||||||
"miniflux.app/integration"
|
"miniflux.app/v2/integration"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
"miniflux.app/model"
|
"miniflux.app/v2/model"
|
||||||
"miniflux.app/proxy"
|
"miniflux.app/v2/proxy"
|
||||||
mff "miniflux.app/reader/handler"
|
mff "miniflux.app/v2/reader/handler"
|
||||||
mfs "miniflux.app/reader/subscription"
|
mfs "miniflux.app/v2/reader/subscription"
|
||||||
"miniflux.app/storage"
|
"miniflux.app/v2/storage"
|
||||||
"miniflux.app/url"
|
"miniflux.app/v2/url"
|
||||||
"miniflux.app/validator"
|
"miniflux.app/v2/validator"
|
||||||
)
|
)
|
||||||
|
|
||||||
type handler struct {
|
type handler struct {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package googlereader // import "miniflux.app/googlereader"
|
package googlereader // import "miniflux.app/v2/googlereader"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
@ -11,12 +11,12 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"miniflux.app/http/request"
|
"miniflux.app/v2/http/request"
|
||||||
"miniflux.app/http/response"
|
"miniflux.app/v2/http/response"
|
||||||
"miniflux.app/http/response/json"
|
"miniflux.app/v2/http/response/json"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
"miniflux.app/model"
|
"miniflux.app/v2/model"
|
||||||
"miniflux.app/storage"
|
"miniflux.app/v2/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
type middleware struct {
|
type middleware struct {
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package googlereader // import "miniflux.app/googlereader"
|
package googlereader // import "miniflux.app/v2/googlereader"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/http/response"
|
"miniflux.app/v2/http/response"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
type login struct {
|
type login struct {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package client // import "miniflux.app/http/client"
|
package client // import "miniflux.app/v2/http/client"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
@ -16,10 +16,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/config"
|
"miniflux.app/v2/config"
|
||||||
"miniflux.app/errors"
|
"miniflux.app/v2/errors"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
"miniflux.app/timer"
|
"miniflux.app/v2/timer"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package client // import "miniflux.app/http/client"
|
package client // import "miniflux.app/v2/http/client"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package client // import "miniflux.app/http/client"
|
package client // import "miniflux.app/v2/http/client"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package client // import "miniflux.app/http/client"
|
package client // import "miniflux.app/v2/http/client"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package cookie // import "miniflux.app/http/cookie"
|
package cookie // import "miniflux.app/v2/http/cookie"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package request // import "miniflux.app/http/request"
|
package request // import "miniflux.app/v2/http/request"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net"
|
"net"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package request // import "miniflux.app/http/request"
|
package request // import "miniflux.app/v2/http/request"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package request // import "miniflux.app/http/request"
|
package request // import "miniflux.app/v2/http/request"
|
||||||
|
|
||||||
import "net/http"
|
import "net/http"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package request // import "miniflux.app/http/request"
|
package request // import "miniflux.app/v2/http/request"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package request // import "miniflux.app/http/request"
|
package request // import "miniflux.app/v2/http/request"
|
||||||
|
|
||||||
import "net/http"
|
import "net/http"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package request // import "miniflux.app/http/request"
|
package request // import "miniflux.app/v2/http/request"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package request // import "miniflux.app/http/request"
|
package request // import "miniflux.app/v2/http/request"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package request // import "miniflux.app/http/request"
|
package request // import "miniflux.app/v2/http/request"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package response // import "miniflux.app/http/response"
|
package response // import "miniflux.app/v2/http/response"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"compress/flate"
|
"compress/flate"
|
||||||
|
@ -12,7 +12,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
const compressionThreshold = 1024
|
const compressionThreshold = 1024
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package response // import "miniflux.app/http/response"
|
package response // import "miniflux.app/v2/http/response"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package html // import "miniflux.app/http/response/html"
|
package html // import "miniflux.app/v2/http/response/html"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/http/response"
|
"miniflux.app/v2/http/response"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// OK creates a new HTML response with a 200 status code.
|
// 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-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package html // import "miniflux.app/http/response/html"
|
package html // import "miniflux.app/v2/http/response/html"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package json // import "miniflux.app/http/response/json"
|
package json // import "miniflux.app/v2/http/response/json"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/http/response"
|
"miniflux.app/v2/http/response"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
const contentTypeHeader = `application/json`
|
const contentTypeHeader = `application/json`
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package json // import "miniflux.app/http/response/json"
|
package json // import "miniflux.app/v2/http/response/json"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package xml // import "miniflux.app/http/response/xml"
|
package xml // import "miniflux.app/v2/http/response/xml"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/http/response"
|
"miniflux.app/v2/http/response"
|
||||||
)
|
)
|
||||||
|
|
||||||
// OK writes a standard XML response with a status 200 OK.
|
// 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-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package xml // import "miniflux.app/http/response/xml"
|
package xml // import "miniflux.app/v2/http/response/xml"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package route // import "miniflux.app/http/route"
|
package route // import "miniflux.app/v2/http/route"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Path returns the defined route based on given arguments.
|
// Path returns the defined route based on given arguments.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package httpd // import "miniflux.app/http/server"
|
package httpd // import "miniflux.app/v2/http/server"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
|
@ -12,16 +12,16 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/api"
|
"miniflux.app/v2/api"
|
||||||
"miniflux.app/config"
|
"miniflux.app/v2/config"
|
||||||
"miniflux.app/fever"
|
"miniflux.app/v2/fever"
|
||||||
"miniflux.app/googlereader"
|
"miniflux.app/v2/googlereader"
|
||||||
"miniflux.app/http/request"
|
"miniflux.app/v2/http/request"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
"miniflux.app/storage"
|
"miniflux.app/v2/storage"
|
||||||
"miniflux.app/ui"
|
"miniflux.app/v2/ui"
|
||||||
"miniflux.app/version"
|
"miniflux.app/v2/version"
|
||||||
"miniflux.app/worker"
|
"miniflux.app/v2/worker"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package httpd // import "miniflux.app/http/server"
|
package httpd // import "miniflux.app/v2/http/server"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/config"
|
"miniflux.app/v2/config"
|
||||||
"miniflux.app/http/request"
|
"miniflux.app/v2/http/request"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
)
|
)
|
||||||
|
|
||||||
func middleware(next http.Handler) http.Handler {
|
func middleware(next http.Handler) http.Handler {
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/http/client"
|
"miniflux.app/v2/http/client"
|
||||||
"miniflux.app/model"
|
"miniflux.app/v2/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Client represents a Apprise client.
|
// Client represents a Apprise client.
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package espial // import "miniflux.app/integration/espial"
|
package espial // import "miniflux.app/v2/integration/espial"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/url"
|
"net/url"
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
"miniflux.app/http/client"
|
"miniflux.app/v2/http/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Document structure of an Espial document
|
// Document structure of an Espial document
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package instapaper // import "miniflux.app/integration/instapaper"
|
package instapaper // import "miniflux.app/v2/integration/instapaper"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"miniflux.app/http/client"
|
"miniflux.app/v2/http/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Client represents an Instapaper client.
|
// Client represents an Instapaper client.
|
||||||
|
|
|
@ -1,24 +1,24 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package integration // import "miniflux.app/integration"
|
package integration // import "miniflux.app/v2/integration"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"miniflux.app/config"
|
"miniflux.app/v2/config"
|
||||||
"miniflux.app/integration/apprise"
|
"miniflux.app/v2/integration/apprise"
|
||||||
"miniflux.app/integration/espial"
|
"miniflux.app/v2/integration/espial"
|
||||||
"miniflux.app/integration/instapaper"
|
"miniflux.app/v2/integration/instapaper"
|
||||||
"miniflux.app/integration/linkding"
|
"miniflux.app/v2/integration/linkding"
|
||||||
"miniflux.app/integration/matrixbot"
|
"miniflux.app/v2/integration/matrixbot"
|
||||||
"miniflux.app/integration/notion"
|
"miniflux.app/v2/integration/notion"
|
||||||
"miniflux.app/integration/nunuxkeeper"
|
"miniflux.app/v2/integration/nunuxkeeper"
|
||||||
"miniflux.app/integration/pinboard"
|
"miniflux.app/v2/integration/pinboard"
|
||||||
"miniflux.app/integration/pocket"
|
"miniflux.app/v2/integration/pocket"
|
||||||
"miniflux.app/integration/readwise"
|
"miniflux.app/v2/integration/readwise"
|
||||||
"miniflux.app/integration/telegrambot"
|
"miniflux.app/v2/integration/telegrambot"
|
||||||
"miniflux.app/integration/wallabag"
|
"miniflux.app/v2/integration/wallabag"
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
"miniflux.app/model"
|
"miniflux.app/v2/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SendEntry sends the entry to third-party providers when the user click on "Save".
|
// 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-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package linkding // import "miniflux.app/integration/linkding"
|
package linkding // import "miniflux.app/v2/integration/linkding"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"miniflux.app/http/client"
|
"miniflux.app/v2/http/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Document structure of a Linkding document
|
// Document structure of a Linkding document
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package matrixbot // import "miniflux.app/integration/matrixbot"
|
package matrixbot // import "miniflux.app/v2/integration/matrixbot"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
"miniflux.app/model"
|
"miniflux.app/v2/model"
|
||||||
|
|
||||||
"github.com/matrix-org/gomatrix"
|
"github.com/matrix-org/gomatrix"
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,7 +6,7 @@ package notion
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"miniflux.app/http/client"
|
"miniflux.app/v2/http/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Client represents a Notion client.
|
// Client represents a Notion client.
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package nunuxkeeper // import "miniflux.app/integration/nunuxkeeper"
|
package nunuxkeeper // import "miniflux.app/v2/integration/nunuxkeeper"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/url"
|
"net/url"
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
"miniflux.app/http/client"
|
"miniflux.app/v2/http/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Document structure of a Nununx Keeper document
|
// Document structure of a Nununx Keeper document
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package pinboard // import "miniflux.app/integration/pinboard"
|
package pinboard // import "miniflux.app/v2/integration/pinboard"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"miniflux.app/http/client"
|
"miniflux.app/v2/http/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Client represents a Pinboard client.
|
// Client represents a Pinboard client.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package pocket // import "miniflux.app/integration/pocket"
|
package pocket // import "miniflux.app/v2/integration/pocket"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
@ -9,7 +9,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"miniflux.app/http/client"
|
"miniflux.app/v2/http/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Connector manages the authorization flow with Pocket to get a personal access token.
|
// 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-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package pocket // import "miniflux.app/integration/pocket"
|
package pocket // import "miniflux.app/v2/integration/pocket"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"miniflux.app/http/client"
|
"miniflux.app/v2/http/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Client represents a Pocket client.
|
// Client represents a Pocket client.
|
||||||
|
|
|
@ -3,13 +3,13 @@
|
||||||
|
|
||||||
// Readwise Reader API documentation: https://readwise.io/reader_api
|
// 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 (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"miniflux.app/http/client"
|
"miniflux.app/v2/http/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Document structure of a Readwise Reader document
|
// Document structure of a Readwise Reader document
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package telegrambot // import "miniflux.app/integration/telegrambot"
|
package telegrambot // import "miniflux.app/v2/integration/telegrambot"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
@ -10,7 +10,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api"
|
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
|
// PushEntry pushes entry to telegram chat using integration settings provided
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package wallabag // import "miniflux.app/integration/wallabag"
|
package wallabag // import "miniflux.app/v2/integration/wallabag"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -9,7 +9,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"miniflux.app/http/client"
|
"miniflux.app/v2/http/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Client represents a Wallabag client.
|
// Client represents a Wallabag client.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package locale // import "miniflux.app/locale"
|
package locale // import "miniflux.app/v2/locale"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"embed"
|
"embed"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package locale // import "miniflux.app/locale"
|
package locale // import "miniflux.app/v2/locale"
|
||||||
|
|
||||||
import "testing"
|
import "testing"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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.
|
// AvailableLanguages returns the list of available languages.
|
||||||
func AvailableLanguages() map[string]string {
|
func AvailableLanguages() map[string]string {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package locale // import "miniflux.app/locale"
|
package locale // import "miniflux.app/v2/locale"
|
||||||
|
|
||||||
import "testing"
|
import "testing"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// 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
|
type pluralFormFunc func(n int) int
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package locale // import "miniflux.app/locale"
|
package locale // import "miniflux.app/v2/locale"
|
||||||
|
|
||||||
import "testing"
|
import "testing"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package locale // import "miniflux.app/locale"
|
package locale // import "miniflux.app/v2/locale"
|
||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package locale // import "miniflux.app/locale"
|
package locale // import "miniflux.app/v2/locale"
|
||||||
|
|
||||||
import "testing"
|
import "testing"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package logger // import "miniflux.app/logger"
|
package logger // import "miniflux.app/v2/logger"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
4
main.go
4
main.go
|
@ -1,10 +1,10 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package main // import "miniflux.app"
|
package main // import "miniflux.app/v2"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"miniflux.app/cli"
|
"miniflux.app/v2/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package metric // import "miniflux.app/metric"
|
package metric // import "miniflux.app/v2/metric"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/logger"
|
"miniflux.app/v2/logger"
|
||||||
"miniflux.app/storage"
|
"miniflux.app/v2/storage"
|
||||||
|
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
"github.com/prometheus/client_golang/prometheus"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package model // import "miniflux.app/model"
|
package model // import "miniflux.app/v2/model"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/crypto"
|
"miniflux.app/v2/crypto"
|
||||||
)
|
)
|
||||||
|
|
||||||
// APIKey represents an application API key.
|
// APIKey represents an application API key.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package model // import "miniflux.app/model"
|
package model // import "miniflux.app/v2/model"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"database/sql/driver"
|
"database/sql/driver"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package model // import "miniflux.app/model"
|
package model // import "miniflux.app/v2/model"
|
||||||
|
|
||||||
func CategoriesSortingOptions() map[string]string {
|
func CategoriesSortingOptions() map[string]string {
|
||||||
return map[string]string{
|
return map[string]string{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package model // import "miniflux.app/model"
|
package model // import "miniflux.app/v2/model"
|
||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package model // import "miniflux.app/model"
|
package model // import "miniflux.app/v2/model"
|
||||||
import "strings"
|
import "strings"
|
||||||
|
|
||||||
// Enclosure represents an attachment.
|
// Enclosure represents an attachment.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package model // import "miniflux.app/model"
|
package model // import "miniflux.app/v2/model"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package model // import "miniflux.app/model"
|
package model // import "miniflux.app/v2/model"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"math"
|
"math"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/config"
|
"miniflux.app/v2/config"
|
||||||
"miniflux.app/http/client"
|
"miniflux.app/v2/http/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
// List of supported schedulers.
|
// List of supported schedulers.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package model // import "miniflux.app/model"
|
package model // import "miniflux.app/v2/model"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -9,8 +9,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/config"
|
"miniflux.app/v2/config"
|
||||||
"miniflux.app/http/client"
|
"miniflux.app/v2/http/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestFeedWithResponse(t *testing.T) {
|
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