Documentation ¶
Index ¶
- func AccountController(c web.C, w http.ResponseWriter, r *http.Request)
- func AccountSignController(c web.C, w http.ResponseWriter, r *http.Request)
- func AccountSignInViewController(c web.C, w http.ResponseWriter, r *http.Request)
- func AccountSignUpViewController(c web.C, w http.ResponseWriter, r *http.Request)
- func CurrentAccount(r *http.Request) (models.Account, error)
- func EventController(c web.C, w http.ResponseWriter, r *http.Request)
- func EventsController(c web.C, w http.ResponseWriter, r *http.Request)
- func FollowController(c web.C, w http.ResponseWriter, r *http.Request)
- func FollowsController(c web.C, w http.ResponseWriter, r *http.Request)
- func GetDatabase() gorm.DB
- func IndexController(c web.C, w http.ResponseWriter, r *http.Request)
- func Init()
- func Migrate()
- func ParseJsonFile(path string, v interface{})
- func ParseTemplate(file, baseFile string, data map[string]interface{}) []byte
- func RenderJson(w http.ResponseWriter, data interface{})
- func RenderTemplate(w http.ResponseWriter, file, baseFile string, data map[string]interface{})
- func SetupRoutes()
- func StartServer()
- type ConfigFile
- type Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountController ¶
func AccountSignController ¶
func EventController ¶
func EventsController ¶
func FollowController ¶
func FollowsController ¶
func GetDatabase ¶
func IndexController ¶
func ParseJsonFile ¶
func ParseJsonFile(path string, v interface{})
func ParseTemplate ¶
func RenderJson ¶
func RenderJson(w http.ResponseWriter, data interface{})
func RenderTemplate ¶
func RenderTemplate(w http.ResponseWriter, file, baseFile string, data map[string]interface{})
func SetupRoutes ¶
func SetupRoutes()
func StartServer ¶
func StartServer()
Types ¶
type ConfigFile ¶
type ConfigFile struct { Debug bool `json:"debug"` LogPath string `json:"log_path"` SecretKey string `json:"secret_key"` TemplatePath string `json:"template_path"` StaticPath string `json:"static_path"` DatabaseURI string `json:"database_uri"` }
var Config ConfigFile
Source Files ¶
Click to show internal directories.
Click to hide internal directories.