casdoor

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 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 *casdoorsdk.User) bool

func AddUsers

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

func AddUsersInBatch

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

func GetOnlineUserCount

func GetOnlineUserCount() int

func GetSortedUsers

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

func GetUser

func GetUser(name string) *casdoorsdk.User

func GetUserByEmail

func GetUserByEmail(email string) *casdoorsdk.User

func GetUserCount

func GetUserCount() int

func GetUsers

func GetUsers() []*casdoorsdk.User

func InitCasdoorAdapter

func InitCasdoorAdapter()

func UpdateUser

func UpdateUser(owner string, name string, user *casdoorsdk.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