Files
mstore/app/handler/service.go
T
2026-02-12 12:00:17 +02:00

48 lines
995 B
Go

/*
* Copyright 2026 Oleg Borodin <onborodin@gmail.com>
*
* This work is published and licensed under a Creative Commons
* Attribution-NonCommercial-NoDerivatives 4.0 International License.
*
* Distribution of this work is permitted, but commercial use and
* modifications are strictly prohibited.
*/
package handler
import (
"mstore/app/operator"
"mstore/app/router"
)
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"
}
*/