Documentation
¶
Index ¶
- func BlockByAccountOwnerShip(c *gin.Context, rowAccount string) (blocked bool)
- func BlockByDeveloperModeOff(c *gin.Context) (blocked bool)
- func BlockByRoleAccess(c *gin.Context, featureId string) (blocked bool)
- func BroadcastLog(id string, data string)
- func BroadcastTime(date string, timeString string, t time.Time)
- func CheckAccountOwnerShip(c *gin.Context, rowAccount string) (blocked bool)
- func CheckRoleAccess(c *gin.Context, featureId string) (result bool)
- func CheckRoleAccessByRole(userId string, roleId string, featureId string) (result bool)
- func Dump(values ...interface{})
- func FlushAllLogs() (err error)
- func FlushLog(deviceId string) (err error)
- func GetDataFormat(c *gin.Context) model.DataFormat
- func GetPartialRedirect(controller string, action string, uriParams map[string]string) string
- func GetProtocol(c *gin.Context) (schema string)
- func GetRedirect(controller string, action string, uriParams map[string]string) string
- func GetSessionAccount(c *gin.Context) (account model.Account, err error)
- func GetSessionAccountRole(c *gin.Context) (accountRole model.AccountRole, err error)
- func GetSessionAuthToken(c *gin.Context) (token string)
- func GetSessionDateCreated(c *gin.Context) (created string)
- func GetSessionRole(c *gin.Context) (role model.Role, err error)
- func GetSessionUser(c *gin.Context) (user model.User, err error)
- func Log(desc string, message string)
- func LogHex(uniqueId string, desc string, message string)
- func LogWithoutQuotes(uniqueId string, desc string, message string)
- func ParseSocketClientStatus(meta app.WebSocketConnectionMeta) (value socketViews.ClientStatus, ok bool)
- func Print(logInfo string)
- func Println(logInfo string)
- func StartTransaction(c *gin.Context) (t *model.Transaction, err error)
- func StartTransactionWithUser(user model.User) (t *model.Transaction, err error)
- func StoreDataFormat(c *gin.Context, language string, timeZone string, dateFormat string)
- func WriteLog(uniqueId string, message string) (err error)
- type RequestContext
- type ServerResponse
- type ServerResponseStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockByAccountOwnerShip ¶
func BlockByDeveloperModeOff ¶
func BroadcastLog ¶
func CheckAccountOwnerShip ¶
func CheckRoleAccessByRole ¶
func FlushAllLogs ¶
func FlushAllLogs() (err error)
func GetDataFormat ¶
func GetDataFormat(c *gin.Context) model.DataFormat
func GetPartialRedirect ¶
func GetProtocol ¶
func GetRedirect ¶
func GetSessionAccountRole ¶
func GetSessionAccountRole(c *gin.Context) (accountRole model.AccountRole, err error)
func GetSessionAuthToken ¶
func GetSessionDateCreated ¶
func LogWithoutQuotes ¶
Logs out a hex dump and should be the most common thing you want to use in a TCP connection log
func ParseSocketClientStatus ¶
func ParseSocketClientStatus(meta app.WebSocketConnectionMeta) (value socketViews.ClientStatus, ok bool)
func StartTransaction ¶
func StartTransaction(c *gin.Context) (t *model.Transaction, err error)
func StartTransactionWithUser ¶
func StartTransactionWithUser(user model.User) (t *model.Transaction, err error)
func StoreDataFormat ¶
Types ¶
type RequestContext ¶
func PassContext ¶
func PassContext(c *gin.Context) RequestContext
type ServerResponseStruct ¶
type ServerResponseStruct struct {
CompletedSuccessfully bool
Context RequestContext
Redirect string
GlobalMessage string
GlobalMessageType string
Trace error
TransactionId string
ViewModel interface{}
}
func ServerResponseToStruct ¶
func ServerResponseToStruct(completedSuccessfully bool, context RequestContext, redirect string, globalMessage string, globalMessageType string, trace error, transactionId string, viewModel interface{}) ServerResponseStruct
Click to show internal directories.
Click to hide internal directories.