working commit
This commit is contained in:
@@ -15,7 +15,33 @@ import (
|
||||
)
|
||||
|
||||
func (hand *Handler) SendHello(rctx *router.Context) {
|
||||
|
||||
authSuccess, _ := rctx.Bools[authTag]
|
||||
authUser, _ := rctx.Strings[userTag]
|
||||
|
||||
hand.logg.Debugf("%s:%v", authTag, authSuccess)
|
||||
hand.logg.Debugf("%s:%v", userTag, authUser)
|
||||
|
||||
if authSuccess {
|
||||
|
||||
}
|
||||
|
||||
params := &operator.SendHelloParams{}
|
||||
res, _ := hand.oper.SendHello(params)
|
||||
hand.SendResult(rctx, res)
|
||||
}
|
||||
|
||||
/*
|
||||
func checkGrant(who, subject, operation string) (bool, error) {
|
||||
|
||||
return true, error
|
||||
}
|
||||
|
||||
type Grant struct {
|
||||
AccountID `xxxx-xxxx`
|
||||
Subject `file`
|
||||
Operation `putFile`
|
||||
|
||||
Path "foo/bare"
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user