pomerium/internal/kv/store.go
Bobby DeSimone e82477ea5c
deployment: throw away golanglint-ci defaults (#439)
* deployment: throw away golanglint-ci defaults

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2020-01-26 12:33:45 -08:00

12 lines
402 B
Go

// Package kv defines a Store interfaces that can be implemented by
// datastores to provide key value storage capabilities.
package kv
import "context"
// Store specifies a key value storage interface.
type Store interface {
Set(ctx context.Context, key string, value []byte) error
Get(ctx context.Context, key string) (keyExists bool, value []byte, err error)
Close(ctx context.Context) error
}