user

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserAdd

func UserAdd(name string, passwd string) error

func UserDel

func UserDel(name string) error

func UserDisable

func UserDisable(name string) error

func UserEnable

func UserEnable(name string) error

func UserStatUpdate

func UserStatUpdate(name string, stat int64) error

func UserUpdateNotice

func UserUpdateNotice(callback func(event db.WatchEvent)) error

func UserUpdateToken

func UserUpdateToken(name string) error

func UsergroupAdd

func UsergroupAdd(name string) error

func UsergroupDel

func UsergroupDel(name string) error

func UsergroupStatUpdate

func UsergroupStatUpdate(name string, stat int64) error

func UsergroupUpdateNotice

func UsergroupUpdateNotice(callback func(event db.WatchEvent)) error

func UsergroupUsed

func UsergroupUsed(name string) error

func UsergroupUserUpdate

func UsergroupUserUpdate(name string, user []string) error

func Usergroupunused

func Usergroupunused(name string) error

Types

type User

type User struct {
	ID     string
	Name   string
	Token  string
	Date   string
	Stat   int64
	Status string
}

func UserAllGet

func UserAllGet() ([]*User, error)

func UserGet

func UserGet(name string) (*User, error)

type UserSortNew

type UserSortNew []*User

func (UserSortNew) Len

func (a UserSortNew) Len() int

func (UserSortNew) Less

func (a UserSortNew) Less(i, j int) bool

func (UserSortNew) Swap

func (a UserSortNew) Swap(i, j int)

type Usergroup

type Usergroup struct {
	ID     string
	Name   string
	Date   string
	Stat   int64
	User   []string
	Status string
}

func UsergroupAllGet

func UsergroupAllGet() ([]*Usergroup, error)

func UsergroupGet

func UsergroupGet(name string) (*Usergroup, error)

type UsergroupSortNew

type UsergroupSortNew []*Usergroup

func (UsergroupSortNew) Len

func (a UsergroupSortNew) Len() int

func (UsergroupSortNew) Less

func (a UsergroupSortNew) Less(i, j int) bool

func (UsergroupSortNew) Swap

func (a UsergroupSortNew) Swap(i, j int)

Jump to

Keyboard shortcuts

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