Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSSOOrigins ¶ added in v0.1.33
func GetSSOOrigins() []string
GetSSOOrigins returns configured SSO origins
func GetVersion ¶ added in v0.1.99
Types ¶
type Action ¶
type Action struct {
ID string `json:"_id"`
ConcurentCallsLimit int `json:"concurentCallsLimit,omitempty"`
Multi bool `json:"multi"`
Type string `json:"type,omitempty"`
}
Action is a small representation of action in config
type CommonSettings ¶ added in v0.1.99
ServerSettings used to hold several server settings
type HTTPHook ¶
type HTTPHook struct {
URI string `json:"uri"`
Method string `json:"method"`
ConcurentCallsLimit int `json:"concurentCallsLimit,omitempty"`
}
HTTPHook is a small representation of HttpHooks in config
type Hooks ¶
type Hooks struct {
WillCreate string `json:"willCreate,omitempty"`
DidCreate string `json:"didCreate,omitempty"`
WillSave string `json:"willSave,omitempty"`
DidSave string `json:"didSave,omitempty"`
WillRemove string `json:"willRemove,omitempty"`
DidRemove string `json:"didRemove,omitempty"`
DidRead string `json:"didRead,omitempty"`
DidStart string `json:"didStart,omitempty"`
Migration []*MigrationTask `json:"migration,omitempty"`
}
Hooks holds JavaScript code of hooks
type MigrationTask ¶ added in v0.1.98
MigrationTask describes scheme migration scripts
type ServerSettings ¶ added in v0.1.33
type ServerSettings struct {
SSOOrigins []string `json:"ssoOrigins,omitempty"`
}
ServerSettings used to hold several server settings
type Store ¶
type Store struct {
Version int `json:"version"` // Scheme version
Store string `json:"store"` // just name of the store
Type string `json:"type"`
Props interface{} `json:"props"` // just dummy for props needed when HTTPAPI enabled
Actions []Action `json:"actions,omitempty"`
StoreActions []Action `json:"storeActions,omitempty"`
HTTPHooks []HTTPHook `json:"httpHooks,omitempty"`
HTTPAPI bool `json:"httpApi,omitempty"`
StoreLifeCycle Hooks `json:"storeLifeCycle,omitempty"`
Entries map[string]interface{} `json:"entries,omitempty"`
}
Store is a small representation of store in config
Click to show internal directories.
Click to hide internal directories.