auth

package
v0.0.0-...-7a34eef Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckBaiscAuth

func CheckBaiscAuth(token string) (bool, error)

func GenerateBasicToken

func GenerateBasicToken(username, password string) string

GenerateBasicToken 生成 Baisc 认证 token

func GetBasicAuthInfo

func GetBasicAuthInfo(basicToken string) (username, password string, err error)

GetBasicAuthInfo 从 basicToken 中获取用户信息

Types

type Auth

type Auth interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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