casdoor

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CasdoorOrganization string

Functions

func AddUser

func AddUser(user *auth.User) bool

func AddUsers

func AddUsers(users []*auth.User) bool

func AddUsersInBatch

func AddUsersInBatch(users []*auth.User) bool

func GetOnlineUserCount

func GetOnlineUserCount() int

func GetSortedUsers

func GetSortedUsers(sorter string, limit int) []*auth.User

func GetUser

func GetUser(name string) *auth.User

func GetUserByEmail

func GetUserByEmail(email string) *auth.User

func GetUserCount

func GetUserCount() int

func GetUsers

func GetUsers() []*auth.User

func InitCasdoorAdapter

func InitCasdoorAdapter()

func UpdateUser

func UpdateUser(owner string, name string, user *auth.User) bool

Types

type Adapter

type Adapter struct {
	Engine *xorm.Engine
	// contains filtered or unexported fields
}

Adapter represents the MySQL adapter for policy storage.

func NewAdapter

func NewAdapter(driverName string, dataSourceName string, dbName string) *Adapter

NewAdapter is the constructor for Adapter.

type Session

type Session struct {
	SessionKey    string  `xorm:"char(64) notnull pk"`
	SessionData   []uint8 `xorm:"blob"`
	SessionExpiry int     `xorm:"notnull"`
}

Jump to

Keyboard shortcuts

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