Documentation ¶
Index ¶
- func HandleLegal(w http.ResponseWriter, r *http.Request) error
- func ScheduleAt(f func(), t time.Time, i time.Duration) chan struct{}
- func Setup(mu *sync.RWMutex)
- func SetupAssets()
- func SetupAuth()
- func SetupDatabase(mu *sync.RWMutex)
- func SetupLog() error
- func SetupRoutes() *mux.Mux
- func SetupServices()
- func SetupView()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleLegal ¶
func HandleLegal(w http.ResponseWriter, r *http.Request) error
HandlePrivacy displays the home page responds to GET /privacy
func ScheduleAt ¶
ScheduleAt schedules execution for a particular time and at intervals thereafter. If interval is 0, the function will be called only once. Callers should call close(task) before exiting the app or to stop repeating the action.
func SetupAssets ¶
func SetupAssets()
SetupAssets compiles or copies our assets from src into the public assets folder.
func SetupDatabase ¶
SetupDatabase sets up the db with query given our server config.
func SetupRoutes ¶
SetupRoutes creates a new router and adds the routes for this app to it.
func SetupServices ¶
func SetupServices()
SetupServices sets up external services from our config file
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.