app

package
v0.0.0-...-5e8511f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2023 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoMatch = errors.New("No match")

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func (*App) Close

func (a *App) Close() error

func (*App) GetPlugin

func (a *App) GetPlugin() plugin.PluginInterface

func (*App) IFramePermissions

func (a *App) IFramePermissions() string

func (*App) Opener

func (a *App) Opener(mime types.MimeType) (string, error)

func (*App) Serve

func (a *App) Serve(user *models.User, w http.ResponseWriter, method, path string, query url.Values, headers http.Header, body io.Reader) error

type Config

type Config struct {
	Apps []string `yaml:"apps"`
}

func (*Config) CreateProvider

func (c *Config) CreateProvider(pManager *plugin.Manager, store storage.StorageProvider, prom *prometheus.Manager) (*Manager, error)

type Manager

type Manager struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewManager

func NewManager(pManager *plugin.Manager, store storage.StorageProvider, prom *prometheus.Manager, apps ...string) (*Manager, error)

func (*Manager) Apps

func (m *Manager) Apps() []string

func (*Manager) Close

func (m *Manager) Close() error

func (*Manager) GetApp

func (m *Manager) GetApp(name string) (*App, error)

func (*Manager) Openers

func (m *Manager) Openers(mime types.MimeType) map[string]string

func (*Manager) Serve

func (m *Manager) Serve(user *models.User, w http.ResponseWriter, r *http.Request)

func (*Manager) StartApp

func (m *Manager) StartApp(appname string) (*App, error)

func (*Manager) StopApp

func (m *Manager) StopApp(appname string) error

type UserClaims

type UserClaims struct {
	jwt.StandardClaims
	models.User
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL