Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Batch(batch *entity.BatchRequest) (*[]entity.KeyValue, error) Scan(sr entity.ScanRequest) (*[]entity.KeyValue, error) Set(kv *entity.KeyValue) (*entity.KeyValue, error) Get(key string) (*entity.KeyValue, error) Delete(key string) error }
func NewRepository ¶
func NewRepository() Repository
type Service ¶
type Service interface { Batch(batch *entity.BatchRequest) (*[]entity.KeyValue, error) Scan(sr entity.ScanRequest) (*[]entity.KeyValue, error) Set(kv *entity.KeyValue) (*entity.KeyValue, error) Get(key string) (*entity.KeyValue, error) Delete(key string) error }
func NewService ¶
func NewService(r Repository) Service
Click to show internal directories.
Click to hide internal directories.