Documentation ¶
Index ¶
- type DynamoBackend
- type DynamoDB
- func (d *DynamoDB) AutoMigrate(dst ...interface{}) error
- func (d *DynamoDB) Create(value interface{}) error
- func (d *DynamoDB) Filter(dest interface{}, conds ...interface{}) error
- func (d *DynamoDB) First(dest interface{}, conds ...interface{}) error
- func (d *DynamoDB) Get(dest interface{}, key string) error
- func (d *DynamoDB) GetUser(dest interface{}, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamoBackend ¶
type DynamoBackend struct {
// contains filtered or unexported fields
}
func (*DynamoBackend) Connect ¶
func (b *DynamoBackend) Connect() (gorf.Db, error)
cfg, err := config.LoadDefaultConfig(context.TODO(), config.WithRegion("us-west-2"))
if err != nil { log.Fatalf("unable to load SDK config, %v", err) }
func (*DynamoBackend) Disconnect ¶
func (b *DynamoBackend) Disconnect() error
type DynamoDB ¶
func (*DynamoDB) AutoMigrate ¶
Click to show internal directories.
Click to hide internal directories.