From 941352b80db80ab048f7dfc62f3eecaa502f4607 Mon Sep 17 00:00:00 2001 From: lash Date: Sun, 12 Jan 2025 10:44:42 +0000 Subject: [PATCH] Rename session handler to request handler --- cmd/africastalking/main.go | 4 ++-- cmd/async/main.go | 2 +- cmd/http/main.go | 4 ++-- go.mod | 4 ++-- go.sum | 8 ++++---- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/cmd/africastalking/main.go b/cmd/africastalking/main.go index 368cb95..e23e3e9 100644 --- a/cmd/africastalking/main.go +++ b/cmd/africastalking/main.go @@ -143,8 +143,8 @@ func main() { defer stateStore.Close() rp := &at.ATRequestParser{} - bsh := session.NewBaseSessionHandler(cfg, rs, stateStore, userdataStore, rp, hl) - sh := at.NewATSessionHandler(bsh) + bsh := session.NewBaseRequestHandler(cfg, rs, stateStore, userdataStore, rp, hl) + sh := at.NewATRequestHandler(bsh) mux := http.NewServeMux() mux.Handle(env.GetEnv("AT_ENDPOINT", "/"), sh) diff --git a/cmd/async/main.go b/cmd/async/main.go index 79a523e..3f76da5 100644 --- a/cmd/async/main.go +++ b/cmd/async/main.go @@ -149,7 +149,7 @@ func main() { rp := &asyncRequestParser{ sessionId: sessionId, } - sh := session.NewBaseSessionHandler(cfg, rs, stateStore, userdataStore, rp, hl) + sh := session.NewBaseRequestHandler(cfg, rs, stateStore, userdataStore, rp, hl) cfg.SessionId = sessionId rqs := request.RequestSession{ Ctx: ctx, diff --git a/cmd/http/main.go b/cmd/http/main.go index 7d5ed55..becb376 100644 --- a/cmd/http/main.go +++ b/cmd/http/main.go @@ -136,8 +136,8 @@ func main() { defer stateStore.Close() rp := &httpsession.DefaultRequestParser{} - bsh := session.NewBaseSessionHandler(cfg, rs, stateStore, userdataStore, rp, hl) - sh := httpsession.NewHTTPSessionHandler(bsh) + bsh := session.NewBaseRequestHandler(cfg, rs, stateStore, userdataStore, rp, hl) + sh := httpsession.NewHTTPRequestHandler(bsh) s := &http.Server{ Addr: fmt.Sprintf("%s:%s", host, strconv.Itoa(int(port))), Handler: sh, diff --git a/go.mod b/go.mod index ff265db..1c75cc8 100644 --- a/go.mod +++ b/go.mod @@ -6,8 +6,8 @@ require ( git.defalsify.org/vise.git v0.2.3-0.20250103172917-3e190a44568d git.grassecon.net/grassrootseconomics/common v0.0.0-20250112102149-4feac5e490e9 git.grassecon.net/grassrootseconomics/sarafu-api v0.0.0-20250112102608-1152fb71a590 - git.grassecon.net/grassrootseconomics/visedriver v0.8.0-beta.10.0.20250112102450-dcf777bf08d3 - git.grassecon.net/grassrootseconomics/visedriver-africastalking v0.0.0-20250112103524-ca29574a9d0f + git.grassecon.net/grassrootseconomics/visedriver v0.8.0-beta.10.0.20250112104023-611c5a8dfc80 + git.grassecon.net/grassrootseconomics/visedriver-africastalking v0.0.0-20250112104256-7d37d7f5cac5 github.com/alecthomas/assert/v2 v2.2.2 github.com/gofrs/uuid v4.4.0+incompatible github.com/grassrootseconomics/ussd-data-service v1.2.0-beta diff --git a/go.sum b/go.sum index 79546b5..28d17f5 100644 --- a/go.sum +++ b/go.sum @@ -4,10 +4,10 @@ git.grassecon.net/grassrootseconomics/common v0.0.0-20250112102149-4feac5e490e9 git.grassecon.net/grassrootseconomics/common v0.0.0-20250112102149-4feac5e490e9/go.mod h1:wgQJZGIS6QuNLHqDhcsvehsbn5PvgV7aziRebMnJi60= git.grassecon.net/grassrootseconomics/sarafu-api v0.0.0-20250112102608-1152fb71a590 h1:2twsWy9E3aWgKeY1rNaD/CTq2VtAQfaAhOstTQVQQrc= git.grassecon.net/grassrootseconomics/sarafu-api v0.0.0-20250112102608-1152fb71a590/go.mod h1:vgPJiqbRBlpsMt1iFd94onNvE7I9s6r78Ph2CpxOUMs= -git.grassecon.net/grassrootseconomics/visedriver v0.8.0-beta.10.0.20250112102450-dcf777bf08d3 h1:aEy3fuBdKrKs3DC4AcDffed2dRl1I6anVI8DpfmItaE= -git.grassecon.net/grassrootseconomics/visedriver v0.8.0-beta.10.0.20250112102450-dcf777bf08d3/go.mod h1:E6W7ZOa7ZvVr0Bc5ot0LNSwpSPYq4hXlAIvEPy3AJ7U= -git.grassecon.net/grassrootseconomics/visedriver-africastalking v0.0.0-20250112103524-ca29574a9d0f h1:fvgerf6o1m/tTez07wRijT9aMXDhrS25otSHXAbUQ7g= -git.grassecon.net/grassrootseconomics/visedriver-africastalking v0.0.0-20250112103524-ca29574a9d0f/go.mod h1:ETX362FVrWFw7zIyECBczr3MjQNnOsCAin5NVK5BHKA= +git.grassecon.net/grassrootseconomics/visedriver v0.8.0-beta.10.0.20250112104023-611c5a8dfc80 h1:8j7iDSC9lzOM8NexEQlMfEn+3mJStDf66OTZK8ulsho= +git.grassecon.net/grassrootseconomics/visedriver v0.8.0-beta.10.0.20250112104023-611c5a8dfc80/go.mod h1:E6W7ZOa7ZvVr0Bc5ot0LNSwpSPYq4hXlAIvEPy3AJ7U= +git.grassecon.net/grassrootseconomics/visedriver-africastalking v0.0.0-20250112104256-7d37d7f5cac5 h1:byD+vsY9kqCVFX2Kx2+Z3/Lqk10l4MQnUBXm/zLpy20= +git.grassecon.net/grassrootseconomics/visedriver-africastalking v0.0.0-20250112104256-7d37d7f5cac5/go.mod h1:wf5CtGf07LRtnPqr9sefMY+bQK5oASsvzIr7ebs7MWU= github.com/alecthomas/assert/v2 v2.2.2 h1:Z/iVC0xZfWTaFNE6bA3z07T86hd45Xe2eLt6WVy2bbk= github.com/alecthomas/assert/v2 v2.2.2/go.mod h1:pXcQ2Asjp247dahGEmsZ6ru0UVwnkhktn7S0bBDLxvQ= github.com/alecthomas/participle/v2 v2.0.0 h1:Fgrq+MbuSsJwIkw3fEj9h75vDP0Er5JzepJ0/HNHv0g=