mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-13 23:31:34 +00:00
Add comments
This commit is contained in:
parent
225cce9c77
commit
b04dfae9c5
@ -7,8 +7,10 @@ import (
|
|||||||
"github.com/matrix-org/util"
|
"github.com/matrix-org/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Sync handles HTTP requests to /sync
|
||||||
type Sync struct{}
|
type Sync struct{}
|
||||||
|
|
||||||
|
// OnIncomingRequest implements util.JSONRequestHandler
|
||||||
func (s *Sync) OnIncomingRequest(req *http.Request) (interface{}, *util.HTTPError) {
|
func (s *Sync) OnIncomingRequest(req *http.Request) (interface{}, *util.HTTPError) {
|
||||||
logger := req.Context().Value(util.CtxValueLogger).(*log.Entry)
|
logger := req.Context().Value(util.CtxValueLogger).(*log.Entry)
|
||||||
logger.Info("Doing stuff...")
|
logger.Info("Doing stuff...")
|
||||||
|
@ -7,9 +7,11 @@ import (
|
|||||||
"github.com/matrix-org/util"
|
"github.com/matrix-org/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// SendMessage handles HTTP requests to /rooms/$room_id/send/$event_type
|
||||||
type SendMessage struct {
|
type SendMessage struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// OnIncomingRequest implements util.JSONRequestHandler
|
||||||
func (s *SendMessage) OnIncomingRequest(req *http.Request) (interface{}, *util.HTTPError) {
|
func (s *SendMessage) OnIncomingRequest(req *http.Request) (interface{}, *util.HTTPError) {
|
||||||
logger := req.Context().Value(util.CtxValueLogger).(*log.Entry)
|
logger := req.Context().Value(util.CtxValueLogger).(*log.Entry)
|
||||||
logger.Info("Doing stuff...")
|
logger.Info("Doing stuff...")
|
||||||
|
Loading…
Reference in New Issue
Block a user