Documentation ¶
Index ¶
- func GenerateClient(session Session, app app.Info, auth string, expire int64) (string, error)
- func GenerateServer(session Session, app app.Info, auth string, expire int64) (string, error)
- func GenerateServerToken(source app.Source) string
- func IsClientAuthenticate(source app.Source) bool
- func IsServerAuthenticate(source app.Source) bool
- func SetClientAuthenticate(check Check)
- func SetServerAuthenticate(check Check)
- func UserTokenToServerToken(userToken, source string) (string, error)
- type AuthenticateFunc
- type Check
- type Key
- type Session
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateClient ¶
func GenerateServer ¶
func GenerateServerToken ¶
func IsClientAuthenticate ¶
func IsServerAuthenticate ¶
func SetClientAuthenticate ¶
func SetClientAuthenticate(check Check)
func SetServerAuthenticate ¶
func SetServerAuthenticate(check Check)
func UserTokenToServerToken ¶
UserTokenToServerToken 从用户端到服务器,服务器到服务器之间需要的认证
Types ¶
type Token ¶
func AuthenticateWithClient ¶
func AuthenticateWithServer ¶
func (*Token) GetAuthType ¶
Click to show internal directories.
Click to hide internal directories.