Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMemoryStore ¶
func NewMemoryStore() *memoryStore
Types ¶
type PersistentStore ¶
type PersistentStore interface { // Returns data stream. Load(ctx context.Context) ([]byte, error) // Returns modified time and its existence of the stream. // If the second returned value is false, the data does not exists. ModTime(ctx context.Context) (time.Time, bool, error) // Saves given data stream. Save(ctx context.Context, data []byte) error }
func NewCompressedStore ¶
func NewCompressedStore(store PersistentStore) PersistentStore
func NewFileStore ¶
func NewFileStore(path string) PersistentStore
func NewS3Store ¶
func NewS3Store( region string, bucketName string, key string, ) (PersistentStore, error)
Click to show internal directories.
Click to hide internal directories.