Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCoockieSession ¶
func NewCoockieSession() (sess echo.MiddlewareFunc)
Types ¶
type GatewayServer ¶
type GatewayServer struct { *echo.Echo // web service *casbin.Enforcer // authorization service DefaultRegisterRole string // Default New User Group // contains filtered or unexported fields }
func NewGatewayServer ¶
func NewGatewayServer(connStr string, resourceHostStr string, defaultRole ...string) (s *GatewayServer)
NewGatewayServer instance
func (*GatewayServer) BasicAuthSessionMw ¶
func (s *GatewayServer) BasicAuthSessionMw(next echo.HandlerFunc) echo.HandlerFunc
BasicAuthSessionMw is used for reading basic auth header and save username if it passed
Click to show internal directories.
Click to hide internal directories.