Discover Packages
github.com/duanqy/community
domain
setting
mysql
package
Version:
v1.60.0
Opens a new window with list of versions in this module.
Published: Mar 29, 2018
License: AGPL-3.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Scope
func (s Scope) Get(area, path string) (value string, err error)
func (s Scope) GetUser(orgID, userID, area, path string) (value string, err error)
func (s Scope) Set(area, json string) (err error)
func (s Scope) SetUser(orgID, userID, area, json string) (err error)
Scope provides data access to MySQL.
Get fetches a configuration JSON element from the config table.
GetUser fetches a configuration JSON element from the userconfig table for a given orgid/userid combination.
Errors return the empty string. A blank path returns the whole JSON object, as JSON.
Set writes a configuration JSON element to the config table.
SetUser writes a configuration JSON element to the userconfig table for the current user.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.