Documentation ¶
Index ¶
- type DbOperationsService
- func (dbo *DbOperationsService) GetMetaData(partitionValue string, sortValue string, platform string, ...) (*models.MetaData, error)
- func (dbo *DbOperationsService) GetPackages(partitionValue string, sortValue string) (*models.ProductDetails, error)
- func (dbo *DbOperationsService) GetRelatedProducts(partitionValue string) (*models.RelatedProducts, error)
- func (dbo *DbOperationsService) GetVersionAll(partitionValue string) ([]string, error)
- func (dbo *DbOperationsService) GetVersionLatest(partitionValue string) (string, error)
- type IDbOperations
- type IDynamoDBOps
- type MockIDbOperations
- func (mdbop *MockIDbOperations) GetMetaData(partitionValue string, sortValue string, platform string, ...) (*models.MetaData, error)
- func (mdbop *MockIDbOperations) GetPackages(partitionValue string, sortValue string) (*models.ProductDetails, error)
- func (mdbop *MockIDbOperations) GetRelatedProducts(partitionValue string) (*models.RelatedProducts, error)
- func (mdbop *MockIDbOperations) GetVersionAll(partitionValue string) ([]string, error)
- func (mdbop *MockIDbOperations) GetVersionLatest(partitionValue string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbOperationsService ¶
type DbOperationsService struct {
// contains filtered or unexported fields
}
func NewDbOperationsService ¶
func NewDbOperationsService(dbConnection dbconnection.DbConnection, config config.ServiceConfig) *DbOperationsService
func (*DbOperationsService) GetMetaData ¶
func (*DbOperationsService) GetPackages ¶
func (dbo *DbOperationsService) GetPackages(partitionValue string, sortValue string) (*models.ProductDetails, error)
func (*DbOperationsService) GetRelatedProducts ¶
func (dbo *DbOperationsService) GetRelatedProducts(partitionValue string) (*models.RelatedProducts, error)
func (*DbOperationsService) GetVersionAll ¶
func (dbo *DbOperationsService) GetVersionAll(partitionValue string) ([]string, error)
func (*DbOperationsService) GetVersionLatest ¶
func (dbo *DbOperationsService) GetVersionLatest(partitionValue string) (string, error)
type IDbOperations ¶
type IDbOperations interface { GetPackages(partitionValue string, sortValue string) (*models.ProductDetails, error) GetVersionAll(partitionValue string) ([]string, error) GetMetaData(partitionValue string, sortValue string, platform string, platformVersion string, architecture string) (*models.MetaData, error) GetVersionLatest(partitionValue string) (string, error) GetRelatedProducts(partitionValue string) (*models.RelatedProducts, error) }
type IDynamoDBOps ¶
type IDynamoDBOps interface { GetItem(input *dynamodb.GetItemInput) (*dynamodb.GetItemOutput, error) Scan(input *dynamodb.ScanInput) (*dynamodb.ScanOutput, error) }
type MockIDbOperations ¶
type MockIDbOperations struct { GetPackagesfunc func(partitionValue string, sortValue string) (*models.ProductDetails, error) GetVersionAllfunc func(partitionValue string) ([]string, error) GetMetaDatafunc func(partitionValue string, sortValue string, platform string, platformVersion string, architecture string) (*models.MetaData, error) GetVersionLatestfunc func(partitionValue string) (string, error) GetRelatedProductsfunc func(partitionValue string) (*models.RelatedProducts, error) }
func (*MockIDbOperations) GetMetaData ¶
func (*MockIDbOperations) GetPackages ¶
func (mdbop *MockIDbOperations) GetPackages(partitionValue string, sortValue string) (*models.ProductDetails, error)
func (*MockIDbOperations) GetRelatedProducts ¶
func (mdbop *MockIDbOperations) GetRelatedProducts(partitionValue string) (*models.RelatedProducts, error)
func (*MockIDbOperations) GetVersionAll ¶
func (mdbop *MockIDbOperations) GetVersionAll(partitionValue string) ([]string, error)
func (*MockIDbOperations) GetVersionLatest ¶
func (mdbop *MockIDbOperations) GetVersionLatest(partitionValue string) (string, error)
Click to show internal directories.
Click to hide internal directories.