Documentation ¶
Index ¶
- type Celeritas
- func (c *Celeritas) BuildDSN() string
- func (c *Celeritas) CreateDirIfNotExist(path string) error
- func (c *Celeritas) CreateFileIfNotExist(path string) error
- func (c *Celeritas) Init(p initPaths) error
- func (c *Celeritas) ListenAndServe()
- func (c *Celeritas) New(rootPath string) error
- func (c *Celeritas) OpenDB(dbType, dsn string) (*sql.DB, error)
- func (c *Celeritas) RandomString(n int) string
- func (c *Celeritas) SessionLoad(next http.Handler) http.Handler
- type Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Celeritas ¶
type Celeritas struct { AppName string Debug bool Version string InfoLog *log.Logger ErrorLog *log.Logger RootPath string Routes *chi.Mux Render *render.Render Session *scs.SessionManager DB Database JetViews *jet.Set // contains filtered or unexported fields }
func (*Celeritas) CreateDirIfNotExist ¶
func (*Celeritas) CreateFileIfNotExist ¶
func (*Celeritas) ListenAndServe ¶
func (c *Celeritas) ListenAndServe()
ListenAndServe Starts the web server
func (*Celeritas) RandomString ¶
RandomString Generate random string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.