auth

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameKey     = "user"
	PasswordKey = "password"
)

Variables

View Source
var (
	ErrorFailed = errorhandler.DefaultErrHandler.LNewErrorDesc(10024, "user_name or password never correct")
)

Functions

func NewBasicAuth

func NewBasicAuth(userName, password string) plugin.Plugin

Types

type LRPCAuthorization

type LRPCAuthorization struct {
	plugin.Abstract
	UserName, Password string
}

func (*LRPCAuthorization) Receive4S

func (a *LRPCAuthorization) Receive4S(pub *plugin.Context, msg *message.Message) perror.LErrorDesc

func (*LRPCAuthorization) Send4C

Jump to

Keyboard shortcuts

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