store

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeManifest

func DecodeManifest(data []byte) (*apps.Manifest, error)

func SortApps

func SortApps(appsMap map[apps.AppID]*apps.App) []*apps.App

Types

type AppStore

type AppStore interface {
	config.Configurable

	AsMap() map[apps.AppID]*apps.App
	Delete(apps.AppID) error
	Get(appID apps.AppID) (*apps.App, error)
	InitBuiltin(...*apps.App)
	Save(app *apps.App) error
}

type ManifestStore

type ManifestStore interface {
	config.Configurable

	AsMap() map[apps.AppID]*apps.Manifest
	DeleteLocal(apps.AppID) error
	Get(apps.AppID) (*apps.Manifest, error)
	InitGlobal(_ aws.Client, bucket string) error
	StoreLocal(*apps.Manifest) error
}

type Service

type Service struct {
	App          AppStore
	Subscription SubscriptionStore
	Manifest     ManifestStore
	// contains filtered or unexported fields
}

func NewService

func NewService(mm *pluginapi.Client, conf config.Service) *Service

type SubscriptionStore

type SubscriptionStore interface {
	Get(subject apps.Subject, teamID, channelID string) ([]*apps.Subscription, error)
	Save(sub *apps.Subscription) error
	Delete(*apps.Subscription) error
}

Jump to

Keyboard shortcuts

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