isginutils

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GinParseError = "parse_error"
	GinAuthError  = "auth_error"
	GinAuthData   = "auth_data"
)

Variables

This section is empty.

Functions

func CheckAuthStatus

func CheckAuthStatus(c *gin.Context) (*errors.Error, *errors.Error, *errors.Error)

When using the auth middleware with at least one Interrupt flag set to false, check if an error occurred.

If any of the 2 first return values is not nil, it means auth process failed.

Third return value refers to an unexpected error that occurred during status check. If not nil, it can be:

  • ErrUnexpectedKey

func HandleError

func HandleError(c *gin.Context, err *errors.Error, opts isginstructs.AuthOptions)

Types

This section is empty.

Jump to

Keyboard shortcuts

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