database

package
v0.0.0-...-163d862 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTable

func BuildTable() bool

BuildTable - Create sync table

func CleanUp

func CleanUp() bool

CleanUp - Drops/Delete the "older" table and creates afresh.

func CloseConnection

func CloseConnection()

CloseConnection - Close DB Connection

func GetPendingAzureContent

func GetPendingAzureContent() map[int]map[string]string

GetPendingAzureContent - Get container:blob mapping with pending download from Microsoft Azure

func GetPendingContainer

func GetPendingContainer() []string

GetPendingContainer - Get container with pending download

func GetPendingS3Content

func GetPendingS3Content() map[int]map[string]string

GetPendingS3Content - Get container:blob mapping with pending upload to Amazon S3

func InitConnection

func InitConnection() *sql.DB

InitConnection - Initialize DB Connection

func InsertInContainer

func InsertInContainer(container string) bool

InsertInContainer - Insert new entry into the containers table

func ResetLiveContainer

func ResetLiveContainer()

ResetLiveContainer - Reset Container to 0 with live status

func SetAzureFlag

func SetAzureFlag(containerName string, blobName string, statusCode int, errorMessage string)

SetAzureFlag - Set Flag in Sync Table w.r.t. Azure

func SetS3Flag

func SetS3Flag(containerName string, blobName string, statusCode int, errorMessage string)

SetS3Flag - Set Flag in Sync Table w.r.t. S3

Types

This section is empty.

Jump to

Keyboard shortcuts

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