postgresql

package
v0.0.0-...-1d0e1de Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func GetExtensionJSON(extensionID string) (map[string]interface{}, error)

GetExtensionJSON Get extension json file with extension id

func GetFuncPermissions

func GetFuncPermissions(userID string) []string

GetFuncPermissions Structure of the permissions

func GetLicense

func GetLicense(extensionID string) (models.License, error)

GetLicense Structure of the license object

func GetObjPermissions

func GetObjPermissions(userID string) []string

GetObjPermissions Structure of the permissions

func GetServer

func GetServer(serverID string) models.ServerModel

GetServer Retrieve server from id

func GetServerKey

func GetServerKey(userID string, serverID string) (string, string, string, models.ServerKey)

GetServerKey Retrieve the user key.

func GetUser

func GetUser(userID string) models.UserModel

GetUser Retrieve user data from id

func GetUserData

func GetUserData(serverID string, extensionID string, userID string) (models.ServerModel, models.ExtensionModel, map[string]string)

GetUserData opens the database

func GetUserIDFromLimanToken

func GetUserIDFromLimanToken(tokenID string) string

GetUserIDFromLimanToken Find token from liman token (personal access key)

func GetUserIDFromToken

func GetUserIDFromToken(tokenID string) string

GetUserIDFromToken Find token from token

func GetVariables

func GetVariables(userID string) map[string]string

GetVariables Structure of the permissions

func GetWidget

func GetWidget(widgetID string) models.Widget

func InitDB

func InitDB()

InitDB initialize database

func SetExtensionDb

func SetExtensionDb(value string, target string, serverID string, isGlobal bool, userID string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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