ppforge/globals/globals.go

34 lines
826 B
Go

package globals
import "os/user"
// Global variables, Mocks, etc.
// This package shall not have any dependency towards the application itself!
// [impl->dsn~properly-defined-globals~1>>utest]
// GLOBAL VARIABLES
// ConfigDirectoryList Configuration directory list
var ConfigDirectoryList []string
// ConfigDirectory Configuration directory string
var ConfigDirectory string
// CollectionOfProtocolsDir is the default directory for protocol collections
var CollectionOfProtocolsDir string
// COPCacheFileName is the filename for the cache
var COPCacheFileName string = "cop-cache.json"
// Global Mockings
var MockUserCurrent = user.Current
// Marshaler interface to enrich structs which can be exported/imported even with private fields
/*
type Marshaler interface {
toJSON() ([]byte, error)
fromJSON() error
}
*/