dendrite/clientapi/readers/sync.go

22 lines
487 B
Go
Raw Normal View History

package readers
import (
"net/http"
log "github.com/Sirupsen/logrus"
"github.com/matrix-org/util"
)
2017-02-03 10:32:55 -06:00
// Sync handles HTTP requests to /sync
type Sync struct{}
2017-02-03 10:32:55 -06:00
// OnIncomingRequest implements util.JSONRequestHandler
func (s *Sync) OnIncomingRequest(req *http.Request) (interface{}, *util.HTTPError) {
logger := req.Context().Value(util.CtxValueLogger).(*log.Entry)
logger.Info("Doing stuff...")
return nil, &util.HTTPError{
Code: 404,
Message: "Not implemented yet",
}
}