Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTokenFromAuthEmployee ¶
func CreateTokenFromAuthEmployee(employee *types.AuthEmployee) string
func JWTAuthenticate ¶
func JWTAuthenticate(ctx context.Context, store store.EmployeeStorer, next http.Handler) http.HandlerFunc
Types ¶
type AuthHandler ¶
type AuthHandler struct {
// contains filtered or unexported fields
}
func NewAuthHandler ¶
func NewAuthHandler(store store.EmployeeStorer) *AuthHandler
func (*AuthHandler) HandleAuth ¶
func (h *AuthHandler) HandleAuth(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.