infra

package
v0.0.0-...-4b09a30 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCacheNotFound = errors.New("cache not found")
)

Functions

This section is empty.

Types

type Dynamo

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

func NewDynamo

func NewDynamo(accessKey, secretKey, region, tableName string) *Dynamo

NewDynamo return new instance of dynamo

func (*Dynamo) Create

func (dy *Dynamo) Create(key, payload string, expiration int) error

Create execute creation of item in dynamo

func (*Dynamo) Get

func (dy *Dynamo) Get(key string) (string, int, error)

Get return item of dynamo

Jump to

Keyboard shortcuts

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