Documentation ¶
Index ¶
- Constants
- func Debug(v ...interface{})
- func DebugNewline()
- func Debugf(format string, v ...interface{})
- func Debugv(v ...interface{})
- func DisableOutput()
- func Error(v ...interface{})
- func ErrorHandler(c *fiber.Ctx, code int, err error) error
- func ErrorHandlerThrow(c *fiber.Ctx, code int, err error) error
- func ErrorThrow(errMsg string)
- func ErrorThrowf(format string, v ...interface{})
- func Errorf(format string, v ...interface{})
- func Estimated(start time.Time) int
- func EstimatedPrint(start time.Time, name string, ctx ...*fiber.Ctx)
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func Initialize(appName string) (appTitle string, appVersion string, appIsProduction bool)
- func IsRollback(err error, stx *PGTx) bool
- func IsRollbackThrow(err error, stx *PGTx) bool
- func Round(n float64, m float64) float64
- func ToSize(size int) string
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
- type CSV
- type Courier
- type DataStore
- type HTTP
- type HTTPRequest
- type HTTPTransport
- type PGClient
- type PGNotify
- type PGRecord
- type PGRow
- type PGTx
- func (stx *PGTx) Commit() error
- func (stx *PGTx) Execute(query string, args ...interface{}) error
- func (stx *PGTx) ExecutePrint(query string, args ...interface{}) error
- func (stx *PGTx) FetchAll(rows *sql.Rows) (PGRecord, error)
- func (stx *PGTx) FetchOneColumn(rows *sql.Rows, columnName string) (SubSet, error)
- func (stx *PGTx) FetchRow(rows *sql.Rows) (PGRow, error)
- func (stx *PGTx) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (stx *PGTx) QueryOne(query string, args ...interface{}) (PGRow, error)
- func (stx *PGTx) QueryOnePrint(query string, args ...interface{}) (PGRow, error)
- func (stx *PGTx) QueryPrint(query string, args ...interface{}) (*sql.Rows, error)
- func (stx *PGTx) Rollback() error
- type SubSet
Constants ¶
View Source
const ( ENV = "ENV" DEBUG = "DEBUG" SENTRY_ENV = "SENTRY_ENV" SENTRY_DSN = "SENTRY_DSN" )
View Source
const ( FILE_VERSION = "VERSION" APP_NAME = "APP_NAME" APP_BU = "APP_BU" )
View Source
const ( PGHOST = "DAAS_HOST" PGPORT = "DAAS_PORT" PGUSER = "DAAS_USER" PGPASSWORD = "DAAS_PASS" PGDATABASE = "DAAS_DBNAME" PGLIFETIME = "DAAS_LIFETIME" PGMAXIDLE = "DAAS_MAXIDLE" PGMAXCONN = "DAAS_MAXCONN" )
Variables ¶
This section is empty.
Functions ¶
func DebugNewline ¶
func DebugNewline()
func DisableOutput ¶
func DisableOutput()
func ErrorHandler ¶
func ErrorHandlerThrow ¶
func ErrorThrow ¶
func ErrorThrow(errMsg string)
func ErrorThrowf ¶
func ErrorThrowf(format string, v ...interface{})
func EstimatedPrint ¶
func Initialize ¶
func IsRollback ¶
func IsRollbackThrow ¶
Types ¶
type CSV ¶
type CSV struct {
// contains filtered or unexported fields
}
func (*CSV) GetColumns ¶
func (*CSV) GetDelimiter ¶
func (*CSV) GetFilePath ¶
type DataStore ¶
type DataStore struct { AppID string CourierMap map[string]*Courier BuAPIMap map[string]bool TokenSet SubSet }
func PrepareDataStore ¶
func (*DataStore) BUCodeVerifyAPI ¶
func (*DataStore) GetCourierConfig ¶
func (*DataStore) GetCourierId ¶
func (*DataStore) SetConfigBUAllow ¶
func (*DataStore) SetConfigCourierToken ¶
type HTTP ¶
func HttpErrorPrint ¶
func HttpErrorPrintf ¶
func HttpErrorf ¶
func (*HTTP) ErrorHandlerThrow ¶
type HTTPRequest ¶
type HTTPRequest struct {
// contains filtered or unexported fields
}
func CreateClient ¶
func CreateClient(config *HTTPTransport) (*HTTPRequest, error)
func (*HTTPRequest) HeaderAdd ¶
func (e *HTTPRequest) HeaderAdd(name string, value string)
func (*HTTPRequest) HeaderClear ¶
func (e *HTTPRequest) HeaderClear()
type HTTPTransport ¶
type PGNotify ¶
type PGNotify struct {
// contains filtered or unexported fields
}
type PGTx ¶
type PGTx struct { Closed bool // contains filtered or unexported fields }
func (*PGTx) ExecutePrint ¶
func (*PGTx) FetchOneColumn ¶
func (*PGTx) QueryOnePrint ¶
func (*PGTx) QueryPrint ¶
Click to show internal directories.
Click to hide internal directories.