authentication

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: MIT Imports: 2 Imported by: 1

README

authentication

go authentication structs

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Errors map[int]string = map[int]string{
	20310000: "authentication.sat.SimpleAuthenticationChecker.ToBytes: fail to marshal",
	20310010: "authentication.sat.SimpleAuthenticationChecker.FromBytes: fail to unmarshal",
	20310020: "authentication.sat.SimpleAuthenticationChecker.Save: fail to save",
	20310030: "authentication.sat.SimpleAuthenticationChecker.Load: fail to load",

	20310100: "authentication.sat.SimpleAuthenticationChecker.Check: DataRLock fail",
	20310110: "authentication.sat.User.Check: fail to unmarshal secret_info",
	20310111: "authentication.sat.User.Check: fail to make hash",

	20310200: "authentication.sat.Request.ToSecretInfo: fail marchal",
}

Errors codes and description

Functions

This section is empty.

Types

type AuthenticationChecker added in v0.0.1

type AuthenticationChecker interface {
	Type() string
	Check(ctx context.Context, userNameRequest string, secretInfo []byte) (ok bool, userName string, err *mft.Error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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