secure

package
v0.0.0-...-82e7740 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: MIT Imports: 14 Imported by: 1

README

web-secure GoDoc

secure library for Go

Installation

go get gopkg.in/goyy/goyy.v0/web/secure

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncryptPasswd

func EncryptPasswd(passwd string) string

EncryptPasswd passwd encryption.

func IsAnyPermission

func IsAnyPermission(c xhttp.Context, permissions string) bool

IsAnyPermission by permissions to determine whether there is authority.

func IsPermission

func IsPermission(c xhttp.Context, permission string) bool

IsPermission by permission to determine whether there is authority.

func Login

func Login(c xhttp.Context, loginName, passwd string) error

Login use the user name and password to log in.

func Logout

func Logout(c xhttp.Context) error

Logout exit the login operation.

func SetLocale

func SetLocale(locale string)

SetLocale set the i18n locale.

func SetPasswdKey

func SetPasswdKey(key string)

SetPasswdKey set the passwdKey.

func SetPriority

func SetPriority(value int)

SetPriority set the priority of the logger.

Types

This section is empty.

Directories

Path Synopsis
generated by xgen -- DO NOT EDIT generated by xgen -- DO NOT EDIT generated by xgen -- DO NOT EDIT generated by xgen -- DO NOT EDIT generated by xgen -- DO NOT EDIT generated by xgen -- DO NOT EDIT generated by xgen -- DO NOT EDIT generated by xgen -- DO NOT EDIT generated by xgen -- DO NOT EDIT
generated by xgen -- DO NOT EDIT generated by xgen -- DO NOT EDIT generated by xgen -- DO NOT EDIT generated by xgen -- DO NOT EDIT generated by xgen -- DO NOT EDIT generated by xgen -- DO NOT EDIT generated by xgen -- DO NOT EDIT generated by xgen -- DO NOT EDIT generated by xgen -- DO NOT EDIT

Jump to

Keyboard shortcuts

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