mirror of
https://github.com/weloe/token-go.git
synced 2025-10-07 16:30:56 +08:00
feat: add adapter
This commit is contained in:
@@ -11,6 +11,9 @@ type HttpReqStorage struct {
|
||||
}
|
||||
|
||||
func NewReqStorage(req *http.Request) *HttpReqStorage {
|
||||
if req == nil {
|
||||
return nil
|
||||
}
|
||||
return &HttpReqStorage{source: req.Context()}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user