Documentation ¶
Index ¶
- Variables
- func ChangeStateGandalf(client *gorm.DB) (err error)
- func ChangeStateTenant(client *gorm.DB) (err error)
- func ExtractToken(r *http.Request) string
- func GenerateHash() string
- func GetJwtKey() []byte
- func GetState(client *gorm.DB) (bool, error)
- func InitAPIGlobals(s *net.Shoset, dbC *database.DatabaseConnection)
- func RespondWithError(w http.ResponseWriter, code int, message string)
- func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Shoset *net.Shoset DatabaseConnection *database.DatabaseConnection )
Functions ¶
func ChangeStateGandalf ¶
func ChangeStateTenant ¶
func ExtractToken ¶
func GenerateHash ¶
func GenerateHash() string
func InitAPIGlobals ¶
func InitAPIGlobals(s *net.Shoset, dbC *database.DatabaseConnection)
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, code int, message string)
func RespondWithJSON ¶
func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.