Documentation
¶
Overview ¶
Package config provides a way to configure gonawin app. It reads a config.json file similar to github.com/taironas/gonawin/example-config.json
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Facebook ¶
type Facebook struct {
AppId string `json:"appId"`
}
Facebook holds data needed for Facebook authentication.
type GooglePlus ¶
type GooglePlus struct {
ClientId string `json:"clientId"`
}
GooglePlus holds data needed for GooglePlus authentication.
type GwConfig ¶
type GwConfig struct { APIVersion string `json:"apiVersion"` OfflineMode bool `json:"offlineMode"` OfflineUser User `json:"offlineUser"` DevUsers []User `json:"devUsers"` Twitter Twitter `json:"twitter"` Facebook Facebook `json:"facebook"` GooglePlus GooglePlus `json:"googlePlus"` }
GwConfig is configuration structure to hold the JSON unmarshalled data.
func ReadConfig ¶
ReadConfig reads configuration file and return it.