Files
token-go/ctx/request_storage.go
2023-05-02 20:44:27 +08:00

13 lines
260 B
Go

package ctx
type StorageKey string
// ReqStorage
// Use to set-get-delete data,and it'll be cleaned after request
type ReqStorage interface {
Source() interface{}
Get(key StorageKey) interface{}
Set(key StorageKey, value string)
Delete(key StorageKey)
}