Documentation ¶
Index ¶
- Constants
- func Debug(db *sql.DB, defaultdisp string, debug string, debuglevel string, ...)
- func EmailLog(db *sql.DB, email EmailLogType) error
- func Error(db *sql.DB, programid string, program string, msg string)
- func ErrorNP(db *sql.DB, programid string, program string, msg string)
- func GetCoreSettingValue(db *sql.DB, key string) string
- func GetCurrentHr() string
- func Getdb(dbtype string, dbdtl Database) (*sql.DB, error)
- func InsertTicketLog(db *sql.DB, ticket TicketLog) error
- func InsertTicketLog2(db *sql.DB, ticket TicketLog) (error, int)
- func InsertUploadMaster(db *sql.DB, uploadMasterRec UploadMaster) (int, error)
- func LogError(logtype string, msg interface{})
- func RecordRunDetails(db *sql.DB, id int, runType string, programName string, count int, cmt string) (int, error)
- func ReturnNil(s string) interface{}
- func UpdateTicketLog(db *sql.DB, ticket TicketLog) error
- func UpdateTicketLog2(db *sql.DB, ticket TicketLog) error
- type Behaviour
- type Database
- type EmailLogType
- type TicketLog
- type UploadMaster
Constants ¶
const ( Statement = "1" Detail = "2" Panic = "P" NoPanic = "NP" INSERT = "INSERT" UPDATE = "UPDATE" )
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(db *sql.DB, defaultdisp string, debug string, debuglevel string, pdebuglevel string, programid string, program string, msg string)
-------------------------------------------------------------------- function to insert debug message into db --------------------------------------------------------------------
func EmailLog ¶
func EmailLog(db *sql.DB, email EmailLogType) error
--------------------------------------------------------------------------------- Function to manage record for email log table ---------------------------------------------------------------------------------
func Error ¶
-------------------------------------------------------------------- function to insert debug message into db --------------------------------------------------------------------
func ErrorNP ¶
-------------------------------------------------------------------- function to insert debug message into db --------------------------------------------------------------------
func GetCoreSettingValue ¶
-------------------------------------------------------------------- function to get value from core setting for a given Key --------------------------------------------------------------------
func GetCurrentHr ¶
func GetCurrentHr() string
-------------------------------------------------------------------- function to get system hour --------------------------------------------------------------------
func Getdb ¶
-------------------------------------------------------------------- function establishes DB connection --------------------------------------------------------------------
func InsertTicketLog ¶
--------------------------------------------------------------------------------- Function inserts record into ticket log table ---------------------------------------------------------------------------------
func InsertTicketLog2 ¶
--------------------------------------------------------------------------------- Function inserts record into ticket log table with return of id ---------------------------------------------------------------------------------
func InsertUploadMaster ¶
func InsertUploadMaster(db *sql.DB, uploadMasterRec UploadMaster) (int, error)
--------------------------------------------------------------------------------- Function inserts and return upload master ID ---------------------------------------------------------------------------------
func LogError ¶
func LogError(logtype string, msg interface{})
-------------------------------------------------------------------- function to log error --------------------------------------------------------------------
func RecordRunDetails ¶
func RecordRunDetails(db *sql.DB, id int, runType string, programName string, count int, cmt string) (int, error)
-------------------------------------------------------------------- function to record program start and end time details into db --------------------------------------------------------------------
func UpdateTicketLog ¶
--------------------------------------------------------------------------------- Function inserts record into ticket log table ---------------------------------------------------------------------------------
func UpdateTicketLog2 ¶
--------------------------------------------------------------------------------- Function inserts record into ticket log table with spawned, processed ---------------------------------------------------------------------------------
Types ¶
type EmailLogType ¶
type TicketLog ¶
type TicketLog struct { Id string ClientId string Description string Source string SummaryUser string TicketStatus string ZohoDepartmentId string UploadDataMasterId int AssigneeId string Spawned bool Processed bool STCode string CreatedBy string CreatedProgram string UpdatedBy string UpdatedProgram string }