Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminSession ¶
type AdminSession struct {
// contains filtered or unexported fields
}
func NewAdminSessionMiddleware ¶
func NewAdminSessionMiddleware(jsonWebToken *jwt.JSONWebToken, sess session.Session) *AdminSession
func (*AdminSession) Verify ¶
func (s *AdminSession) Verify(next http.HandlerFunc) http.HandlerFunc
Verify will verify the incomming request by checking authorization header.
type CustomerSession ¶
type CustomerSession struct {
// contains filtered or unexported fields
}
func NewCustomerSessionMiddleware ¶
func NewCustomerSessionMiddleware(jsonWebToken *jwt.JSONWebToken, sess session.Session) *CustomerSession
func (*CustomerSession) Verify ¶
func (s *CustomerSession) Verify(next http.HandlerFunc) http.HandlerFunc
Verify will verify the incomming request by checking authorization header.
type InternalService ¶
type InternalService interface {
Verify(http.HandlerFunc) http.HandlerFunc
}
Click to show internal directories.
Click to hide internal directories.