database

package module
v0.0.0-...-ad5d431 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: GPL-3.0 Imports: 7 Imported by: 1

Documentation

Overview

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	ProcessingTableName = "StrikerProcessing"
)
View Source
const (
	RulesTableName = "StrikerRules"
)
View Source
const (
	SimulationTableName = "StrikerSimulation"
)
View Source
const (
	StrategyTableName = "StrikerStrategy"
)

Variables

This section is empty.

Functions

func CreateSession

func CreateSession() *session.Session

Initialize a session that the SDK will use to load credentials from the shared credentials file ~/.aws/credentials and region from the shared configuration file ~/.aws/config.

func ProcessingDelete

func ProcessingDelete(target, guid string) error

func ProcessingInsert

func ProcessingInsert(target, guid, host string, epoch int64, payload string) error

func SimulationDelete

func SimulationDelete(guid string) error

func SimulationInsert

func SimulationInsert(target, guid, host, strategy, rules, decks string, epoch int64, duration, payload string) error

func StrategyScan

func StrategyScan(strategy, rules, decks string) (*dynamodb.ScanOutput, error)

Types

type TableRules

type TableRules struct {
	Rules             string
	Decks             string
	HitSoft17         bool
	Surrender         bool
	DoubleAnyTwoCards bool
	DoubleAfterSplit  bool
	ResplitAces       bool
	HitSplitAces      bool
}

func RulesSelect

func RulesSelect(rules, decks string) (*TableRules, error)

Jump to

Keyboard shortcuts

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