service

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValuePair

type KeyValuePair struct {
	Key   string
	Value string
}

type Service

type Service interface {
	CreateBucket(name string) error
	DeleteBucket(name string) error
	GetBuckets() ([]string, error)
	GetAllData(bucket string) (interface{}, error)
	Get(bucket, key string) (string, error)
	Set(bucket, key string, value interface{}) error
	Delete(bucket, key string) error
}

func NewService

func NewService(repo dbase.Repository) Service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL