Delete store, this is not a core requirement of microservices, will be included in go-platform

This commit is contained in:
Asim
2015-05-25 17:19:13 +01:00
parent 54ad8f253f
commit 23264dded0
8 changed files with 0 additions and 275 deletions

View File

@@ -1,36 +0,0 @@
package store
type Store interface {
Get(string) (*Item, error)
Del(string) error
Put(*Item) error
}
type Item struct {
Key string
Value []byte
}
type options struct{}
type Option func(*options)
var (
DefaultStore = newConsulStore([]string{})
)
func NewStore(addrs []string, opt ...Option) Store {
return newConsulStore(addrs, opt...)
}
func Get(key string) (*Item, error) {
return DefaultStore.Get(key)
}
func Del(key string) error {
return DefaultStore.Del(key)
}
func Put(item *Item) error {
return DefaultStore.Put(item)
}