user

package
v0.0.0-...-7378411 Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 (m *OwnerManager) InitOwner() error

type User

type User interface {
	LoginUser(c *gin.Context) (isLogin bool)
	GetUserList(c *gin.Context) (int, interface{})
	GetLoginUrl(c *gin.Context) string
}

func NewUser

func NewUser(config options.Config, engin *backbone.Engine, cacheCli *redis.Client, loginPlg *plugin.Plugin) User

NewUser return user instance by type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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