middleware

package
v0.0.0-...-8f0a619 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

Verify will verify the incomming request by checking authorization header.

type InternalService

type InternalService interface {
	Verify(http.HandlerFunc) http.HandlerFunc
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL