Documentation ¶
Index ¶
- func CheckAuthenticatedSession(next http.HandlerFunc, cookieStore *sessions.CookieStore, cookieName string) http.HandlerFunc
- func ExtractQueryParamAsInt(r *http.Request, name string, defaultValue int) int
- func ExtractQueryParamAsString(r *http.Request, name string, defaultValue string) string
- func GetTemplates(viewFS *embed.FS, patterns []string, filenames []string) (*template.Template, error)
- func InterfaceArrayToStringArray(t []interface{}) []string
- func InterfaceToString(v interface{}) string
- func JustJSONMarshal(v interface{}) string
- func LoadYAML(filename string, configuration interface{}) error
- func MetaValueStringExtractor(v interface{}) string
- func ParseToDatabaseDate(layout string, v string) interface{}
- func RespondBadRequestJSON(w http.ResponseWriter, payload interface{})
- func RespondInternalServerError(w http.ResponseWriter, payload interface{})
- func RespondNotFoundJSON(w http.ResponseWriter, payload interface{})
- func RespondNotImplementedJSON(w http.ResponseWriter, payload interface{})
- func RespondOkayJSON(w http.ResponseWriter, payload interface{})
- func RespondStatusCodeWithJSON(w http.ResponseWriter, statusCode int, payload interface{})
- func RowScanWrap(r *sql.Row, dest ...interface{}) error
- func RowsScanWrap(r *sql.Rows, dest ...interface{}) error
- func TransactionQuery(db *sqlx.DB, query string, args ...interface{}) (sql.Result, error)
- func TxTransactionQuery(tx *sqlx.Tx, query string, args ...interface{}) (sql.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAuthenticatedSession ¶
func CheckAuthenticatedSession(next http.HandlerFunc, cookieStore *sessions.CookieStore, cookieName string) http.HandlerFunc
CheckAuthenticatedSession ...
func ExtractQueryParamAsInt ¶
ExtractQueryParamAsInt ...
func ExtractQueryParamAsString ¶
ExtractQueryParamAsString ...
func GetTemplates ¶
func GetTemplates(viewFS *embed.FS, patterns []string, filenames []string) (*template.Template, error)
GetTemplates ...
func InterfaceArrayToStringArray ¶
func InterfaceArrayToStringArray(t []interface{}) []string
InterfaceArrayToStringArray ...
func MetaValueStringExtractor ¶
func MetaValueStringExtractor(v interface{}) string
MetaValueStringExtractor ...
func ParseToDatabaseDate ¶
ParseToDatabaseDate a helper method to parse string to time layout example `02/01/2006`
func RespondBadRequestJSON ¶
func RespondBadRequestJSON(w http.ResponseWriter, payload interface{})
RespondBadRequestJSON ...
func RespondInternalServerError ¶
func RespondInternalServerError(w http.ResponseWriter, payload interface{})
RespondInternalServerError ...
func RespondNotFoundJSON ¶
func RespondNotFoundJSON(w http.ResponseWriter, payload interface{})
RespondNotFoundJSON ...
func RespondNotImplementedJSON ¶
func RespondNotImplementedJSON(w http.ResponseWriter, payload interface{})
RespondNotImplementedJSON ...
func RespondOkayJSON ¶
func RespondOkayJSON(w http.ResponseWriter, payload interface{})
RespondOkayJSON ...
func RespondStatusCodeWithJSON ¶
func RespondStatusCodeWithJSON(w http.ResponseWriter, statusCode int, payload interface{})
RespondStatusCodeWithJSON ...
func TransactionQuery ¶
TransactionQuery ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.