Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotStruct = errors.New("passed param isn't sruct type") ErrStructField = errors.New("sruct doesn't have AppPlugin interface field") ErrTmpDirPrefixUndefined = errors.New("tmpdir prefix is undefined") )
View Source
var ErrContainerUndefined = errors.New("zip container is undefined")
View Source
var PluginConfig = Configuration{}
Functions ¶
func RegisterRPCPluginServ ¶
Types ¶
type AppPlugin ¶
type AppPlugin interface { Init(common.HttpPlugin) error Destroy() IndexHandle(w http.ResponseWriter, r *http.Request, rp httprouter.Params) GetPluginAppCache(r *http.Request) string GetPluginJS(r *http.Request, es6 bool) string GetPluginDictJS(r *http.Request) string GetPluginUserSettingsJS(r *http.Request, es6 bool) string GetRenderData(r *http.Request, renderParams map[string]interface{}) TempDir() string Logger() *log.Logger FileSystem() fsIntf.FileSystem FileServer(key ...string) http.Handler App() appIntf.App AppServ() appIntf.AppServ TranslationDict(langSequence string) string FileContent(fileName string, r *http.Request, renderParams ...map[string]interface{}) ([]byte, error) FileContentHandler() http.Handler Get(url string) (*http.Response, error) CurrentUserId(r *http.Request) entity.EntityId // contains filtered or unexported methods }
AppPlugin is an interface to be implemented by every plugin
func NewAppPlugin ¶
NewAppPlugin creates AppPlugin
type Configuration ¶
func (*Configuration) Init ¶
func (c *Configuration) Init()
type RPCPluginServ ¶
type RPCPluginServ struct {
// contains filtered or unexported fields
}
func (*RPCPluginServ) GetTextResource ¶
func (srv *RPCPluginServ) GetTextResource(p *pluginIntf.GetTextResourceParams, s *string) error
Click to show internal directories.
Click to hide internal directories.