MCPcopy Create free account
hub / github.com/apache/casbin-server / getLocalConfigPath

Function getLocalConfigPath

server/adapter.go:125–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123)
124
125func getLocalConfigPath() string {
126 configFilePath := os.Getenv(configFilePathEnvironmentVariable)
127 if configFilePath == "" {
128 configFilePath = configFileDefaultPath
129 }
130 return configFilePath
131}
132
133func LoadConfiguration(file string) Config {
134 //Loads a default config from adapter_config in case a custom adapter isn't provided by the client.

Callers 3

TestGetLocalConfigFunction · 0.85
checkLocalConfigFunction · 0.85
NewEnforcerMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestGetLocalConfigFunction · 0.68