Documentation ¶
Index ¶
- Variables
- func HttpSrvBasePath(uri string) string
- func ModTheme(name string) map[string]string
- func Save() error
- func Setup() error
- func SpecGet(modname string) *api.Spec
- func SpecNodeModel(modname, modelName string) (*api.NodeModel, error)
- func SpecRefresh(modname string)
- func SpecSet(spec *api.Spec)
- func SpecSrvRefresh(srvname string)
- func SpecTermModel(modname, modelName string) (*api.TermModel, error)
- func ThemeConfigFetchString(name, key string, args ...string) string
- type ConfigCommon
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Prefix string Config ConfigCommon AppName = "hooto-press" Version = "0.8.0.rc.3" Release = "1" SysVersionSign = "" CaptchaConfig = captcha4g.DefaultConfig User = &user.User{ Uid: "2048", Gid: "2048", Username: "action", HomeDir: "/home/action", } SysConfigList = api.SysConfigList{} RouterBasepathDefault = "/" RouterBasepathDefaults = []string{} Languages = []*api.LangEntry{} )
View Source
var ( StorageServiceEndpoint = "/hp/s2/deft" Perms = []iamapi.AppPrivilege{ { Privilege: "frontend.list", Desc: "Frontend - List", Roles: []uint32{100, 1000}, }, { Privilege: "frontend.read", Desc: "Frontend - Read", Roles: []uint32{100, 1000}, }, { Privilege: "editor.list", Desc: "Editor - List", Roles: []uint32{}, }, { Privilege: "editor.write", Desc: "Editor - Write", Roles: []uint32{}, }, { Privilege: "editor.read", Desc: "Editor - Read", Roles: []uint32{}, }, { Privilege: "sys.admin", Desc: "System Admin", Roles: []uint32{}, }, } )
View Source
var (
Modules = map[string]*api.Spec{}
)
Functions ¶
func HttpSrvBasePath ¶
func SpecRefresh ¶
func SpecRefresh(modname string)
func SpecSrvRefresh ¶
func SpecSrvRefresh(srvname string)
func ThemeConfigFetchString ¶
Types ¶
type ConfigCommon ¶
type ConfigCommon struct { UrlBasePath string `json:"url_base_path,omitempty" toml:"url_base_path,omitempty"` ModuleDir string `json:"module_dir,omitempty" toml:"module_dir,omitempty"` InstanceID string `json:"instance_id" toml:"instance_id"` AppInstance iamapi.AppInstance `json:"app_instance" toml:"app_instance"` AppTitle string `json:"app_title,omitempty" toml:"app_title,omitempty"` HttpPort uint16 `json:"http_port" toml:"http_port"` IamServiceUrl string `json:"iam_service_url" toml:"iam_service_url"` IamServiceUrlFrontend string `json:"iam_service_url_frontend" toml:"iam_service_url_frontend"` IoConnectors connect.MultiConnOptions `json:"io_connectors" toml:"io_connectors"` DataCache *storage.Options `json:"data_cache" toml:"data_cache"` RunMode string `json:"run_mode,omitempty" toml:"run_mode,omitempty"` ExtUpDatabases connect.MultiConnOptions `json:"ext_up_databases,omitempty" toml:"ext_up_databases,omitempty"` ExpModuleInits []string `json:"exp_module_inits,omitempty" toml:"exp_module_inits,omitempty"` ExpGdocPaths []string `json:"exp_gdoc_paths,omitempty" toml:"exp_gdoc_paths,omitempty"` }
Click to show internal directories.
Click to hide internal directories.