auth

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Author

func Author(cfg *config.Config) gin.HandlerFunc

Types

type AuthConfig

type AuthConfig struct {
	// contains filtered or unexported fields
}

type SsoReply

type SsoReply struct {
	ReqCode int32     `json:"REQ_CODE"`
	ReqData *UserInfo `json:"REQ_DATA"`
	ReqFlag bool      `json:"REQ_FLAG"`
	ReqMsg  string    `json:"REQ_MSG"`
}

type UserInfo

type UserInfo struct {
	UserId   uint64 `json:"userId"`
	UserName string `json:"username"`
	Expire   int64
}

Jump to

Keyboard shortcuts

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