repository

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoDB

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

func NewDynamoDB

func NewDynamoDB(tableName string) (*DynamoDB, error)

func (*DynamoDB) GetValue1000

func (d *DynamoDB) GetValue1000(ctx context.Context, key string) (int, error)

func (*DynamoDB) StoreValue1000

func (d *DynamoDB) StoreValue1000(ctx context.Context, key string, value1000 int) error

type DynamoDBEntry

type DynamoDBEntry struct {
	Key       string
	Value1000 int
}

type File

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

func NewFile

func NewFile(baseDir string) *File

func (*File) GetValue1000

func (f *File) GetValue1000(ctx context.Context, key string) (int, error)

func (*File) StoreValue1000

func (f *File) StoreValue1000(ctx context.Context, key string, value1000 int) error

type InMemory

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

func NewInMemory

func NewInMemory() *InMemory

func (*InMemory) GetValue1000

func (r *InMemory) GetValue1000(ctx context.Context, key string) (int, error)

func (*InMemory) StoreValue1000

func (r *InMemory) StoreValue1000(ctx context.Context, key string, value int) error

Jump to

Keyboard shortcuts

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