datastore

package
v0.0.0-...-e5a0b23 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Asc  Order = true
	Desc Order = false

	Inf int = math.MaxInt
)

Variables

View Source
var (
	// ErrNotFound is key not found err
	ErrNotFound = dynamo.ErrNotFound
)

Functions

This section is empty.

Types

type Client

type Client interface {
	Put(name string, id int, object interface{}) error
	GetObject(name string, id int) (activitystream.Object, error)
	TakeObject(name string, base int, cnt int, order Order) ([]activitystream.Object, error)

	Inc(key string) (int, error)
	// Top returns count of the key. if key does not exist, return (0, ErrNotFound)
	Top(key string) (int, error)
}

func NewClient

func NewClient(region, tableName string) (Client, error)

type Order

type Order bool

Jump to

Keyboard shortcuts

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