Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCoockieSession ¶
func NewCoockieSession() (sess echo.MiddlewareFunc)
Types ¶
type DataMessage ¶
type DataMessage struct {
Status int `json:"status" form:"status" query:"status"`
Data interface{} `json:"data" form:"data" query:"data"`
}
type GatewayServer ¶
type GatewayServer struct {
*echo.Echo // web service
*casbin.Enforcer // authorization service
DefaultRegisterRole string // Default New User Role
// 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
type Message ¶
type Message struct {
Status int `json:"status" form:"status" query:"status"`
Message interface{} `json:"message" form:"message" query:"message"`
}
type SuccessMessage ¶
Click to show internal directories.
Click to hide internal directories.