2020-03-12 15:41:30 +02:00
|
|
|
package store
|
|
|
|
|
|
|
|
type noopStore struct{}
|
|
|
|
|
|
|
|
func (n *noopStore) Init(opts ...Option) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (n *noopStore) Options() Options {
|
|
|
|
return Options{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (n *noopStore) String() string {
|
|
|
|
return "noop"
|
|
|
|
}
|
|
|
|
|
|
|
|
func (n *noopStore) Read(key string, opts ...ReadOption) ([]*Record, error) {
|
|
|
|
return []*Record{}, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (n *noopStore) Write(r *Record, opts ...WriteOption) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (n *noopStore) Delete(key string, opts ...DeleteOption) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (n *noopStore) List(opts ...ListOption) ([]string, error) {
|
|
|
|
return []string{}, nil
|
|
|
|
}
|
2020-04-08 10:51:10 +02:00
|
|
|
|
|
|
|
func (n *noopStore) Close() error {
|
|
|
|
return nil
|
|
|
|
}
|