testingutil

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RECORD_NUM    = 1000
	TESTDATA_PATH = "./testdata/1.jsonl"
)

Variables

This section is empty.

Functions

func CleanBackupTestData

func CleanBackupTestData() error

func CreateBackupTestData

func CreateBackupTestData() error

func CreateTable

func CreateTable(opt *TableOption) (tableName string, err error)

func DeleteTable

func DeleteTable() error

func InitClient

func InitClient(opt *ClientOption) *dynamodb.Client

Types

type ClientOption

type ClientOption struct {
	Local string
}

type Record

type Record struct {
	Pk        string `json:"pk"`
	Sk        string `json:"sk"`
	Number    int    `json:"number"`
	CreatedAt int64  `json:"createdAt"`
	UpdatedAt int64  `json:"updatedAt"`
}

type TableOption

type TableOption struct {
	Mode      types.BillingMode
	Secondary bool
}

Jump to

Keyboard shortcuts

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