Versions in this module Expand all Collapse all v0 v0.1.1 Aug 2, 2020 Changes in this version + func UserAdd(name string, passwd string) error + func UserDel(name string) error + func UserDisable(name string) error + func UserEnable(name string) error + func UserStatUpdate(name string, stat int64) error + func UserUpdateNotice(callback func(event db.WatchEvent)) error + func UserUpdateToken(name string) error + func UsergroupAdd(name string) error + func UsergroupDel(name string) error + func UsergroupStatUpdate(name string, stat int64) error + func UsergroupUpdateNotice(callback func(event db.WatchEvent)) error + func UsergroupUsed(name string) error + func UsergroupUserUpdate(name string, user []string) error + func Usergroupunused(name string) error + type User struct + Date string + ID string + Name string + Stat int64 + Status string + Token string + func UserAllGet() ([]*User, error) + func UserGet(name string) (*User, error) + type UserSortNew []*User + func (a UserSortNew) Len() int + func (a UserSortNew) Less(i, j int) bool + func (a UserSortNew) Swap(i, j int) + type Usergroup struct + Date string + ID string + Name string + Stat int64 + Status string + User []string + func UsergroupAllGet() ([]*Usergroup, error) + func UsergroupGet(name string) (*Usergroup, error) + type UsergroupSortNew []*Usergroup + func (a UsergroupSortNew) Len() int + func (a UsergroupSortNew) Less(i, j int) bool + func (a UsergroupSortNew) Swap(i, j int)