Documentation
¶
Index ¶
- func Hashkey(globalNamespace string, appID apps.AppID, userID, appNamespace, key string) (string, error)
- func ParseHashkey(key string) (globalNamespace string, appID apps.AppID, userID, appNamespace, idhash string, ...)
- func SortApps(appsMap map[apps.AppID]apps.App) []apps.App
- type AppKVStore
- type AppStore
- type ManifestStore
- type OAuth2Store
- type Service
- type SessionStore
- type SubscriptionStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseHashkey ¶ added in v1.0.0
Types ¶
type AppKVStore ¶ added in v0.3.0
type AppKVStore interface {
Set(_ apps.AppID, actingUserID, prefix, id string, data []byte) (bool, error)
Get(_ apps.AppID, actingUserID, prefix, id string) ([]byte, error)
Delete(_ apps.AppID, actingUserID, prefix, id string) error
List(_ *incoming.Request, _ apps.AppID, actingUserID, namespace string, processf func(key string) error) error
}
type ManifestStore ¶
type ManifestStore interface {
config.Configurable
StoreLocal(*incoming.Request, apps.Manifest) error
Get(apps.AppID) (*apps.Manifest, error)
GetFromS3(appID apps.AppID, version apps.AppVersion) (*apps.Manifest, error)
AsMap() map[apps.AppID]apps.Manifest
DeleteLocal(*incoming.Request, apps.AppID) error
}
type OAuth2Store ¶ added in v0.3.0
type Service ¶
type Service struct {
App AppStore
Subscription SubscriptionStore
Manifest ManifestStore
AppKV AppKVStore
OAuth2 OAuth2Store
Session SessionStore
// contains filtered or unexported fields
}
type SessionStore ¶ added in v1.0.0
type SessionStore interface {
Get(_ apps.AppID, userID string) (*model.Session, error)
ListForApp(apps.AppID) ([]*model.Session, error)
ListForUser(_ *incoming.Request, userID string) ([]*model.Session, error)
Save(_ apps.AppID, userID string, session *model.Session) error
Delete(_ apps.AppID, userID string) error
DeleteAllForApp(*incoming.Request, apps.AppID) error
DeleteAllForUser(_ *incoming.Request, userID string) error
}
type SubscriptionStore ¶
type SubscriptionStore interface {
Get(_ apps.Subject, teamID, channelID string) ([]apps.Subscription, error)
List() ([]apps.Subscription, error)
ListByUserID(_ apps.AppID, userID string) ([]apps.Subscription, error)
Save(apps.Subscription) error
Delete(apps.Subscription) error
}
Click to show internal directories.
Click to hide internal directories.