Versions in this module Expand all Collapse all v0 v0.15.0 Jul 16, 2016 GO-2021-0086 GO-2021-0086: Cross-site scripting in github.com/documize/community v0.14.2 Jul 11, 2016 GO-2021-0086 GO-2021-0086: Cross-site scripting in github.com/documize/community v0.14.1 Jul 10, 2016 GO-2021-0086 GO-2021-0086: Cross-site scripting in github.com/documize/community Changes in this version + const SecretReplacement + var ErrNoSecrets = errors.New("no secrets in database") + func Callback(section string, w http.ResponseWriter, r *http.Request) error + func Command(section string, ctx *Context, w http.ResponseWriter, r *http.Request) bool + func List() map[string]Provider + func Refresh(section string, ctx *Context, config, data string) (string, bool) + func Register(name string, p Provider) + func Render(section string, ctx *Context, config, data string) (string, bool) + func WriteEmpty(w http.ResponseWriter) + func WriteError(w http.ResponseWriter, section string, err error) + func WriteForbidden(w http.ResponseWriter) + func WriteJSON(w http.ResponseWriter, v interface{}) + func WriteMarshalError(w http.ResponseWriter, err error) + func WriteMessage(w http.ResponseWriter, section, msg string) + func WriteString(w http.ResponseWriter, data string) + type Context struct + OrgID string + UserID string + func NewContext(orgid, userid string) *Context + func (c *Context) GetSecrets(JSONpath string) string + func (c *Context) MarshalSecrets(sec interface{}) error + func (c *Context) SaveSecrets(JSONobj string) error + func (c *Context) UnmarshalSecrets(v interface{}) error + type Provider interface + Command func(ctx *Context, w http.ResponseWriter, r *http.Request) + Meta func() TypeMeta + Refresh func(ctx *Context, config, data string) string + Render func(ctx *Context, config, data string) string + type TypeMeta struct + Callback func(http.ResponseWriter, *http.Request) error + ContentType string + Description string + ID string + Order int + Preview bool + Title string + func GetSectionMeta() []TypeMeta + func (t *TypeMeta) ConfigHandle() string