feat: add adapter

This commit is contained in:
weloe
2023-05-04 22:15:55 +08:00
parent 915624b205
commit a5652cd390
8 changed files with 455 additions and 3 deletions

View File

@@ -11,6 +11,9 @@ type HttpReqStorage struct {
}
func NewReqStorage(req *http.Request) *HttpReqStorage {
if req == nil {
return nil
}
return &HttpReqStorage{source: req.Context()}
}