github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/istorage/amazondb/types.go (about)

     1  /*
     2   * Copyright (c) 2024-present unTill Pro, Ltd.
     3   * @author Alisher Nurmanov
     4   */
     5  
     6  package amazondb
     7  
     8  import (
     9  	"github.com/aws/aws-sdk-go-v2/service/dynamodb"
    10  )
    11  
    12  type DynamoDBParams struct {
    13  	EndpointURL     string
    14  	Region          string
    15  	AccessKeyID     string
    16  	SecretAccessKey string
    17  	SessionToken    string
    18  }
    19  
    20  type implIAppStorageFactory struct {
    21  	params DynamoDBParams
    22  }
    23  
    24  type implIAppStorage struct {
    25  	client   *dynamodb.Client
    26  	keySpace string
    27  }