Documentation ¶
Index ¶
- func Deflatten(data map[string]any) map[string]any
- func Flatten(data map[string][]any) map[string]any
- func RegisterPlugin(name string, pluginInitializer PluginInitializer)
- func Update(properties map[string][]any, req micropub.RequestUpdate) (map[string][]any, error)
- type Plugin
- type PluginInitializer
- type PluginWebUtilities
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Flatten ¶
Flatten takes a Microformats map and flattens all arrays with a single value to one element.
func RegisterPlugin ¶
func RegisterPlugin(name string, pluginInitializer PluginInitializer)
Types ¶
type Plugin ¶
type Plugin interface { GetWebHandler(utils *PluginWebUtilities) (string, http.HandlerFunc) GetAction() (string, func() error) GetDailyCron() func() error }
type PluginInitializer ¶
type PluginWebUtilities ¶
type PluginWebUtilities struct {
// contains filtered or unexported fields
}
func (*PluginWebUtilities) ErrorHTML ¶
func (u *PluginWebUtilities) ErrorHTML(w http.ResponseWriter, r *http.Request, code int, reqErr error)
func (*PluginWebUtilities) ErrorJSON ¶
func (u *PluginWebUtilities) ErrorJSON(w http.ResponseWriter, code int, err, errDescription string)
func (*PluginWebUtilities) JSON ¶
func (u *PluginWebUtilities) JSON(w http.ResponseWriter, code int, data interface{})
Click to show internal directories.
Click to hide internal directories.