mirror of
https://github.com/weloe/token-go.git
synced 2025-09-27 03:46:01 +08:00
13 lines
260 B
Go
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)
|
|
}
|