user

package
v0.0.0-...-cb472e6 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginInterface

type LoginInterface interface {
	// 判断用户是否登录
	LoginUser(c *gin.Context) (isLogin bool)
	// 获取登录系统的URL
	GetLoginUrl(c *gin.Context) string
	// 获取不同登录方式下对应的用户列表
	GetUserList(c *gin.Context) ([]*metadata.LoginSystemUserInfo, *errors.RawErrorInfo)
}

User 登录系统抽象出来接口

func NewUser

func NewUser(config options.Config, engine *backbone.Engine, cacheCli *redis.Client) LoginInterface

NewUser return user instance by type

type OwnerManager

type OwnerManager struct {
	Engine   *backbone.Engine
	CacheCli *redis.Client
	OwnerID  string
	UserName string
	// contains filtered or unexported fields
}

func NewOwnerManager

func NewOwnerManager(userName, ownerID, language string) *OwnerManager

func (*OwnerManager) InitOwner

func (*OwnerManager) SetHttpHeader

func (m *OwnerManager) SetHttpHeader(key, val string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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