db

package
v0.0.0-...-ef58c7a Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClient

func WithClient(client *dynamodb.Client) func(*CountStore)

Types

type CountStore

type CountStore struct {
	// contains filtered or unexported fields
}

func NewCountStore

func NewCountStore(tableName, region string, options ...OptionsFunc) (s *CountStore, err error)

func (CountStore) BatchGet

func (s CountStore) BatchGet(ctx context.Context, ids ...string) (counts []int, err error)

func (CountStore) Get

func (s CountStore) Get(ctx context.Context, id string) (count int, err error)

func (CountStore) Increment

func (s CountStore) Increment(ctx context.Context, id string) (count int, err error)

type OptionsFunc

type OptionsFunc func(*CountStore)

Jump to

Keyboard shortcuts

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