Documentation
¶
Index ¶
- Constants
- func WriteCallError(w http.ResponseWriter, statusCode int, err error)
- type Proxy
- func (p *Proxy) AddBuiltinUpstream(appID apps.AppID, up upstream.Upstream)
- func (p *Proxy) AddLocalManifest(cc *apps.Context, sessionToken apps.SessionToken, m *apps.Manifest) (md.MD, error)
- func (p *Proxy) AppIsEnabled(app *apps.App) bool
- func (p *Proxy) Call(debugSessionToken apps.SessionToken, c *apps.CallRequest) *apps.CallResponse
- func (p *Proxy) DisableApp(cc *apps.Context, app *apps.App) (md.MD, error)
- func (p *Proxy) EnableApp(cc *apps.Context, app *apps.App) (md.MD, error)
- func (p *Proxy) GetAsset(appID apps.AppID, path string) (io.ReadCloser, int, error)
- func (p *Proxy) GetBindings(debugSessionToken apps.SessionToken, cc *apps.Context) ([]*apps.Binding, error)
- func (p *Proxy) GetInstalledApp(appID apps.AppID) (*apps.App, error)
- func (p *Proxy) GetInstalledApps() []*apps.App
- func (p *Proxy) GetListedApps(filter string) []*apps.ListedApp
- func (p *Proxy) GetManifest(appID apps.AppID) (*apps.Manifest, error)
- func (p *Proxy) InstallApp(cc *apps.Context, sessionToken apps.SessionToken, in *apps.InInstallApp) (*apps.App, md.MD, error)
- func (p *Proxy) Notify(cc *apps.Context, subj apps.Subject) error
- func (p *Proxy) SynchronizeInstalledApps() error
- func (p *Proxy) UninstallApp(appID apps.AppID, sessionToken apps.SessionToken, actingUserID string) error
- type Service
Constants ¶
View Source
const PrevVersion = "prev_version"
Variables ¶
This section is empty.
Functions ¶
func WriteCallError ¶
func WriteCallError(w http.ResponseWriter, statusCode int, err error)
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Proxy) AddBuiltinUpstream ¶
func (*Proxy) AddLocalManifest ¶
func (*Proxy) Call ¶
func (p *Proxy) Call(debugSessionToken apps.SessionToken, c *apps.CallRequest) *apps.CallResponse
func (*Proxy) DisableApp ¶
func (*Proxy) GetBindings ¶
func (p *Proxy) GetBindings(debugSessionToken apps.SessionToken, cc *apps.Context) ([]*apps.Binding, error)
GetBindings fetches bindings for all apps. We should avoid unnecessary logging here as this route is called very often.
func (*Proxy) GetInstalledApp ¶
func (*Proxy) GetInstalledApps ¶
func (*Proxy) InstallApp ¶
func (*Proxy) SynchronizeInstalledApps ¶
SynchronizeInstalledApps synchronizes installed apps with known manifests, performing OnVersionChanged call on the App as needed.
func (*Proxy) UninstallApp ¶
type Service ¶
type Service interface {
Call(apps.SessionToken, *apps.CallRequest) *apps.CallResponse
GetAsset(apps.AppID, string) (io.ReadCloser, int, error)
GetBindings(apps.SessionToken, *apps.Context) ([]*apps.Binding, error)
Notify(cc *apps.Context, subj apps.Subject) error
AddLocalManifest(*apps.Context, apps.SessionToken, *apps.Manifest) (md.MD, error)
AppIsEnabled(app *apps.App) bool
DisableApp(cc *apps.Context, app *apps.App) (md.MD, error)
EnableApp(cc *apps.Context, app *apps.App) (md.MD, error)
GetInstalledApp(appID apps.AppID) (*apps.App, error)
GetInstalledApps() []*apps.App
GetListedApps(filter string) []*apps.ListedApp
GetManifest(appID apps.AppID) (*apps.Manifest, error)
InstallApp(*apps.Context, apps.SessionToken, *apps.InInstallApp) (*apps.App, md.MD, error)
SynchronizeInstalledApps() error
UninstallApp(appID apps.AppID, sessionToken apps.SessionToken, actingUserID string) error
AddBuiltinUpstream(apps.AppID, upstream.Upstream)
}
Click to show internal directories.
Click to hide internal directories.