From 7d72f766985b4b3ec47bdf98f307e7f548c25cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Werner?= Date: Wed, 26 Apr 2023 21:33:56 +0200 Subject: [PATCH] remove deprecated gocover --- README.md | 187 +++++++++++++++++++++++++++--------------------------- 1 file changed, 92 insertions(+), 95 deletions(-) diff --git a/README.md b/README.md index 88742b7e..6b0c0932 100644 --- a/README.md +++ b/README.md @@ -1,95 +1,92 @@ -

- - - Fiber - -
- - # 📦 Storage - - - - - - - - - - - - - -

- -Premade storage drivers that implement the [`Storage`](https://github.com/gofiber/storage/blob/main/storage.go) interface, designed to be used with various [Fiber middlewares](https://github.com/gofiber/fiber/tree/master/middleware). - -```go -// Storage interface for communicating with different database/key-value -// providers. Visit https://github.com/gofiber/storage for more info. -type Storage interface { - // Get gets the value for the given key. - // `nil, nil` is returned when the key does not exist - Get(key string) ([]byte, error) - - // Set stores the given value for the given key along - // with an expiration value, 0 means no expiration. - // Empty key or value will be ignored without an error. - Set(key string, val []byte, exp time.Duration) error - - // Delete deletes the value for the given key. - // It returns no error if the storage does not contain the key, - Delete(key string) error - - // Reset resets the storage and delete all keys. - Reset() error - - // Close closes the storage and will stop any running garbage - // collectors and open connections. - Close() error -} -``` - -## 📑 Storage Implementations - -* [ArangoDB](/arangodb) - - -* [AzureBlob](/azureblob) - - -* [Badger](/badger) - - -* [Bbolt](/bbolt) - - -* [DynamoDB](/dynamodb) - - -* [Memcache](/memcache) - - -* [Memory](/memory) - - -* [MongoDB](/mongodb) - - -* [MSSQL](/mssql) - - -* [MySQL](/mysql) - - -* [Postgres](/postgres) - - -* [Redis](/redis) - - -* [SQLite3](/sqlite3) - - -* [S3](/s3) - - +

+ + + Fiber + +
+ + # 📦 Storage + + + + + + + + + + +

+ +Premade storage drivers that implement the [`Storage`](https://github.com/gofiber/storage/blob/main/storage.go) interface, designed to be used with various [Fiber middlewares](https://github.com/gofiber/fiber/tree/master/middleware). + +```go +// Storage interface for communicating with different database/key-value +// providers. Visit https://github.com/gofiber/storage for more info. +type Storage interface { + // Get gets the value for the given key. + // `nil, nil` is returned when the key does not exist + Get(key string) ([]byte, error) + + // Set stores the given value for the given key along + // with an expiration value, 0 means no expiration. + // Empty key or value will be ignored without an error. + Set(key string, val []byte, exp time.Duration) error + + // Delete deletes the value for the given key. + // It returns no error if the storage does not contain the key, + Delete(key string) error + + // Reset resets the storage and delete all keys. + Reset() error + + // Close closes the storage and will stop any running garbage + // collectors and open connections. + Close() error +} +``` + +## 📑 Storage Implementations + +* [ArangoDB](/arangodb) + + +* [AzureBlob](/azureblob) + + +* [Badger](/badger) + + +* [Bbolt](/bbolt) + + +* [DynamoDB](/dynamodb) + + +* [Memcache](/memcache) + + +* [Memory](/memory) + + +* [MongoDB](/mongodb) + + +* [MSSQL](/mssql) + + +* [MySQL](/mysql) + + +* [Postgres](/postgres) + + +* [Redis](/redis) + + +* [SQLite3](/sqlite3) + + +* [S3](/s3) + +