use go-micro/v2, render file system store manager

This commit is contained in:
A.Unger
2020-01-30 16:28:29 +01:00
parent 755d3e554d
commit 31023b25b8
3 changed files with 111 additions and 0 deletions
+37
View File
@@ -1,5 +1,42 @@
// Package store implements the go-micro store interface
package store
import (
mstore "github.com/micro/go-micro/v2/store"
)
// Store interacts with the filesystem to manage account information
type Store struct{}
// New returns a new file system store manager
func New() Store {
return Store{}
}
// Init implements the store interface
func (s *Store) Init(...mstore.Options) {}
// List implements the store interface
func (s *Store) List() ([]*mstore.Record, error) {
return nil, nil
}
// Read implements the store interface
func (s *Store) Read(key string, opts ...mstore.ReadOption) ([]*mstore.Record, error) {
return nil, nil
}
// Write implements the store interface
func (s *Store) Write(*mstore.Record) error {
return nil
}
// Delete implements the store interface
func (s *Store) Delete(key string) error {
return nil
}
// String implements the store interface, and the stringer interface
func (s *Store) String() string {
return "store"
}