Move internal packages to an internal folder
For reference: https://go.dev/doc/go1.4#internalpackages
This commit is contained in:
parent
c234903255
commit
168a870c02
433 changed files with 1121 additions and 1123 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/v2/version.Version=$(VERSION)' -X 'miniflux.app/v2/version.Commit=$(COMMIT)' -X 'miniflux.app/v2/version.BuildDate=$(BUILD_DATE)'"
|
LD_FLAGS := "-s -w -X 'miniflux.app/v2/internal/version.Version=$(VERSION)' -X 'miniflux.app/v2/internal/version.Commit=$(COMMIT)' -X 'miniflux.app/v2/internal/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/v2/tests
|
go test -v -tags=integration -count=1 miniflux.app/v2/internal/tests
|
||||||
|
|
||||||
clean-integration-test:
|
clean-integration-test:
|
||||||
@ kill -9 `cat /tmp/miniflux.pid`
|
@ kill -9 `cat /tmp/miniflux.pid`
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Miniflux API Client
|
Miniflux API Client
|
||||||
===================
|
===================
|
||||||
|
|
||||||
[![PkgGoDev](https://pkg.go.dev/badge/miniflux.app/client)](https://pkg.go.dev/miniflux.app/client)
|
[![PkgGoDev](https://pkg.go.dev/badge/miniflux.app/v2/client)](https://pkg.go.dev/miniflux.app/v2/client)
|
||||||
|
|
||||||
Client library for Miniflux REST API.
|
Client library for Miniflux REST API.
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ Installation
|
||||||
------------
|
------------
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go get -u miniflux.app/client
|
go get -u miniflux.app/v2/client
|
||||||
```
|
```
|
||||||
|
|
||||||
Example
|
Example
|
||||||
|
|
|
@ -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/v2/api"
|
package api // import "miniflux.app/v2/internal/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/v2/storage"
|
"miniflux.app/v2/internal/storage"
|
||||||
"miniflux.app/v2/worker"
|
"miniflux.app/v2/internal/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/v2/api"
|
package api // import "miniflux.app/v2/internal/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
json_parser "encoding/json"
|
json_parser "encoding/json"
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/v2/http/request"
|
"miniflux.app/v2/internal/http/request"
|
||||||
"miniflux.app/v2/http/response/json"
|
"miniflux.app/v2/internal/http/response/json"
|
||||||
"miniflux.app/v2/model"
|
"miniflux.app/v2/internal/model"
|
||||||
"miniflux.app/v2/validator"
|
"miniflux.app/v2/internal/validator"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *handler) createCategory(w http.ResponseWriter, r *http.Request) {
|
func (h *handler) createCategory(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 api // import "miniflux.app/v2/api"
|
package api // import "miniflux.app/v2/internal/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
json_parser "encoding/json"
|
json_parser "encoding/json"
|
||||||
|
@ -11,16 +11,16 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/v2/config"
|
"miniflux.app/v2/internal/config"
|
||||||
"miniflux.app/v2/http/request"
|
"miniflux.app/v2/internal/http/request"
|
||||||
"miniflux.app/v2/http/response/json"
|
"miniflux.app/v2/internal/http/response/json"
|
||||||
"miniflux.app/v2/integration"
|
"miniflux.app/v2/internal/integration"
|
||||||
"miniflux.app/v2/model"
|
"miniflux.app/v2/internal/model"
|
||||||
"miniflux.app/v2/proxy"
|
"miniflux.app/v2/internal/proxy"
|
||||||
"miniflux.app/v2/reader/processor"
|
"miniflux.app/v2/internal/reader/processor"
|
||||||
"miniflux.app/v2/storage"
|
"miniflux.app/v2/internal/storage"
|
||||||
"miniflux.app/v2/url"
|
"miniflux.app/v2/internal/url"
|
||||||
"miniflux.app/v2/validator"
|
"miniflux.app/v2/internal/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) {
|
|
@ -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/v2/api"
|
package api // import "miniflux.app/v2/internal/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
json_parser "encoding/json"
|
json_parser "encoding/json"
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/v2/http/request"
|
"miniflux.app/v2/internal/http/request"
|
||||||
"miniflux.app/v2/http/response/json"
|
"miniflux.app/v2/internal/http/response/json"
|
||||||
"miniflux.app/v2/model"
|
"miniflux.app/v2/internal/model"
|
||||||
feedHandler "miniflux.app/v2/reader/handler"
|
feedHandler "miniflux.app/v2/internal/reader/handler"
|
||||||
"miniflux.app/v2/validator"
|
"miniflux.app/v2/internal/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/v2/api"
|
package api // import "miniflux.app/v2/internal/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/v2/http/request"
|
"miniflux.app/v2/internal/http/request"
|
||||||
"miniflux.app/v2/http/response/json"
|
"miniflux.app/v2/internal/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/v2/api"
|
package api // import "miniflux.app/v2/internal/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/v2/http/request"
|
"miniflux.app/v2/internal/http/request"
|
||||||
"miniflux.app/v2/http/response/json"
|
"miniflux.app/v2/internal/http/response/json"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/logger"
|
||||||
"miniflux.app/v2/storage"
|
"miniflux.app/v2/internal/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
type middleware struct {
|
type middleware struct {
|
|
@ -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/v2/api"
|
package api // import "miniflux.app/v2/internal/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/v2/http/request"
|
"miniflux.app/v2/internal/http/request"
|
||||||
"miniflux.app/v2/http/response/json"
|
"miniflux.app/v2/internal/http/response/json"
|
||||||
"miniflux.app/v2/http/response/xml"
|
"miniflux.app/v2/internal/http/response/xml"
|
||||||
"miniflux.app/v2/reader/opml"
|
"miniflux.app/v2/internal/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/v2/api"
|
package api // import "miniflux.app/v2/internal/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"miniflux.app/v2/model"
|
"miniflux.app/v2/internal/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/v2/api"
|
package api // import "miniflux.app/v2/internal/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
json_parser "encoding/json"
|
json_parser "encoding/json"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/v2/http/response/json"
|
"miniflux.app/v2/internal/http/response/json"
|
||||||
"miniflux.app/v2/model"
|
"miniflux.app/v2/internal/model"
|
||||||
"miniflux.app/v2/reader/subscription"
|
"miniflux.app/v2/internal/reader/subscription"
|
||||||
"miniflux.app/v2/validator"
|
"miniflux.app/v2/internal/validator"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (h *handler) discoverSubscriptions(w http.ResponseWriter, r *http.Request) {
|
func (h *handler) discoverSubscriptions(w http.ResponseWriter, r *http.Request) {
|
|
@ -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/v2/api"
|
package api // import "miniflux.app/v2/internal/api"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
json_parser "encoding/json"
|
json_parser "encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/v2/http/request"
|
"miniflux.app/v2/internal/http/request"
|
||||||
"miniflux.app/v2/http/response/json"
|
"miniflux.app/v2/internal/http/response/json"
|
||||||
"miniflux.app/v2/model"
|
"miniflux.app/v2/internal/model"
|
||||||
"miniflux.app/v2/validator"
|
"miniflux.app/v2/internal/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/v2/cli"
|
package cli // import "miniflux.app/v2/internal/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/v2/cli"
|
package cli // import "miniflux.app/v2/internal/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/v2/config"
|
"miniflux.app/v2/internal/config"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/logger"
|
||||||
"miniflux.app/v2/metric"
|
"miniflux.app/v2/internal/metric"
|
||||||
"miniflux.app/v2/model"
|
"miniflux.app/v2/internal/model"
|
||||||
"miniflux.app/v2/storage"
|
"miniflux.app/v2/internal/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
func runCleanupTasks(store *storage.Storage) {
|
func runCleanupTasks(store *storage.Storage) {
|
|
@ -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/v2/cli"
|
package cli // import "miniflux.app/v2/internal/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"miniflux.app/v2/config"
|
"miniflux.app/v2/internal/config"
|
||||||
"miniflux.app/v2/database"
|
"miniflux.app/v2/internal/database"
|
||||||
"miniflux.app/v2/locale"
|
"miniflux.app/v2/internal/locale"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/logger"
|
||||||
"miniflux.app/v2/storage"
|
"miniflux.app/v2/internal/storage"
|
||||||
"miniflux.app/v2/ui/static"
|
"miniflux.app/v2/internal/ui/static"
|
||||||
"miniflux.app/v2/version"
|
"miniflux.app/v2/internal/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/v2/cli"
|
package cli // import "miniflux.app/v2/internal/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"miniflux.app/v2/config"
|
"miniflux.app/v2/internal/config"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/logger"
|
||||||
"miniflux.app/v2/model"
|
"miniflux.app/v2/internal/model"
|
||||||
"miniflux.app/v2/storage"
|
"miniflux.app/v2/internal/storage"
|
||||||
"miniflux.app/v2/validator"
|
"miniflux.app/v2/internal/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/v2/cli"
|
package cli // import "miniflux.app/v2/internal/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
@ -11,13 +11,13 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/v2/config"
|
"miniflux.app/v2/internal/config"
|
||||||
httpd "miniflux.app/v2/http/server"
|
httpd "miniflux.app/v2/internal/http/server"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/logger"
|
||||||
"miniflux.app/v2/metric"
|
"miniflux.app/v2/internal/metric"
|
||||||
"miniflux.app/v2/storage"
|
"miniflux.app/v2/internal/storage"
|
||||||
"miniflux.app/v2/systemd"
|
"miniflux.app/v2/internal/systemd"
|
||||||
"miniflux.app/v2/worker"
|
"miniflux.app/v2/internal/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/v2/cli"
|
package cli // import "miniflux.app/v2/internal/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"miniflux.app/v2/storage"
|
"miniflux.app/v2/internal/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/v2/cli"
|
package cli // import "miniflux.app/v2/internal/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/v2/config"
|
"miniflux.app/v2/internal/config"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/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/v2/cli"
|
package cli // import "miniflux.app/v2/internal/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"miniflux.app/v2/version"
|
"miniflux.app/v2/internal/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/v2/cli"
|
package cli // import "miniflux.app/v2/internal/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/v2/config"
|
"miniflux.app/v2/internal/config"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/logger"
|
||||||
"miniflux.app/v2/model"
|
"miniflux.app/v2/internal/model"
|
||||||
feedHandler "miniflux.app/v2/reader/handler"
|
feedHandler "miniflux.app/v2/internal/reader/handler"
|
||||||
"miniflux.app/v2/storage"
|
"miniflux.app/v2/internal/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/v2/cli"
|
package cli // import "miniflux.app/v2/internal/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"miniflux.app/v2/model"
|
"miniflux.app/v2/internal/model"
|
||||||
"miniflux.app/v2/storage"
|
"miniflux.app/v2/internal/storage"
|
||||||
"miniflux.app/v2/validator"
|
"miniflux.app/v2/internal/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/v2/cli"
|
package cli // import "miniflux.app/v2/internal/cli"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/v2/config"
|
"miniflux.app/v2/internal/config"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/logger"
|
||||||
"miniflux.app/v2/storage"
|
"miniflux.app/v2/internal/storage"
|
||||||
"miniflux.app/v2/worker"
|
"miniflux.app/v2/internal/worker"
|
||||||
)
|
)
|
||||||
|
|
||||||
func runScheduler(store *storage.Storage, pool *worker.Pool) {
|
func runScheduler(store *storage.Storage, pool *worker.Pool) {
|
|
@ -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/v2/config"
|
package config // import "miniflux.app/v2/internal/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/v2/config"
|
package config // import "miniflux.app/v2/internal/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/v2/config"
|
package config // import "miniflux.app/v2/internal/config"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
|
@ -10,7 +10,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/v2/version"
|
"miniflux.app/v2/internal/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/v2/config"
|
package config // import "miniflux.app/v2/internal/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/v2/config"
|
package config // import "miniflux.app/v2/internal/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/v2/crypto"
|
package crypto // import "miniflux.app/v2/internal/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/v2/database"
|
package database // import "miniflux.app/v2/internal/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/v2/database"
|
package database // import "miniflux.app/v2/internal/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/v2/errors"
|
package errors // import "miniflux.app/v2/internal/errors"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"miniflux.app/v2/locale"
|
"miniflux.app/v2/internal/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/v2/fever"
|
package fever // import "miniflux.app/v2/internal/fever"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
@ -9,13 +9,13 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/v2/http/request"
|
"miniflux.app/v2/internal/http/request"
|
||||||
"miniflux.app/v2/http/response/json"
|
"miniflux.app/v2/internal/http/response/json"
|
||||||
"miniflux.app/v2/integration"
|
"miniflux.app/v2/internal/integration"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/logger"
|
||||||
"miniflux.app/v2/model"
|
"miniflux.app/v2/internal/model"
|
||||||
"miniflux.app/v2/proxy"
|
"miniflux.app/v2/internal/proxy"
|
||||||
"miniflux.app/v2/storage"
|
"miniflux.app/v2/internal/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/v2/fever"
|
package fever // import "miniflux.app/v2/internal/fever"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/v2/http/request"
|
"miniflux.app/v2/internal/http/request"
|
||||||
"miniflux.app/v2/http/response/json"
|
"miniflux.app/v2/internal/http/response/json"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/logger"
|
||||||
"miniflux.app/v2/storage"
|
"miniflux.app/v2/internal/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/v2/fever"
|
package fever // import "miniflux.app/v2/internal/fever"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
|
@ -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/v2/googlereader"
|
package googlereader // import "miniflux.app/v2/internal/googlereader"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
@ -13,19 +13,19 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"miniflux.app/v2/config"
|
"miniflux.app/v2/internal/config"
|
||||||
"miniflux.app/v2/http/request"
|
"miniflux.app/v2/internal/http/request"
|
||||||
"miniflux.app/v2/http/response/json"
|
"miniflux.app/v2/internal/http/response/json"
|
||||||
"miniflux.app/v2/http/route"
|
"miniflux.app/v2/internal/http/route"
|
||||||
"miniflux.app/v2/integration"
|
"miniflux.app/v2/internal/integration"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/logger"
|
||||||
"miniflux.app/v2/model"
|
"miniflux.app/v2/internal/model"
|
||||||
"miniflux.app/v2/proxy"
|
"miniflux.app/v2/internal/proxy"
|
||||||
mff "miniflux.app/v2/reader/handler"
|
mff "miniflux.app/v2/internal/reader/handler"
|
||||||
mfs "miniflux.app/v2/reader/subscription"
|
mfs "miniflux.app/v2/internal/reader/subscription"
|
||||||
"miniflux.app/v2/storage"
|
"miniflux.app/v2/internal/storage"
|
||||||
"miniflux.app/v2/url"
|
"miniflux.app/v2/internal/url"
|
||||||
"miniflux.app/v2/validator"
|
"miniflux.app/v2/internal/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/v2/googlereader"
|
package googlereader // import "miniflux.app/v2/internal/googlereader"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
@ -11,12 +11,12 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"miniflux.app/v2/http/request"
|
"miniflux.app/v2/internal/http/request"
|
||||||
"miniflux.app/v2/http/response"
|
"miniflux.app/v2/internal/http/response"
|
||||||
"miniflux.app/v2/http/response/json"
|
"miniflux.app/v2/internal/http/response/json"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/logger"
|
||||||
"miniflux.app/v2/model"
|
"miniflux.app/v2/internal/model"
|
||||||
"miniflux.app/v2/storage"
|
"miniflux.app/v2/internal/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/v2/googlereader"
|
package googlereader // import "miniflux.app/v2/internal/googlereader"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/v2/http/response"
|
"miniflux.app/v2/internal/http/response"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/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/v2/http/client"
|
package client // import "miniflux.app/v2/internal/http/client"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
@ -16,10 +16,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/v2/config"
|
"miniflux.app/v2/internal/config"
|
||||||
"miniflux.app/v2/errors"
|
"miniflux.app/v2/internal/errors"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/logger"
|
||||||
"miniflux.app/v2/timer"
|
"miniflux.app/v2/internal/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/v2/http/client"
|
package client // import "miniflux.app/v2/internal/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/v2/http/client"
|
package client // import "miniflux.app/v2/internal/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/v2/http/client"
|
package client // import "miniflux.app/v2/internal/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/v2/http/cookie"
|
package cookie // import "miniflux.app/v2/internal/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/v2/http/request"
|
package request // import "miniflux.app/v2/internal/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/v2/http/request"
|
package request // import "miniflux.app/v2/internal/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/v2/http/request"
|
package request // import "miniflux.app/v2/internal/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/v2/http/request"
|
package request // import "miniflux.app/v2/internal/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/v2/http/request"
|
package request // import "miniflux.app/v2/internal/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/v2/http/request"
|
package request // import "miniflux.app/v2/internal/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/v2/http/request"
|
package request // import "miniflux.app/v2/internal/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/v2/http/request"
|
package request // import "miniflux.app/v2/internal/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/v2/http/response"
|
package response // import "miniflux.app/v2/internal/http/response"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"compress/flate"
|
"compress/flate"
|
||||||
|
@ -12,7 +12,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/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/v2/http/response"
|
package response // import "miniflux.app/v2/internal/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/v2/http/response/html"
|
package html // import "miniflux.app/v2/internal/http/response/html"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/v2/http/response"
|
"miniflux.app/v2/internal/http/response"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/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/v2/http/response/html"
|
package html // import "miniflux.app/v2/internal/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/v2/http/response/json"
|
package json // import "miniflux.app/v2/internal/http/response/json"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/v2/http/response"
|
"miniflux.app/v2/internal/http/response"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/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/v2/http/response/json"
|
package json // import "miniflux.app/v2/internal/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/v2/http/response/xml"
|
package xml // import "miniflux.app/v2/internal/http/response/xml"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/v2/http/response"
|
"miniflux.app/v2/internal/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/v2/http/response/xml"
|
package xml // import "miniflux.app/v2/internal/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/v2/http/route"
|
package route // import "miniflux.app/v2/internal/http/route"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/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/v2/http/server"
|
package httpd // import "miniflux.app/v2/internal/http/server"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
|
@ -12,16 +12,16 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"miniflux.app/v2/api"
|
"miniflux.app/v2/internal/api"
|
||||||
"miniflux.app/v2/config"
|
"miniflux.app/v2/internal/config"
|
||||||
"miniflux.app/v2/fever"
|
"miniflux.app/v2/internal/fever"
|
||||||
"miniflux.app/v2/googlereader"
|
"miniflux.app/v2/internal/googlereader"
|
||||||
"miniflux.app/v2/http/request"
|
"miniflux.app/v2/internal/http/request"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/logger"
|
||||||
"miniflux.app/v2/storage"
|
"miniflux.app/v2/internal/storage"
|
||||||
"miniflux.app/v2/ui"
|
"miniflux.app/v2/internal/ui"
|
||||||
"miniflux.app/v2/version"
|
"miniflux.app/v2/internal/version"
|
||||||
"miniflux.app/v2/worker"
|
"miniflux.app/v2/internal/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/v2/http/server"
|
package httpd // import "miniflux.app/v2/internal/http/server"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"miniflux.app/v2/config"
|
"miniflux.app/v2/internal/config"
|
||||||
"miniflux.app/v2/http/request"
|
"miniflux.app/v2/internal/http/request"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/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/v2/http/client"
|
"miniflux.app/v2/internal/http/client"
|
||||||
"miniflux.app/v2/model"
|
"miniflux.app/v2/internal/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/v2/integration/espial"
|
package espial // import "miniflux.app/v2/internal/integration/espial"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/url"
|
"net/url"
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
"miniflux.app/v2/http/client"
|
"miniflux.app/v2/internal/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/v2/integration/instapaper"
|
package instapaper // import "miniflux.app/v2/internal/integration/instapaper"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"miniflux.app/v2/http/client"
|
"miniflux.app/v2/internal/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/v2/integration"
|
package integration // import "miniflux.app/v2/internal/integration"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"miniflux.app/v2/config"
|
"miniflux.app/v2/internal/config"
|
||||||
"miniflux.app/v2/integration/apprise"
|
"miniflux.app/v2/internal/integration/apprise"
|
||||||
"miniflux.app/v2/integration/espial"
|
"miniflux.app/v2/internal/integration/espial"
|
||||||
"miniflux.app/v2/integration/instapaper"
|
"miniflux.app/v2/internal/integration/instapaper"
|
||||||
"miniflux.app/v2/integration/linkding"
|
"miniflux.app/v2/internal/integration/linkding"
|
||||||
"miniflux.app/v2/integration/matrixbot"
|
"miniflux.app/v2/internal/integration/matrixbot"
|
||||||
"miniflux.app/v2/integration/notion"
|
"miniflux.app/v2/internal/integration/notion"
|
||||||
"miniflux.app/v2/integration/nunuxkeeper"
|
"miniflux.app/v2/internal/integration/nunuxkeeper"
|
||||||
"miniflux.app/v2/integration/pinboard"
|
"miniflux.app/v2/internal/integration/pinboard"
|
||||||
"miniflux.app/v2/integration/pocket"
|
"miniflux.app/v2/internal/integration/pocket"
|
||||||
"miniflux.app/v2/integration/readwise"
|
"miniflux.app/v2/internal/integration/readwise"
|
||||||
"miniflux.app/v2/integration/telegrambot"
|
"miniflux.app/v2/internal/integration/telegrambot"
|
||||||
"miniflux.app/v2/integration/wallabag"
|
"miniflux.app/v2/internal/integration/wallabag"
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/logger"
|
||||||
"miniflux.app/v2/model"
|
"miniflux.app/v2/internal/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/v2/integration/linkding"
|
package linkding // import "miniflux.app/v2/internal/integration/linkding"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"miniflux.app/v2/http/client"
|
"miniflux.app/v2/internal/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/v2/integration/matrixbot"
|
package matrixbot // import "miniflux.app/v2/internal/integration/matrixbot"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"miniflux.app/v2/logger"
|
"miniflux.app/v2/internal/logger"
|
||||||
"miniflux.app/v2/model"
|
"miniflux.app/v2/internal/model"
|
||||||
|
|
||||||
"github.com/matrix-org/gomatrix"
|
"github.com/matrix-org/gomatrix"
|
||||||
)
|
)
|
|
@ -6,7 +6,7 @@ package notion
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"miniflux.app/v2/http/client"
|
"miniflux.app/v2/internal/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/v2/integration/nunuxkeeper"
|
package nunuxkeeper // import "miniflux.app/v2/internal/integration/nunuxkeeper"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/url"
|
"net/url"
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
"miniflux.app/v2/http/client"
|
"miniflux.app/v2/internal/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/v2/integration/pinboard"
|
package pinboard // import "miniflux.app/v2/internal/integration/pinboard"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"miniflux.app/v2/http/client"
|
"miniflux.app/v2/internal/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/v2/integration/pocket"
|
package pocket // import "miniflux.app/v2/internal/integration/pocket"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
@ -9,7 +9,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"miniflux.app/v2/http/client"
|
"miniflux.app/v2/internal/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/v2/integration/pocket"
|
package pocket // import "miniflux.app/v2/internal/integration/pocket"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"miniflux.app/v2/http/client"
|
"miniflux.app/v2/internal/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/v2/integration/readwise"
|
package readwise // import "miniflux.app/v2/internal/integration/readwise"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"miniflux.app/v2/http/client"
|
"miniflux.app/v2/internal/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/v2/integration/telegrambot"
|
package telegrambot // import "miniflux.app/v2/internal/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/v2/model"
|
"miniflux.app/v2/internal/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/v2/integration/wallabag"
|
package wallabag // import "miniflux.app/v2/internal/integration/wallabag"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
@ -9,7 +9,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"miniflux.app/v2/http/client"
|
"miniflux.app/v2/internal/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/v2/locale"
|
package locale // import "miniflux.app/v2/internal/locale"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"embed"
|
"embed"
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue