begin boilerplate for golang modules

This commit is contained in:
talksik
2026-01-10 14:53:31 -08:00
parent c4c17a10fe
commit e38e6a9d4b
11 changed files with 120 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
package http
import "net/http"
type AuthHandler interface {
SendCode(w http.ResponseWriter, r *http.Request)
Login(w http.ResponseWriter, r *http.Request)
Logout(w http.ResponseWriter, r *http.Request)
VerifySession(w http.ResponseWriter, r *http.Request)
}
type SendCodeResponse struct {
}
type Session struct {
HumanId string `json:"id"`
TokenId string `json:"token_id"`
}
type authHandlerImpl struct{}
func (a authHandlerImpl) SendCode(w http.ResponseWriter, r *http.Request) {
//TODO implement me
panic("implement me")
}
func (a authHandlerImpl) Login(w http.ResponseWriter, r *http.Request) {
//TODO implement me
panic("implement me")
}
func (a authHandlerImpl) Logout(w http.ResponseWriter, r *http.Request) {
//TODO implement me
panic("implement me")
}
func (a authHandlerImpl) VerifySession(w http.ResponseWriter, r *http.Request) {
//TODO implement me
panic("implement me")
}