Documentation ¶
Index ¶
- Constants
- Variables
- func ReverseProxyHandler(config config.Config, path, dest string) (http.Handler, error)
- type Info
- type Integrations
- type JSONError
- type LoginPacket
- type RPC
- type SignupPacket
- type Stats
- type System
- func (s *System) ApiHandler(w http.ResponseWriter, r *http.Request)
- func (s *System) Close() error
- func (s *System) Config() config.Config
- func (s *System) DashboardHandler(w http.ResponseWriter, r *http.Request)
- func (s *System) ErrHandler(w http.ResponseWriter, r *http.Request)
- func (s *System) HandleForm(w http.ResponseWriter, r *http.Request)
- func (s *System) HitCounter(h http.Handler) http.Handler
- func (s *System) HomeHandler(w http.ResponseWriter, r *http.Request)
- func (s *System) InitDB() error
- func (s *System) LoginHandler(w http.ResponseWriter, r *http.Request)
- func (s *System) LogoutHandler(w http.ResponseWriter, r *http.Request)
- func (s *System) NewRPC() *RPC
- func (s *System) ReloadConfig() error
- func (s *System) ReloadTemplates() error
- func (s *System) Respawn() error
- func (s *System) Run(router http.Handler) error
- func (s *System) SetCSPHeader(w http.ResponseWriter)
- func (s *System) SetGreylist(g *greylist.List)
- func (s *System) SignupHandler(w http.ResponseWriter, r *http.Request)
- func (s *System) StaticHandler(w http.ResponseWriter, r *http.Request)
- func (s *System) StatusHandler(w http.ResponseWriter, r *http.Request)
- type User
Constants ¶
View Source
const MaxAttempts = 3
Variables ¶
View Source
var ErrBadCredentials = errors.New("bad credentials")
View Source
var ErrExists = errors.New("record already exists")
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
Types ¶
type Integrations ¶ added in v0.0.5
type Integrations struct {
// contains filtered or unexported fields
}
type LoginPacket ¶
type SignupPacket ¶
type System ¶
func (*System) ApiHandler ¶
func (s *System) ApiHandler(w http.ResponseWriter, r *http.Request)
func (*System) DashboardHandler ¶
func (s *System) DashboardHandler(w http.ResponseWriter, r *http.Request)
func (*System) ErrHandler ¶
func (s *System) ErrHandler(w http.ResponseWriter, r *http.Request)
func (*System) HandleForm ¶ added in v0.0.5
func (s *System) HandleForm(w http.ResponseWriter, r *http.Request)
func (*System) HitCounter ¶
HitCounter http middleware that logs and counts
func (*System) HomeHandler ¶
func (s *System) HomeHandler(w http.ResponseWriter, r *http.Request)
func (*System) LoginHandler ¶
func (s *System) LoginHandler(w http.ResponseWriter, r *http.Request)
func (*System) LogoutHandler ¶
func (s *System) LogoutHandler(w http.ResponseWriter, r *http.Request)
func (*System) ReloadConfig ¶ added in v0.0.3
func (*System) ReloadTemplates ¶ added in v0.0.3
func (*System) SetCSPHeader ¶
func (s *System) SetCSPHeader(w http.ResponseWriter)
func (*System) SetGreylist ¶
func (*System) SignupHandler ¶
func (s *System) SignupHandler(w http.ResponseWriter, r *http.Request)
func (*System) StaticHandler ¶
func (s *System) StaticHandler(w http.ResponseWriter, r *http.Request)
func (*System) StatusHandler ¶
func (s *System) StatusHandler(w http.ResponseWriter, r *http.Request)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.