Documentation ¶
Index ¶
- func Error(format string, a ...interface{}) error
- func Format(format string, a ...interface{}) string
- func Hash(a string) string
- type RouteData
- type Server
- func (server *Server) Configure(templateLocation string, routeData []RouteData) error
- func (server *Server) CreateAuth(c *gin.Context)
- func (server *Server) SetAuthRedirectPath(path string)
- func (server *Server) SetAuthTimeout(dur time.Duration)
- func (server *Server) SetTLSInfo(certFile, keyFile string)
- func (server *Server) Start(uri string) chan error
- func (server *Server) Stop() error
- func (server *Server) VerifyAuth(c *gin.Context) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RouteData ¶
type RouteData struct { Verb string Path string Handler gin.HandlerFunc RequiresAuth bool }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) CreateAuth ¶
func (*Server) SetAuthRedirectPath ¶
func (*Server) SetAuthTimeout ¶
func (*Server) SetTLSInfo ¶
Click to show internal directories.
Click to hide internal directories.