forwarderDb

package
v0.0.0-...-e479ca6 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup()

func GetDbConnection

func GetDbConnection() (*pgx.Conn, error)

func UpdateLastInMessage

func UpdateLastInMessage(companyId int, errorMessage string, forwardStatsId int, hourNow int) error

func UpdateUsage

func UpdateUsage(companyId int, incQueue1 int, incQueue2 int, incQueue3 int, lost int, forwarded int, errorMessage string, totalIncomingMessagesDelta int) (int, int, int, error)

Types

type CompanyInfo

type CompanyInfo struct {
	ForwardUrl []string
	Secret     string
}

func GetUserData

func GetUserData(companyId int) (*CompanyInfo, error)

type OneJsonRow

type OneJsonRow struct {
	Dest string `json:"dest"`
}

Jump to

Keyboard shortcuts

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