connections

package
v0.0.0-...-7d9b26b Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

func (*Connection) Connect

func (c *Connection) Connect()

Connect to DynamoDB

type ConnectionPool

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

func (*ConnectionPool) Deregister

func (this *ConnectionPool) Deregister(alias string)

Deregister a connection

func (*ConnectionPool) DisconnectAll

func (this *ConnectionPool) DisconnectAll()

Disconnect all connections

func (*ConnectionPool) Get

func (this *ConnectionPool) Get(alias string) Connector

Get a connection. nil is returned if the connection does not exist

func (*ConnectionPool) List

func (this *ConnectionPool) List() map[string]Connector

List all connection names

func (*ConnectionPool) Register

func (this *ConnectionPool) Register(alias, accessKey, secretKey, region string) (Connector, error)

Register DynamoDB configuration. Set region to "local" to connect to DynamoDB Local on port 8000

type Connector

type Connector interface {
	Connect()
}

Jump to

Keyboard shortcuts

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