Documentation ¶
Index ¶
- func GetExtension(extensionID string) models.ExtensionModel
- func GetExtensionFromName(extensionName string) models.ExtensionModel
- func GetExtensionJSON(extensionID string) (map[string]interface{}, error)
- func GetFuncPermissions(userID string) []string
- func GetLicense(extensionID string) (models.License, error)
- func GetObjPermissions(userID string) []string
- func GetServer(serverID string) models.ServerModel
- func GetServerKey(userID string, serverID string) (string, string, string, models.ServerKey)
- func GetUser(userID string) models.UserModel
- func GetUserData(serverID string, extensionID string, userID string) (models.ServerModel, models.ExtensionModel, map[string]string)
- func GetUserIDFromLimanToken(tokenID string) string
- func GetUserIDFromToken(tokenID string) string
- func GetVariables(userID string) map[string]string
- func GetWidget(widgetID string) models.Widget
- func InitDB()
- func SetExtensionDb(value string, target string, serverID string, isGlobal bool, userID string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExtension ¶
func GetExtension(extensionID string) models.ExtensionModel
GetExtension Retrieve extension from id
func GetExtensionFromName ¶
func GetExtensionFromName(extensionName string) models.ExtensionModel
GetExtensionFromName try to find extension id from it's name
func GetExtensionJSON ¶
GetExtensionJSON Get extension json file with extension id
func GetFuncPermissions ¶
GetFuncPermissions Structure of the permissions
func GetLicense ¶
GetLicense Structure of the license object
func GetObjPermissions ¶
GetObjPermissions Structure of the permissions
func GetServer ¶
func GetServer(serverID string) models.ServerModel
GetServer Retrieve server from id
func GetServerKey ¶
GetServerKey Retrieve the user key.
func GetUserData ¶
func GetUserData(serverID string, extensionID string, userID string) (models.ServerModel, models.ExtensionModel, map[string]string)
GetUserData opens the database
func GetUserIDFromLimanToken ¶
GetUserIDFromLimanToken Find token from liman token (personal access key)
func GetUserIDFromToken ¶
GetUserIDFromToken Find token from token
func GetVariables ¶
GetVariables Structure of the permissions
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.