yapusher/internal/context/exported.go

33 lines
547 B
Go
Raw Normal View History

2019-03-29 09:31:37 +04:00
// Yandex Disk File Pusher
// Copyright (c) 2019 Vladimir "fat0troll" Hodakov
package context
import (
"github.com/fat0troll/yapusher/internal/config"
"github.com/rs/zerolog"
"gitlab.com/pztrn/flagger"
)
// VERSION is the current app version
const VERSION = "0.0.1"
var (
dlog zerolog.Logger
)
// Context is the main application context.
type Context struct {
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
}