Use canonical imports

This commit is contained in:
Frédéric Guillot 2018-08-24 21:51:50 -07:00
parent 7f2612d9a6
commit dbcc5d8a97
263 changed files with 962 additions and 956 deletions

View file

@ -5,6 +5,7 @@ services:
addons: addons:
postgresql: "9.4" postgresql: "9.4"
language: go language: go
go_import_path: "miniflux.app"
go: go:
- "1.10" - "1.10"
before_install: before_install:

View file

@ -8,22 +8,22 @@ DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
linux: linux:
@ go generate @ go generate
@ GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-amd64 main.go @ GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-amd64 main.go
linux-arm: linux-arm:
@ go generate @ go generate
@ GOOS=linux GOARCH=arm64 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv8 main.go @ GOOS=linux GOARCH=arm64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv8 main.go
@ GOOS=linux GOARCH=arm GOARM=7 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv7 main.go @ GOOS=linux GOARCH=arm GOARM=7 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv7 main.go
@ GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv6 main.go @ GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv6 main.go
@ GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv5 main.go @ GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv5 main.go
darwin: darwin:
@ go generate @ go generate
@ GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-darwin-amd64 main.go @ GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-darwin-amd64 main.go
freebsd: freebsd:
@ go generate @ go generate
@ GOOS=freebsd GOARCH=amd64 go build -ldflags="-s -w -X 'githug.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-freebsd-amd64 main.go @ GOOS=freebsd GOARCH=amd64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-freebsd-amd64 main.go
build: linux linux-arm darwin freebsd build: linux linux-arm darwin freebsd

View file

@ -1,7 +1,7 @@
Miniflux 2 Miniflux 2
========== ==========
[![Build Status](https://travis-ci.org/miniflux/miniflux.svg?branch=master)](https://travis-ci.org/miniflux/miniflux) [![Build Status](https://travis-ci.org/miniflux/miniflux.svg?branch=master)](https://travis-ci.org/miniflux/miniflux)
[![GoDoc](https://godoc.org/github.com/miniflux/miniflux?status.svg)](https://godoc.org/github.com/miniflux/miniflux) [![GoDoc](https://godoc.org/miniflux.app?status.svg)](https://godoc.org/miniflux.app)
[![Documentation Status](https://readthedocs.org/projects/miniflux/badge/?version=latest)](https://docs.miniflux.app/) [![Documentation Status](https://readthedocs.org/projects/miniflux/badge/?version=latest)](https://docs.miniflux.app/)
Miniflux is a minimalist and opinionated feed reader: Miniflux is a minimalist and opinionated feed reader:

View file

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package api package api // import "miniflux.app/api"
import ( import (
"errors" "errors"
"net/http" "net/http"
"github.com/miniflux/miniflux/http/context" "miniflux.app/http/context"
"github.com/miniflux/miniflux/http/request" "miniflux.app/http/request"
"github.com/miniflux/miniflux/http/response/json" "miniflux.app/http/response/json"
) )
// CreateCategory is the API handler to create a new category. // CreateCategory is the API handler to create a new category.

View file

@ -2,11 +2,11 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package api package api // import "miniflux.app/api"
import ( import (
"github.com/miniflux/miniflux/reader/feed" "miniflux.app/reader/feed"
"github.com/miniflux/miniflux/storage" "miniflux.app/storage"
) )
// Controller holds all handlers for the API. // Controller holds all handlers for the API.

View file

@ -7,4 +7,4 @@
Package api implements API endpoints for Miniflux application. Package api implements API endpoints for Miniflux application.
*/ */
package api package api // import "miniflux.app/api"

View file

@ -2,18 +2,18 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package api package api // import "miniflux.app/api"
import ( import (
"errors" "errors"
"net/http" "net/http"
"time" "time"
"github.com/miniflux/miniflux/http/context" "miniflux.app/http/context"
"github.com/miniflux/miniflux/http/request" "miniflux.app/http/request"
"github.com/miniflux/miniflux/http/response/json" "miniflux.app/http/response/json"
"github.com/miniflux/miniflux/model" "miniflux.app/model"
"github.com/miniflux/miniflux/storage" "miniflux.app/storage"
) )
// GetFeedEntry is the API handler to get a single feed entry. // GetFeedEntry is the API handler to get a single feed entry.

View file

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package api package api // import "miniflux.app/api"
import ( import (
"errors" "errors"
"net/http" "net/http"
"github.com/miniflux/miniflux/http/context" "miniflux.app/http/context"
"github.com/miniflux/miniflux/http/request" "miniflux.app/http/request"
"github.com/miniflux/miniflux/http/response/json" "miniflux.app/http/response/json"
) )
// CreateFeed is the API handler to create a new feed. // CreateFeed is the API handler to create a new feed.

View file

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package api package api // import "miniflux.app/api"
import ( import (
"errors" "errors"
"net/http" "net/http"
"github.com/miniflux/miniflux/http/context" "miniflux.app/http/context"
"github.com/miniflux/miniflux/http/request" "miniflux.app/http/request"
"github.com/miniflux/miniflux/http/response/json" "miniflux.app/http/response/json"
) )
// FeedIcon returns a feed icon. // FeedIcon returns a feed icon.

View file

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package api package api // import "miniflux.app/api"
import ( import (
"net/http" "net/http"
"github.com/miniflux/miniflux/http/context" "miniflux.app/http/context"
"github.com/miniflux/miniflux/http/response/json" "miniflux.app/http/response/json"
"github.com/miniflux/miniflux/http/response/xml" "miniflux.app/http/response/xml"
"github.com/miniflux/miniflux/reader/opml" "miniflux.app/reader/opml"
) )
// Export is the API handler that export feeds to OPML. // Export is the API handler that export feeds to OPML.

View file

@ -2,14 +2,14 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package api package api // import "miniflux.app/api"
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"io" "io"
"github.com/miniflux/miniflux/model" "miniflux.app/model"
) )
type feedIcon struct { type feedIcon struct {

View file

@ -2,12 +2,12 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package api package api // import "miniflux.app/api"
import ( import (
"testing" "testing"
"github.com/miniflux/miniflux/model" "miniflux.app/model"
) )
func TestUpdateFeedURL(t *testing.T) { func TestUpdateFeedURL(t *testing.T) {

View file

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package api package api // import "miniflux.app/api"
import ( import (
"errors" "errors"
"fmt" "fmt"
"net/http" "net/http"
"github.com/miniflux/miniflux/http/response/json" "miniflux.app/http/response/json"
"github.com/miniflux/miniflux/reader/subscription" "miniflux.app/reader/subscription"
) )
// GetSubscriptions is the API handler to find subscriptions. // GetSubscriptions is the API handler to find subscriptions.

View file

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package api package api // import "miniflux.app/api"
import ( import (
"errors" "errors"
"net/http" "net/http"
"github.com/miniflux/miniflux/http/context" "miniflux.app/http/context"
"github.com/miniflux/miniflux/http/request" "miniflux.app/http/request"
"github.com/miniflux/miniflux/http/response/json" "miniflux.app/http/response/json"
) )
// CurrentUser is the API handler to retrieve the authenticated user. // CurrentUser is the API handler to retrieve the authenticated user.

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package cli package cli // import "miniflux.app/cli"
import ( import (
"bufio" "bufio"

View file

@ -2,18 +2,18 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package cli package cli // import "miniflux.app/cli"
import ( import (
"flag" "flag"
"fmt" "fmt"
"github.com/miniflux/miniflux/config" "miniflux.app/config"
"github.com/miniflux/miniflux/daemon" "miniflux.app/daemon"
"github.com/miniflux/miniflux/database" "miniflux.app/database"
"github.com/miniflux/miniflux/logger" "miniflux.app/logger"
"github.com/miniflux/miniflux/storage" "miniflux.app/storage"
"github.com/miniflux/miniflux/version" "miniflux.app/version"
) )
// Parse parses command line arguments. // Parse parses command line arguments.

View file

@ -2,14 +2,14 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package cli package cli // import "miniflux.app/cli"
import ( import (
"fmt" "fmt"
"os" "os"
"github.com/miniflux/miniflux/model" "miniflux.app/model"
"github.com/miniflux/miniflux/storage" "miniflux.app/storage"
) )
func createAdmin(store *storage.Storage) { func createAdmin(store *storage.Storage) {

View file

@ -7,4 +7,4 @@
Package cli implements command line arguments for Miniflux application. Package cli implements command line arguments for Miniflux application.
*/ */
package cli package cli // import "miniflux.app/cli"

View file

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package cli package cli // import "miniflux.app/cli"
import ( import (
"fmt" "fmt"
"os" "os"
"github.com/miniflux/miniflux/storage" "miniflux.app/storage"
) )
func flushSessions(store *storage.Storage) { func flushSessions(store *storage.Storage) {

View file

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package cli package cli // import "miniflux.app/cli"
import ( import (
"fmt" "fmt"
"runtime" "runtime"
"github.com/miniflux/miniflux/version" "miniflux.app/version"
) )
func info() { func info() {

View file

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package cli package cli // import "miniflux.app/cli"
import ( import (
"fmt" "fmt"
"os" "os"
"github.com/miniflux/miniflux/storage" "miniflux.app/storage"
) )
func resetPassword(store *storage.Storage) { func resetPassword(store *storage.Storage) {

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package config package config // import "miniflux.app/config"
import ( import (
"net/url" "net/url"
@ -10,7 +10,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/miniflux/miniflux/logger" "miniflux.app/logger"
) )
const ( const (

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package config package config // import "miniflux.app/config"
import ( import (
"os" "os"

View file

@ -7,4 +7,4 @@
Package config handles configuration values for Miniflux application. Package config handles configuration values for Miniflux application.
*/ */
package config package config // import "miniflux.app/config"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package crypto package crypto // import "miniflux.app/crypto"
import ( import (
"crypto/rand" "crypto/rand"

View file

@ -7,4 +7,4 @@
Package crypto implements helpers related to cryptography. Package crypto implements helpers related to cryptography.
*/ */
package crypto package crypto // import "miniflux.app/crypto"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package daemon package daemon // import "miniflux.app/daemon"
import ( import (
"context" "context"
@ -12,12 +12,12 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/miniflux/miniflux/config" "miniflux.app/config"
"github.com/miniflux/miniflux/locale" "miniflux.app/locale"
"github.com/miniflux/miniflux/logger" "miniflux.app/logger"
"github.com/miniflux/miniflux/reader/feed" "miniflux.app/reader/feed"
"github.com/miniflux/miniflux/scheduler" "miniflux.app/scheduler"
"github.com/miniflux/miniflux/storage" "miniflux.app/storage"
) )
// Run starts the daemon. // Run starts the daemon.

View file

@ -7,4 +7,4 @@
Package daemon handles the main application process. Package daemon handles the main application process.
*/ */
package daemon package daemon // import "miniflux.app/daemon"

View file

@ -2,21 +2,21 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package daemon package daemon // import "miniflux.app/daemon"
import ( import (
"net/http" "net/http"
"github.com/miniflux/miniflux/api" "miniflux.app/api"
"github.com/miniflux/miniflux/config" "miniflux.app/config"
"github.com/miniflux/miniflux/fever" "miniflux.app/fever"
"github.com/miniflux/miniflux/locale" "miniflux.app/locale"
"github.com/miniflux/miniflux/middleware" "miniflux.app/middleware"
"github.com/miniflux/miniflux/reader/feed" "miniflux.app/reader/feed"
"github.com/miniflux/miniflux/scheduler" "miniflux.app/scheduler"
"github.com/miniflux/miniflux/storage" "miniflux.app/storage"
"github.com/miniflux/miniflux/template" "miniflux.app/template"
"github.com/miniflux/miniflux/ui" "miniflux.app/ui"
"github.com/gorilla/mux" "github.com/gorilla/mux"
) )

View file

@ -2,19 +2,19 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package daemon package daemon // import "miniflux.app/daemon"
import ( import (
"crypto/tls" "crypto/tls"
"net/http" "net/http"
"time" "time"
"github.com/miniflux/miniflux/config" "miniflux.app/config"
"github.com/miniflux/miniflux/locale" "miniflux.app/locale"
"github.com/miniflux/miniflux/logger" "miniflux.app/logger"
"github.com/miniflux/miniflux/reader/feed" "miniflux.app/reader/feed"
"github.com/miniflux/miniflux/scheduler" "miniflux.app/scheduler"
"github.com/miniflux/miniflux/storage" "miniflux.app/storage"
"golang.org/x/crypto/acme/autocert" "golang.org/x/crypto/acme/autocert"
) )

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package database package database // import "miniflux.app/database"
import ( import (
"database/sql" "database/sql"

View file

@ -2,14 +2,14 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package database package database // import "miniflux.app/database"
import ( import (
"database/sql" "database/sql"
"fmt" "fmt"
"strconv" "strconv"
"github.com/miniflux/miniflux/logger" "miniflux.app/logger"
) )
const schemaVersion = 20 const schemaVersion = 20

View file

@ -1,6 +1,6 @@
// Code generated by go generate; DO NOT EDIT. // Code generated by go generate; DO NOT EDIT.
package database package database // import "miniflux.app/database"
var SqlMap = map[string]string{ var SqlMap = map[string]string{
"schema_version_1": `create table schema_version ( "schema_version_1": `create table schema_version (

4
doc.go
View file

@ -4,7 +4,7 @@
/* /*
Package main implements a feed reader application. Miniflux is a feed reader application.
*/ */
package main package main // import "miniflux.app"

View file

@ -7,4 +7,4 @@
Package errors handles localized errors. Package errors handles localized errors.
*/ */
package errors package errors // import "miniflux.app/errors"

View file

@ -2,12 +2,12 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package errors package errors // import "miniflux.app/errors"
import ( import (
"fmt" "fmt"
"github.com/miniflux/miniflux/locale" "miniflux.app/locale"
) )
// LocalizedError represents an error than could be translated to another language. // LocalizedError represents an error than could be translated to another language.

View file

@ -7,4 +7,4 @@
Package fever implements Fever API endpoints. Package fever implements Fever API endpoints.
*/ */
package fever package fever // import "miniflux.app/fever"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package fever package fever // import "miniflux.app/fever"
import ( import (
"net/http" "net/http"
@ -10,14 +10,14 @@ import (
"strings" "strings"
"time" "time"
"github.com/miniflux/miniflux/config" "miniflux.app/config"
"github.com/miniflux/miniflux/http/context" "miniflux.app/http/context"
"github.com/miniflux/miniflux/http/request" "miniflux.app/http/request"
"github.com/miniflux/miniflux/http/response/json" "miniflux.app/http/response/json"
"github.com/miniflux/miniflux/integration" "miniflux.app/integration"
"github.com/miniflux/miniflux/logger" "miniflux.app/logger"
"github.com/miniflux/miniflux/model" "miniflux.app/model"
"github.com/miniflux/miniflux/storage" "miniflux.app/storage"
) )
type baseResponse struct { type baseResponse struct {

View file

@ -7,4 +7,4 @@
Package filter implements a content filter to rewrite image links. Package filter implements a content filter to rewrite image links.
*/ */
package filter package filter // import "miniflux.app/filter"

View file

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package filter package filter // import "miniflux.app/filter"
import ( import (
"encoding/base64" "encoding/base64"
"strings" "strings"
"github.com/miniflux/miniflux/config" "miniflux.app/config"
"github.com/miniflux/miniflux/http/route" "miniflux.app/http/route"
"github.com/miniflux/miniflux/url" "miniflux.app/url"
"github.com/PuerkitoBio/goquery" "github.com/PuerkitoBio/goquery"
"github.com/gorilla/mux" "github.com/gorilla/mux"

View file

@ -2,14 +2,14 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package filter package filter // import "miniflux.app/filter"
import ( import (
"net/http" "net/http"
"os" "os"
"testing" "testing"
"github.com/miniflux/miniflux/config" "miniflux.app/config"
"github.com/gorilla/mux" "github.com/gorilla/mux"
) )

View file

@ -24,7 +24,7 @@ import (
const tpl = `// Code generated by go generate; DO NOT EDIT. const tpl = `// Code generated by go generate; DO NOT EDIT.
package {{ .Package }} package {{ .Package }} // import "miniflux.app/{{ .ImportPath }}"
var {{ .Map }} = map[string]string{ var {{ .Map }} = map[string]string{
{{ range $constant, $content := .Files }}` + "\t" + `"{{ $constant }}": ` + "`{{ $content }}`" + `, {{ range $constant, $content := .Files }}` + "\t" + `"{{ $constant }}": ` + "`{{ $content }}`" + `,
@ -38,9 +38,11 @@ var {{ .Map }}Checksums = map[string]string{
var bundleTpl = template.Must(template.New("").Parse(tpl)) var bundleTpl = template.Must(template.New("").Parse(tpl))
type Bundle struct { type Bundle struct {
Package, Map string Package string
Files map[string]string Map string
Checksums map[string]string ImportPath string
Files map[string]string
Checksums map[string]string
} }
func (b *Bundle) Write(filename string) { func (b *Bundle) Write(filename string) {
@ -53,12 +55,13 @@ func (b *Bundle) Write(filename string) {
bundleTpl.Execute(f, b) bundleTpl.Execute(f, b)
} }
func NewBundle(pkg, mapName string) *Bundle { func NewBundle(pkg, mapName, importPath string) *Bundle {
return &Bundle{ return &Bundle{
Package: pkg, Package: pkg,
Map: mapName, Map: mapName,
Files: make(map[string]string), ImportPath: importPath,
Checksums: make(map[string]string), Files: make(map[string]string),
Checksums: make(map[string]string),
} }
} }
@ -97,7 +100,7 @@ func concat(files []string) string {
} }
func generateJSBundle(bundleFile string, bundleFiles map[string][]string, prefixes, suffixes map[string]string) { func generateJSBundle(bundleFile string, bundleFiles map[string][]string, prefixes, suffixes map[string]string) {
bundle := NewBundle("static", "Javascripts") bundle := NewBundle("static", "Javascripts", "ui/static")
m := minify.New() m := minify.New()
m.AddFunc("text/javascript", js.Minify) m.AddFunc("text/javascript", js.Minify)
@ -127,7 +130,7 @@ func generateJSBundle(bundleFile string, bundleFiles map[string][]string, prefix
} }
func generateCSSBundle(bundleFile string, themes map[string][]string) { func generateCSSBundle(bundleFile string, themes map[string][]string) {
bundle := NewBundle("static", "Stylesheets") bundle := NewBundle("static", "Stylesheets", "ui/static")
m := minify.New() m := minify.New()
m.AddFunc("text/css", css.Minify) m.AddFunc("text/css", css.Minify)
@ -146,7 +149,7 @@ func generateCSSBundle(bundleFile string, themes map[string][]string) {
} }
func generateBinaryBundle(bundleFile string, srcFiles []string) { func generateBinaryBundle(bundleFile string, srcFiles []string) {
bundle := NewBundle("static", "Binaries") bundle := NewBundle("static", "Binaries", "ui/static")
for _, srcFile := range srcFiles { for _, srcFile := range srcFiles {
data := readFile(srcFile) data := readFile(srcFile)
@ -161,7 +164,7 @@ func generateBinaryBundle(bundleFile string, srcFiles []string) {
} }
func generateBundle(bundleFile, pkg, mapName string, srcFiles []string) { func generateBundle(bundleFile, pkg, mapName string, srcFiles []string) {
bundle := NewBundle(pkg, mapName) bundle := NewBundle(pkg, mapName, pkg)
for _, srcFile := range srcFiles { for _, srcFile := range srcFiles {
data := readFile(srcFile) data := readFile(srcFile)

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package client package client // import "miniflux.app/http/client"
import ( import (
"bytes" "bytes"
@ -18,10 +18,10 @@ import (
"strings" "strings"
"time" "time"
"github.com/miniflux/miniflux/errors" "miniflux.app/errors"
"github.com/miniflux/miniflux/logger" "miniflux.app/logger"
"github.com/miniflux/miniflux/timer" "miniflux.app/timer"
"github.com/miniflux/miniflux/version" "miniflux.app/version"
) )
const ( const (

View file

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package client package client // import "miniflux.app/http/client"
import ( import (
"io" "io"
"mime" "mime"
"strings" "strings"
"github.com/miniflux/miniflux/logger"
"golang.org/x/net/html/charset" "golang.org/x/net/html/charset"
"miniflux.app/logger"
) )
// Response wraps a server response. // Response wraps a server response.

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package client package client // import "miniflux.app/http/client"
import "testing" import "testing"

View file

@ -2,12 +2,12 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package context package context // import "miniflux.app/http/context"
import ( import (
"net/http" "net/http"
"github.com/miniflux/miniflux/middleware" "miniflux.app/middleware"
) )
// Context contains helper functions related to the current request. // Context contains helper functions related to the current request.

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package cookie package cookie // import "miniflux.app/http/cookie"
import ( import (
"net/http" "net/http"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package request package request // import "miniflux.app/http/request"
import ( import (
"fmt" "fmt"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package request package request // import "miniflux.app/http/request"
import ( import (
"net/http" "net/http"

View file

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package html package html // import "miniflux.app/http/response/html"
import ( import (
"net/http" "net/http"
"github.com/miniflux/miniflux/http/response" "miniflux.app/http/response"
"github.com/miniflux/miniflux/logger" "miniflux.app/logger"
) )
// OK writes a standard HTML response. // OK writes a standard HTML response.

View file

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package json package json // import "miniflux.app/http/response/json"
import ( import (
"encoding/json" "encoding/json"
"errors" "errors"
"net/http" "net/http"
"github.com/miniflux/miniflux/http/response" "miniflux.app/http/response"
"github.com/miniflux/miniflux/logger" "miniflux.app/logger"
) )
// OK sends a JSON response with the status code 200. // OK sends a JSON response with the status code 200.

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package response package response // import "miniflux.app/http/response"
import ( import (
"compress/flate" "compress/flate"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package xml package xml // import "miniflux.app/http/response/xml"
import ( import (
"fmt" "fmt"

View file

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package route package route // import "miniflux.app/http/route"
import ( import (
"strconv" "strconv"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/miniflux/miniflux/logger" "miniflux.app/logger"
) )
// Path returns the defined route based on given arguments. // Path returns the defined route based on given arguments.

View file

@ -7,4 +7,4 @@
Package integration implements API clients for third-party services. Package integration implements API clients for third-party services.
*/ */
package integration package integration // import "miniflux.app/integration"

View file

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package instapaper package instapaper // import "miniflux.app/integration/instapaper"
import ( import (
"fmt" "fmt"
"net/url" "net/url"
"github.com/miniflux/miniflux/http/client" "miniflux.app/http/client"
) )
// Client represents an Instapaper client. // Client represents an Instapaper client.

View file

@ -2,17 +2,17 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package integration package integration // import "miniflux.app/integration"
import ( import (
"github.com/miniflux/miniflux/config" "miniflux.app/config"
"github.com/miniflux/miniflux/integration/instapaper" "miniflux.app/integration/instapaper"
"github.com/miniflux/miniflux/integration/nunuxkeeper" "miniflux.app/integration/nunuxkeeper"
"github.com/miniflux/miniflux/integration/pinboard" "miniflux.app/integration/pinboard"
"github.com/miniflux/miniflux/integration/pocket" "miniflux.app/integration/pocket"
"github.com/miniflux/miniflux/integration/wallabag" "miniflux.app/integration/wallabag"
"github.com/miniflux/miniflux/logger" "miniflux.app/logger"
"github.com/miniflux/miniflux/model" "miniflux.app/model"
) )
// SendEntry send the entry to the activated providers. // SendEntry send the entry to the activated providers.

View file

@ -2,14 +2,14 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package nunuxkeeper package nunuxkeeper // import "miniflux.app/integration/nunuxkeeper"
import ( import (
"fmt" "fmt"
"net/url" "net/url"
"path" "path"
"github.com/miniflux/miniflux/http/client" "miniflux.app/http/client"
) )
// Document structure of a Nununx Keeper document // Document structure of a Nununx Keeper document

View file

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package pinboard package pinboard // import "miniflux.app/integration/pinboard"
import ( import (
"fmt" "fmt"
"net/url" "net/url"
"github.com/miniflux/miniflux/http/client" "miniflux.app/http/client"
) )
// Client represents a Pinboard client. // Client represents a Pinboard client.

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package pocket package pocket // import "miniflux.app/integration/pocket"
import ( import (
"errors" "errors"
@ -10,7 +10,7 @@ import (
"io/ioutil" "io/ioutil"
"net/url" "net/url"
"github.com/miniflux/miniflux/http/client" "miniflux.app/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.

View file

@ -2,12 +2,12 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package pocket package pocket // import "miniflux.app/integration/pocket"
import ( import (
"fmt" "fmt"
"github.com/miniflux/miniflux/http/client" "miniflux.app/http/client"
) )
// Client represents a Pocket client. // Client represents a Pocket client.

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package wallabag package wallabag // import "miniflux.app/integration/wallabag"
import ( import (
"encoding/json" "encoding/json"
@ -10,7 +10,7 @@ import (
"io" "io"
"net/url" "net/url"
"github.com/miniflux/miniflux/http/client" "miniflux.app/http/client"
) )
// Client represents a Wallabag client. // Client represents a Wallabag client.

View file

@ -7,4 +7,4 @@
Package locale handles the internationalization of the application. Package locale handles the internationalization of the application.
*/ */
package locale package locale // import "miniflux.app/locale"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package locale package locale // import "miniflux.app/locale"
import "fmt" import "fmt"

View file

@ -2,9 +2,9 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package locale package locale // import "miniflux.app/locale"
import "github.com/miniflux/miniflux/logger" import "miniflux.app/logger"
// Translation is the translation mapping table. // Translation is the translation mapping table.
type Translation map[string]interface{} type Translation map[string]interface{}

View file

@ -1,7 +1,7 @@
// Copyright 2017 Frédéric Guillot. All rights reserved. // Copyright 2017 Frédéric Guillot. All rights reserved.
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package locale package locale // import "miniflux.app/locale"
import "testing" import "testing"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package locale package locale // import "miniflux.app/locale"
// See https://localization-guide.readthedocs.io/en/latest/l10n/pluralforms.html // See https://localization-guide.readthedocs.io/en/latest/l10n/pluralforms.html
// And http://www.unicode.org/cldr/charts/29/supplemental/language_plural_rules.html // And http://www.unicode.org/cldr/charts/29/supplemental/language_plural_rules.html

View file

@ -1,6 +1,6 @@
// Code generated by go generate; DO NOT EDIT. // Code generated by go generate; DO NOT EDIT.
package locale package locale // import "miniflux.app/locale"
var translations = map[string]string{ var translations = map[string]string{
"de_DE": `{ "de_DE": `{

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package locale package locale // import "miniflux.app/locale"
import ( import (
"encoding/json" "encoding/json"

View file

@ -7,4 +7,4 @@
Package logger handles application log messages with different levels. Package logger handles application log messages with different levels.
*/ */
package logger package logger // import "miniflux.app/logger"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package logger package logger // import "miniflux.app/logger"
import ( import (
"fmt" "fmt"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package main package main // import "miniflux.app"
//go:generate go run generate.go //go:generate go run generate.go
//go:generate gofmt -s -w database/sql.go //go:generate gofmt -s -w database/sql.go
@ -14,7 +14,7 @@ package main
//go:generate gofmt -s -w locale/translations.go //go:generate gofmt -s -w locale/translations.go
import ( import (
"github.com/miniflux/miniflux/cli" "miniflux.app/cli"
) )
func main() { func main() {

View file

@ -2,18 +2,18 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package middleware package middleware // import "miniflux.app/middleware"
import ( import (
"context" "context"
"errors" "errors"
"net/http" "net/http"
"github.com/miniflux/miniflux/http/cookie" "miniflux.app/http/cookie"
"github.com/miniflux/miniflux/http/request" "miniflux.app/http/request"
"github.com/miniflux/miniflux/http/response/html" "miniflux.app/http/response/html"
"github.com/miniflux/miniflux/logger" "miniflux.app/logger"
"github.com/miniflux/miniflux/model" "miniflux.app/model"
) )
// AppSession handles application session middleware. // AppSession handles application session middleware.

View file

@ -2,14 +2,14 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package middleware package middleware // import "miniflux.app/middleware"
import ( import (
"context" "context"
"net/http" "net/http"
"github.com/miniflux/miniflux/http/response/json" "miniflux.app/http/response/json"
"github.com/miniflux/miniflux/logger" "miniflux.app/logger"
) )
// BasicAuth handles HTTP basic authentication. // BasicAuth handles HTTP basic authentication.

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package middleware package middleware // import "miniflux.app/middleware"
import ( import (
"net/http" "net/http"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package middleware package middleware // import "miniflux.app/middleware"
// ContextKey represents a context key. // ContextKey represents a context key.
type ContextKey struct { type ContextKey struct {

View file

@ -2,14 +2,14 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package middleware package middleware // import "miniflux.app/middleware"
import ( import (
"context" "context"
"net/http" "net/http"
"github.com/miniflux/miniflux/http/response/json" "miniflux.app/http/response/json"
"github.com/miniflux/miniflux/logger" "miniflux.app/logger"
) )
// FeverAuth handles Fever API authentication. // FeverAuth handles Fever API authentication.

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package middleware package middleware // import "miniflux.app/middleware"
import ( import (
"net/http" "net/http"

View file

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package middleware package middleware // import "miniflux.app/middleware"
import ( import (
"net/http" "net/http"
"github.com/miniflux/miniflux/http/request" "miniflux.app/http/request"
"github.com/miniflux/miniflux/logger" "miniflux.app/logger"
) )
// Logging logs the HTTP request. // Logging logs the HTTP request.

View file

@ -2,12 +2,12 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package middleware package middleware // import "miniflux.app/middleware"
import ( import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/miniflux/miniflux/config" "miniflux.app/config"
"github.com/miniflux/miniflux/storage" "miniflux.app/storage"
) )
// Middleware handles different middleware handlers. // Middleware handles different middleware handlers.

View file

@ -2,18 +2,18 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package middleware package middleware // import "miniflux.app/middleware"
import ( import (
"context" "context"
"net/http" "net/http"
"github.com/miniflux/miniflux/http/cookie" "miniflux.app/http/cookie"
"github.com/miniflux/miniflux/http/request" "miniflux.app/http/request"
"github.com/miniflux/miniflux/http/response" "miniflux.app/http/response"
"github.com/miniflux/miniflux/http/route" "miniflux.app/http/route"
"github.com/miniflux/miniflux/logger" "miniflux.app/logger"
"github.com/miniflux/miniflux/model" "miniflux.app/model"
"github.com/gorilla/mux" "github.com/gorilla/mux"
) )

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package model package model // import "miniflux.app/model"
import ( import (
"database/sql/driver" "database/sql/driver"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package model package model // import "miniflux.app/model"
import ( import (
"errors" "errors"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package model package model // import "miniflux.app/model"
import "testing" import "testing"

View file

@ -7,4 +7,4 @@
Package model contains all data structures used by the application. Package model contains all data structures used by the application.
*/ */
package model package model // import "miniflux.app/model"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package model package model // import "miniflux.app/model"
// Enclosure represents an attachment. // Enclosure represents an attachment.
type Enclosure struct { type Enclosure struct {

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package model package model // import "miniflux.app/model"
import ( import (
"fmt" "fmt"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package model package model // import "miniflux.app/model"
import "testing" import "testing"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package model package model // import "miniflux.app/model"
import ( import (
"fmt" "fmt"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package model package model // import "miniflux.app/model"
import ( import (
"encoding/base64" "encoding/base64"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package model package model // import "miniflux.app/model"
// Integration represents user integration settings. // Integration represents user integration settings.
type Integration struct { type Integration struct {

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package model package model // import "miniflux.app/model"
// Job represents a payload sent to the processing queue. // Job represents a payload sent to the processing queue.
type Job struct { type Job struct {

View file

@ -2,9 +2,9 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package model package model // import "miniflux.app/model"
import "github.com/miniflux/miniflux/errors" import "miniflux.app/errors"
// Themes returns the list of available themes. // Themes returns the list of available themes.
func Themes() map[string]string { func Themes() map[string]string {

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package model package model // import "miniflux.app/model"
import "testing" import "testing"

View file

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package model package model // import "miniflux.app/model"
import ( import (
"errors" "errors"
"time" "time"
"github.com/miniflux/miniflux/timezone" "miniflux.app/timezone"
) )
// User represents a user in the system. // User represents a user in the system.

View file

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package model package model // import "miniflux.app/model"
import ( import (
"fmt" "fmt"
"time" "time"
"github.com/miniflux/miniflux/timezone" "miniflux.app/timezone"
) )
// UserSession represents a user session in the system. // UserSession represents a user session in the system.

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package model package model // import "miniflux.app/model"
import "testing" import "testing"

View file

@ -7,4 +7,4 @@
Package oauth2 abstracts different OAuth2 providers. Package oauth2 abstracts different OAuth2 providers.
*/ */
package oauth2 package oauth2 // import "miniflux.app/oauth2"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package oauth2 package oauth2 // import "miniflux.app/oauth2"
import ( import (
"context" "context"

View file

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0 // Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
package oauth2 package oauth2 // import "miniflux.app/oauth2"
import "errors" import "errors"

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