mirror of https://github.com/gofiber/fiber.git
📦 bump v2.1.2
parent
93cd0c5cc7
commit
ba08653c92
18
app.go
18
app.go
|
@ -31,7 +31,7 @@ import (
|
|||
)
|
||||
|
||||
// Version of current fiber package
|
||||
const Version = "2.1.1"
|
||||
const Version = "2.1.2"
|
||||
|
||||
// Map is a shortcut for map[string]interface{}, useful for JSON returns
|
||||
type Map map[string]interface{}
|
||||
|
@ -39,14 +39,14 @@ type Map map[string]interface{}
|
|||
// Storage interface that is implemented by storage providers for different
|
||||
// middleware packages like cache, limiter, session and csrf
|
||||
type Storage interface {
|
||||
// Get session value. If the ID is not found, it will return an empty []byte
|
||||
Get(id string) ([]byte, error)
|
||||
// Set session value. `exp` will be zero for no expiration.
|
||||
Set(id string, value []byte, exp time.Duration) error
|
||||
// Delete session value
|
||||
Delete(id string) error
|
||||
// Clear clears the storage
|
||||
Clear() error
|
||||
// Get session value. If the ID is not found, it will return an empty []byte
|
||||
Get(id string) ([]byte, error)
|
||||
// Set session value. `exp` will be zero for no expiration.
|
||||
Set(id string, value []byte, exp time.Duration) error
|
||||
// Delete session value
|
||||
Delete(id string) error
|
||||
// Clear clears the storage
|
||||
Clear() error
|
||||
}
|
||||
|
||||
// Handler defines a function to serve HTTP requests.
|
||||
|
|
Loading…
Reference in New Issue