👷‍♂️ add skeletons

This commit is contained in:
Fenny
2020-10-31 06:20:25 +01:00
parent 288df5384e
commit ad49a4d6a6
12 changed files with 243 additions and 0 deletions

41
mysql/mysql.go Normal file
View File

@@ -0,0 +1,41 @@
package mysql
import (
"time"
)
// Storage interface that is implemented by storage providers
type Storage struct {
}
// Config defines the config for mysql storage.
type Config struct {
}
// ConfigDefault is the default config
var ConfigDefault = Config{}
// New creates a new mysql storage
func New(config ...Config) Storage {
return Storage{}
}
// Get value by key
func (store Storage) Get(key string) ([]byte, error) {
return []byte{}, nil
}
// Set key with value
func (store Storage) Set(key string, val []byte, exp time.Duration) error {
return nil
}
// Delete key by key
func (store Storage) Delete(key string) error {
return nil
}
// Clear all keys
func (store Storage) Clear() error {
return nil
}