mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Refactor config package
- Parse configuration only once during startup time - Store configuration values in a global variable
This commit is contained in:
parent
04d85b3c63
commit
228862fefa
28 changed files with 922 additions and 624 deletions
|
@ -2,10 +2,9 @@
|
|||
// Use of this source code is governed by the Apache 2.0
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package ui // import "miniflux.app/ui"
|
||||
package ui // import "miniflux.app/ui"
|
||||
|
||||
import (
|
||||
"miniflux.app/config"
|
||||
"miniflux.app/reader/feed"
|
||||
"miniflux.app/storage"
|
||||
"miniflux.app/template"
|
||||
|
@ -16,7 +15,6 @@ import (
|
|||
|
||||
type handler struct {
|
||||
router *mux.Router
|
||||
cfg *config.Config
|
||||
store *storage.Storage
|
||||
tpl *template.Engine
|
||||
pool *worker.Pool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue