Documentation
¶
Index ¶
- type Context
- type Engine
- func (e *Engine) Handle(router string, f HandlerFunc)
- func (e *Engine) HandleDir(router string, dirPath string, Index string)
- func (e *Engine) HandleFile(router string, filePath string)
- func (e *Engine) HandleProxy(router string, url string)
- func (e *Engine) Run(addr string) (err error)
- func (e *Engine) ServeGemini(conn net.Conn)
- type HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct { Cert tls.Certificate RouterMap map[string]HandlerFunc DefaultLang string AutoRedirect bool AutoRedirectUrl string }
func (*Engine) Handle ¶
func (e *Engine) Handle(router string, f HandlerFunc)
func (*Engine) HandleFile ¶
func (*Engine) HandleProxy ¶
func (*Engine) ServeGemini ¶
type HandlerFunc ¶
type HandlerFunc func(*Context)
Click to show internal directories.
Click to hide internal directories.