2019-03-29 09:31:37 +04:00
|
|
|
// Yandex Disk File Pusher
|
|
|
|
// Copyright (c) 2019 Vladimir "fat0troll" Hodakov
|
|
|
|
|
|
|
|
package context
|
|
|
|
|
|
|
|
import (
|
2019-12-30 04:39:34 +04:00
|
|
|
"source.hodakov.me/fat0troll/yapusher/internal/config"
|
2019-03-29 09:31:37 +04:00
|
|
|
"github.com/rs/zerolog"
|
|
|
|
"gitlab.com/pztrn/flagger"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
dlog zerolog.Logger
|
|
|
|
)
|
|
|
|
|
|
|
|
// Context is the main application context.
|
|
|
|
type Context struct {
|
2019-03-30 04:31:31 +04:00
|
|
|
configFilePath string
|
|
|
|
|
2019-03-29 09:31:37 +04:00
|
|
|
Config config.Config
|
|
|
|
Flagger *flagger.Flagger
|
|
|
|
Logger zerolog.Logger
|
|
|
|
}
|
|
|
|
|
|
|
|
// New creates new Context
|
|
|
|
func New() *Context {
|
|
|
|
c := &Context{}
|
|
|
|
return c
|
|
|
|
}
|