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