Fix streaming handlers for https.
This commit is contained in:
parent
6da018353a
commit
8be663a0a0
@ -12,6 +12,13 @@ const (
|
|||||||
pathStreamWAL = "stream-wal"
|
pathStreamWAL = "stream-wal"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func (rep *Replicator) RegisterHandlers(mux *http.ServeMux, rootPath string) {
|
||||||
|
mux.HandleFunc(path.Join(rootPath, pathGetInfo), rep.handleGetInfo)
|
||||||
|
mux.HandleFunc(path.Join(rootPath, pathSendState), rep.handleSendState)
|
||||||
|
mux.HandleFunc(path.Join(rootPath, pathStreamWAL), rep.handleStreamWAL)
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: Remove this!
|
||||||
func (rep *Replicator) Handle(w http.ResponseWriter, r *http.Request) {
|
func (rep *Replicator) Handle(w http.ResponseWriter, r *http.Request) {
|
||||||
// We'll handle two types of requests: HTTP GET requests for JSON, or
|
// We'll handle two types of requests: HTTP GET requests for JSON, or
|
||||||
// streaming requets for state or wall.
|
// streaming requets for state or wall.
|
||||||
|
Loading…
Reference in New Issue
Block a user