~tsileo/blobstash

ref: b178995e346d blobstash/pkg/client/interface/interface.go -rw-r--r-- 513 bytes
b178995eThomas Sileo vendor: update deps 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package client

import "a4.io/blobstash/pkg/client/response"

type KvStorer interface {
	Put(string, string, int) (*response.KeyValue, error)
	Get(string, int) (*response.KeyValue, error)
	Versions(string, int, int, int) (*response.KeyValueVersions, error)
	Keys(string, string, int) ([]*response.KeyValue, error)
}

type BlobStorer interface {
	Get(string) ([]byte, error)
	Enumerate(chan<- string, string, string, int) error
	Stat(string) (bool, error)
	Put(string, []byte) error
	WaitBlobs()
	ProcessBlobs()
}