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: 0

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