schema

package
v0.0.0-...-742da85 Latest Latest
Warning

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

Go to latest
Published: May 20, 2015 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeDefinition

type AttributeDefinition struct {
	AttributeName string
	AttributeType AttributeType
}

type AttributeType

type AttributeType string
const (
	String AttributeType = "S"
	Number AttributeType = "N"
	Binary AttributeType = "B"
)

type CreateRequest

type CreateRequest struct {
	TableName             string
	AttributeDefinitions  []AttributeDefinition
	KeySchema             []KeySchema
	ProvisionedThroughput ProvisionedThroughput
}

func NewCreateRequest

func NewCreateRequest(table string) *CreateRequest

func (*CreateRequest) HashKey

func (r *CreateRequest) HashKey(name string, attributeType AttributeType) *CreateRequest

Simple way to add a hash key and attribute definition in one go.

func (*CreateRequest) RangeKey

func (r *CreateRequest) RangeKey(name string, attributeType AttributeType) *CreateRequest

Simple way to add a hash key and attribute definition in one go.

type CreateResponse

type CreateResponse struct {
	TableDescription TableDescription
}

type KeySchema

type KeySchema struct {
	AttributeName string
	KeyType       KeyType
}

type KeyType

type KeyType string
const (
	HashKey  KeyType = "HASH"
	RangeKey KeyType = "RANGE"
)

type ProvisionedThroughput

type ProvisionedThroughput struct {
	ReadCapacityUnits  uint
	WriteCapacityUnits uint
}

type TableDescription

type TableDescription struct {
	TableName        string
	TableSizeBytes   uint64
	TableStatus      string
	CreationDateTime float64
}

Jump to

Keyboard shortcuts

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