2023-10-13 16:13:33 +02:00
|
|
|
package globals
|
|
|
|
|
2023-10-27 13:38:35 +02:00
|
|
|
import "os/user"
|
|
|
|
|
2023-10-13 16:13:33 +02:00
|
|
|
// 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
|
|
|
|
|
2023-10-27 13:38:35 +02:00
|
|
|
// COPCacheFileName is the filename for the cache
|
2023-10-13 16:13:33 +02:00
|
|
|
var COPCacheFileName string = "cop-cache.json"
|
2023-10-27 13:38:35 +02:00
|
|
|
|
|
|
|
// Global Mockings
|
|
|
|
|
|
|
|
var MockUserCurrent = user.Current
|
2023-10-30 22:39:53 +01:00
|
|
|
|
|
|
|
// Marshaler interface to enrich structs which can be exported/imported even with private fields
|
|
|
|
/*
|
|
|
|
type Marshaler interface {
|
|
|
|
toJSON() ([]byte, error)
|
|
|
|
fromJSON() error
|
|
|
|
}
|
|
|
|
*/
|