dbconnection

package
v0.0.0-...-c12b17c Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 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 DbConectionService

type DbConectionService struct {
	AwsUtil awsutils.AwsUtils
	Config  config.ServiceConfig
}

func NewDbConnectionService

func NewDbConnectionService(awsutils awsutils.AwsUtils, config config.ServiceConfig) *DbConectionService

func (*DbConectionService) GetDbConnection

func (dbc *DbConectionService) GetDbConnection() *dynamodb.DynamoDB

type DbConnection

type DbConnection interface {
	GetDbConnection() *dynamodb.DynamoDB
}

type MockDbConnectionService

type MockDbConnectionService struct {
	GetDbConnectionfunc func() *dynamodb.DynamoDB
}

func (*MockDbConnectionService) GetDbConnection

func (mdbc *MockDbConnectionService) GetDbConnection() *dynamodb.DynamoDB

Jump to

Keyboard shortcuts

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