Documentation ¶
Index ¶
- Variables
- func Bootstrap(mu *sync.RWMutex) error
- func RequiresBootStrap() bool
- 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 SetupDefaultUser()
- func SetupLog() error
- func SetupMail()
- func SetupRoutes() *mux.Mux
- func SetupServices()
- func SetupView()
Constants ¶
This section is empty.
Variables ¶
var ( // ConfigDevelopment holds the development config from fragmenta.json ConfigDevelopment map[string]string // ConfigProduction holds development config from fragmenta.json ConfigProduction map[string]string // ConfigTest holds the app test config from fragmenta.json ConfigTest map[string]string )
Functions ¶
func Bootstrap ¶
Bootstrap generates missing config files, sql migrations, and runs the first migrations For this we need to know what to call the app, but we default to abishek/iwillpayforthat for now we could use our current folder name?
func RequiresBootStrap ¶
func RequiresBootStrap() bool
RequiresBootStrap returns true if the app requires bootstrapping
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 SetupDefaultUser ¶
func SetupDefaultUser()
SetupDefaultUser creates the default user for the application if necessary
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.