Documentation
¶
Index ¶
- type Redirector
- func (r *Redirector) Back(code int, fallback ...string)
- func (r *Redirector) Guest(code int, path string)
- func (r *Redirector) Intended(code int, defaults string)
- func (r *Redirector) Previous(fallback ...string) string
- func (r *Redirector) Redirect(code int, path string)
- func (r *Redirector) SetIntendedUrl(url string)
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Redirector ¶
type Redirector struct { Router *Router Session *session.SessionManager GIN *gin.Context }
func (*Redirector) Back ¶
func (r *Redirector) Back(code int, fallback ...string)
func (*Redirector) Guest ¶
func (r *Redirector) Guest(code int, path string)
func (*Redirector) Intended ¶
func (r *Redirector) Intended(code int, defaults string)
func (*Redirector) Previous ¶
func (r *Redirector) Previous(fallback ...string) string
func (*Redirector) Redirect ¶
func (r *Redirector) Redirect(code int, path string)
func (*Redirector) SetIntendedUrl ¶
func (r *Redirector) SetIntendedUrl(url string)
type Router ¶
func (*Router) RelativePath ¶
returns the relative path of the given path
Click to show internal directories.
Click to hide internal directories.