git-lfs/config.go
2014-06-02 09:34:33 -06:00

20 lines
371 B
Go

package gitmedia
type Configuration struct {
Endpoint string
}
var config *Configuration
// Config gets the git media configuration for the current repository. It
// reads .gitmedia, which is a toml file.
//
// https://github.com/mojombo/toml
func Config() *Configuration {
if config == nil {
config = &Configuration{"http://localhost:8080"}
}
return config
}