1
0
Fork 0

Move internal packages to an internal folder

For reference: https://go.dev/doc/go1.4#internalpackages
This commit is contained in:
Frédéric Guillot 2023-08-10 19:46:45 -07:00
parent c234903255
commit 168a870c02
433 changed files with 1121 additions and 1123 deletions

View file

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

View file

@ -1,7 +1,7 @@
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.
@ -9,7 +9,7 @@ Installation
------------
```bash
go get -u miniflux.app/client
go get -u miniflux.app/v2/client
```
Example

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package pocket // import "miniflux.app/v2/integration/pocket"
package pocket // import "miniflux.app/v2/internal/integration/pocket"
import (
"errors"
@ -9,7 +9,7 @@ import (
"io"
"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.

View file

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

View file

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

View file

@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
package telegrambot // import "miniflux.app/v2/integration/telegrambot"
package telegrambot // import "miniflux.app/v2/internal/integration/telegrambot"
import (
"bytes"
@ -10,7 +10,7 @@ import (
"strconv"
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

View file

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

View file

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

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