Documentation
¶
Index ¶
- func DecodeToken(cfe ClientIfe, token string) (*common.SessionData, error)
- func GetCluster(cfe ClientIfe) func(http.ResponseWriter, *http.Request, httprouter.Params)
- func Logout(cfe ClientIfe) func(http.ResponseWriter, *http.Request, httprouter.Params)
- func Redirect(cfe ClientIfe, w http.ResponseWriter)
- func Register(cfe ClientIfe)
- func SetCookie(cfe ClientIfe, w http.ResponseWriter, session *common.SessionData)
- func Token(cfe ClientIfe) func(http.ResponseWriter, *http.Request, httprouter.Params)
- type ClientIfe
- type LoginData
- type SDK
- func (s *SDK) HttpCheckPassword(username string, password string) (bool, error)
- func (s *SDK) HttpGet(username string) (*UserData, error)
- func (s *SDK) RPCCheckPassword(username string, password string) (bool, error)
- func (s *SDK) RPCGet(username string) (*UserData, error)
- func (s *SDK) SetServ(url string)
- type SessionData
- type UCServer
- func (s *UCServer) CheckPassword(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (s *UCServer) Create(w http.ResponseWriter, r *http.Request, parms httprouter.Params)
- func (s *UCServer) Delete(w http.ResponseWriter, r *http.Request, parms httprouter.Params)
- func (s *UCServer) GetClients(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (s *UCServer) GetProp() map[string]string
- func (s *UCServer) Login(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (s *UCServer) LoginPage(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (s *UCServer) RPC(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (s *UCServer) RPCCheckPassword(logindata LoginData, reply *bool) error
- func (s *UCServer) RPCRSA(_ string, reply *string) error
- func (s *UCServer) RPCRegister(user UserData, reply *bool) error
- func (s *UCServer) RPCSearch(key string, reply *UserDataNoPassword) error
- func (s *UCServer) RPCUpdate(user UserDataNoPassword, reply *bool) error
- func (s *UCServer) RSA(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (s *UCServer) Register(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (s *UCServer) RegisterPage(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)
- func (s *UCServer) Run(port string)
- func (s *UCServer) SSODecodeToken(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (s *UCServer) SSOIndex(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (s *UCServer) Search(w http.ResponseWriter, r *http.Request, param httprouter.Params)
- func (s *UCServer) SetSSO(sername string, sname string, ssourl string, domain string)
- func (s *UCServer) Start(port string)
- func (s *UCServer) Update(w http.ResponseWriter, r *http.Request, parms httprouter.Params)
- type UpdateData
- type UserData
- type UserDataNoPassword
- type UserIndex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeToken ¶
func DecodeToken(cfe ClientIfe, token string) (*common.SessionData, error)
func GetCluster ¶
func GetCluster(cfe ClientIfe) func(http.ResponseWriter, *http.Request, httprouter.Params)
func Logout ¶
func Logout(cfe ClientIfe) func(http.ResponseWriter, *http.Request, httprouter.Params)
func Redirect ¶
func Redirect(cfe ClientIfe, w http.ResponseWriter)
func SetCookie ¶
func SetCookie(cfe ClientIfe, w http.ResponseWriter, session *common.SessionData)
func Token ¶
func Token(cfe ClientIfe) func(http.ResponseWriter, *http.Request, httprouter.Params)
Types ¶
type SDK ¶
type SDK struct {
// contains filtered or unexported fields
}
func (*SDK) HttpCheckPassword ¶
func (*SDK) RPCCheckPassword ¶
type SessionData ¶
type UCServer ¶
func (*UCServer) CheckPassword ¶
func (s *UCServer) CheckPassword(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*UCServer) Create ¶
func (s *UCServer) Create(w http.ResponseWriter, r *http.Request, parms httprouter.Params)
func (*UCServer) Delete ¶
func (s *UCServer) Delete(w http.ResponseWriter, r *http.Request, parms httprouter.Params)
func (*UCServer) GetClients ¶
func (s *UCServer) GetClients(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*UCServer) Login ¶
func (s *UCServer) Login(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*UCServer) LoginPage ¶
func (s *UCServer) LoginPage(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*UCServer) RPC ¶
func (s *UCServer) RPC(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*UCServer) RPCCheckPassword ¶
func (*UCServer) RPCSearch ¶
func (s *UCServer) RPCSearch(key string, reply *UserDataNoPassword) error
func (*UCServer) RPCUpdate ¶
func (s *UCServer) RPCUpdate(user UserDataNoPassword, reply *bool) error
func (*UCServer) RSA ¶
func (s *UCServer) RSA(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*UCServer) Register ¶
func (s *UCServer) Register(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*UCServer) RegisterPage ¶
func (s *UCServer) RegisterPage(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)
func (*UCServer) SSODecodeToken ¶
func (s *UCServer) SSODecodeToken(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*UCServer) SSOIndex ¶
func (s *UCServer) SSOIndex(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*UCServer) Search ¶
func (s *UCServer) Search(w http.ResponseWriter, r *http.Request, param httprouter.Params)
func (*UCServer) Update ¶
func (s *UCServer) Update(w http.ResponseWriter, r *http.Request, parms httprouter.Params)
type UpdateData ¶
type UserDataNoPassword ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.