v0.0.328
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 59s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 59s
This commit is contained in:
parent
8a3965f666
commit
55d02b8c65
@ -39,7 +39,7 @@ func Wrap(w *GinWrapper, fn WHandlerFunc) gin.HandlerFunc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if pctx.persistantData.sessionObj != nil {
|
if pctx.persistantData.sessionObj != nil {
|
||||||
err := pctx.persistantData.sessionObj.Finish(reqctx, wrap)
|
err := (*pctx.persistantData.sessionObj).Finish(reqctx, wrap)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
wrap = Error(exerr.Wrap(err, "Failed to finish session").Any("originalResponse", wrap).Build())
|
wrap = Error(exerr.Wrap(err, "Failed to finish session").Any("originalResponse", wrap).Build())
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ type PreContext struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type preContextData struct {
|
type preContextData struct {
|
||||||
sessionObj SessionObject
|
sessionObj *SessionObject
|
||||||
}
|
}
|
||||||
|
|
||||||
func (pctx *PreContext) URI(uri any) *PreContext {
|
func (pctx *PreContext) URI(uri any) *PreContext {
|
||||||
@ -67,7 +67,7 @@ func (pctx *PreContext) WithTimeout(to time.Duration) *PreContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (pctx *PreContext) WithSession(sessionObj SessionObject) *PreContext {
|
func (pctx *PreContext) WithSession(sessionObj SessionObject) *PreContext {
|
||||||
pctx.persistantData.sessionObj = sessionObj
|
pctx.persistantData.sessionObj = &sessionObj
|
||||||
return pctx
|
return pctx
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -164,7 +164,7 @@ func (pctx PreContext) Start() (*AppContext, *gin.Context, *HTTPResponse) {
|
|||||||
ictx, cancel := context.WithTimeout(context.Background(), langext.Coalesce(pctx.timeout, pctx.wrapper.requestTimeout))
|
ictx, cancel := context.WithTimeout(context.Background(), langext.Coalesce(pctx.timeout, pctx.wrapper.requestTimeout))
|
||||||
|
|
||||||
if pctx.persistantData.sessionObj != nil {
|
if pctx.persistantData.sessionObj != nil {
|
||||||
err := pctx.persistantData.sessionObj.Init(pctx.ginCtx, ictx)
|
err := (*pctx.persistantData.sessionObj).Init(pctx.ginCtx, ictx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
cancel()
|
cancel()
|
||||||
return nil, nil, langext.Ptr(Error(exerr.Wrap(err, "Failed to init session").Build()))
|
return nil, nil, langext.Ptr(Error(exerr.Wrap(err, "Failed to init session").Build()))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package goext
|
package goext
|
||||||
|
|
||||||
const GoextVersion = "0.0.327"
|
const GoextVersion = "0.0.328"
|
||||||
|
|
||||||
const GoextVersionTimestamp = "2023-12-02T13:15:19+0100"
|
const GoextVersionTimestamp = "2023-12-02T13:35:18+0100"
|
||||||
|
Loading…
Reference in New Issue
Block a user