Versions in this module Expand all Collapse all v0 v0.0.3 Jul 8, 2022 v0.0.2 Jul 7, 2022 v0.0.1 Jun 23, 2022 Changes in this version + func AppendBinding(bb []apps.Binding, b *apps.Binding) []apps.Binding + type App struct + Icon string + Logger utils.Logger + Router *mux.Router + func NewApp(r *mux.Router, log utils.Logger) *App + func (a *App) HandleCall(p string, h HandlerFunc) + func (a *App) HandleCommand(command Command) + func (a *App) WithManifest(m apps.Manifest) *App + func (a *App) WithStatic(staticFS fs.FS) *App + func (a App) WithIcon(iconPath string) *App + type AppConfig struct + PonosURL string + Token string + func (a AppConfig) Validate() error + type CallRequest struct + App App + GoContext context.Context + func (creq CallRequest) AppProxyURL(paths ...string) string + func (creq CallRequest) AppendDebugJSON(in []apps.Field) []apps.Field + func (creq CallRequest) AsActingUser() *appclient.Client + func (creq CallRequest) AsBot() *appclient.Client + func (creq CallRequest) BoolValue(name string) (value, found bool) + func (creq CallRequest) DeleteAppConfig() error + func (creq CallRequest) GetAppConfig() (*AppConfig, error) + func (creq CallRequest) GetUserAccess() (*UsersAccess, error) + func (creq CallRequest) GetValue(name, defaultValue string) string + func (creq CallRequest) Respond(message string, v interface{}) apps.CallResponse + func (creq CallRequest) StoreAppConfig(cfg *AppConfig) error + func (creq CallRequest) StoreUserAccess(userID string) error + func (creq CallRequest) StringValue(name string) (string, bool) + type Command struct + BaseForm *apps.Form + BaseSubmit *apps.Call + Description string + Handler func(CallRequest) apps.CallResponse + Hint string + Icon string + Name string + func (c Command) Binding(creq CallRequest) apps.Binding + func (c Command) Form(creq CallRequest) *apps.Form + func (c Command) Path() string + func (c Command) Submit(creq CallRequest) *apps.Call + type HandlerFunc func(CallRequest) apps.CallResponse + func CallHandler(h func(CallRequest) (string, error)) HandlerFunc + func FormHandler(h func(CallRequest) (apps.Form, error)) HandlerFunc + func LookupHandler(h func(CallRequest) []apps.SelectOption) HandlerFunc + func RequireAdmin(h HandlerFunc) HandlerFunc + func RequireConnectedUsers(h HandlerFunc) HandlerFunc + type UsersAccess struct + UserIDS []string + func (ua *UsersAccess) IsAllowed(userID string) bool