notif

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: MPL-2.0, MPL-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdhocReq string = `` /* 37254-byte string literal not displayed */
View Source
var AdhocStatus string = `` /* 37213-byte string literal not displayed */
View Source
var DynamicAccess string = `` /* 35840-byte string literal not displayed */
View Source
var ResetPassword string = `` /* 37136-byte string literal not displayed */
View Source
var SecurityAlertTemplate string = `` /* 38532-byte string literal not displayed */

////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////// //////////// Template for Security Alert /////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////

View Source
var Store adapter

Store is the package state variable which contains database connections

Functions

func CheckAndFireSecurityRule

func CheckAndFireSecurityRule(orgID, constName, entityValue string)

CheckAndFireSecurityRule when called based on constName queries database to see if there is a rule that has been enabled and matches situation. If true, it should also perform actions according to rule. Currently only hardcoded and email and dashboard notifications are supported.

func GetPendingNotif

func GetPendingNotif(w http.ResponseWriter, r *http.Request)

func InitStore

func InitStore(state *global.State)

InitStore initialises package state

func InitStoreMock

func InitStoreMock() *notifMock

InitStoreMock will init mock state of this package

func ResolveNotif

func ResolveNotif(w http.ResponseWriter, r *http.Request)

func SendErrorReport

func SendErrorReport(err error, desc string)

Log and send error report This function should be called in case of severe error resulting from bug in software itself

Types

This section is empty.

Jump to

Keyboard shortcuts

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