Documentation ¶
Index ¶
- func ConfigureInstaller(fileIn string, fileOut string, group string) error
- func CreateBrowserSession(database *gorp.DbMap, r *http.Request, user models.User) (SessionID int64, SessionNonce []byte, err error)
- func GetIP(r *http.Request) []byte
- func GetParam(urlValues url.Values, param string, regexMatcher string, defaultStr string) string
- func Login(db *gorp.DbMap, email string, password string) (user *models.User, err error)
- func Parse(t *template.Template, name string, data interface{}) string
- type DatatableParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureInstaller ¶
ConfigureInstaller configures an MSI with the required data
func CreateBrowserSession ¶
func CreateBrowserSession(database *gorp.DbMap, r *http.Request, user models.User) (SessionID int64, SessionNonce []byte, err error)
CreateBrowserSession creates a browser session object and stores it in the DB
func GetParam ¶
GetParam looks for a given parameter urlValues should be set to r.URL.Query() param is the name of the parameter regexMatcher is a regex string to ensure the string matches against, or "" for no regex
Types ¶
type DatatableParams ¶
DatatableParams sanitized parameters for SQL statements for returning info to datatables
func GetDatatableParams ¶
func GetDatatableParams(urlValues url.Values, defaultSortColumn string) DatatableParams
GetDatatableParams given query parameters, it finds the values relevant to the datatable and sets the response struct with those values
Click to show internal directories.
Click to hide internal directories.