app

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertData

func InsertData(pgConf PostgresConfig, file string) error

func ListAndDownloadFiles

func ListAndDownloadFiles(bucket string, folder string, credsFile string) error

listFiles lists objects within specified bucket.

func ParseFiles

func ParseFiles(folder string, output string, format string) error

func ValidateDownloadParameters

func ValidateDownloadParameters(bucketUrl string, folder string) error

func ValidateParseParameters

func ValidateParseParameters(folder string, output string, format string) error

Types

type PostgresConfig

type PostgresConfig struct {
	Host     string
	Port     int
	User     string
	Password string
	Dbname   string
}

func ValidateInsertParameters

func ValidateInsertParameters(host string, port int, user string, pwd string, db string) (PostgresConfig, error)

type VideoStat

type VideoStat struct {
	IP       string
	Filesize int64
	CsBytes  int64
	ScyBytes int64
	// contains filtered or unexported fields
}

type VideoStats

type VideoStats struct {
	IPs           []string
	TotalFilesize int64
	TotalCsBytes  int64
	TotalScyBytes int64
	Count         int
}

Jump to

Keyboard shortcuts

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