db

package
v0.0.0-...-fea7372 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 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