Documentation
¶
Index ¶
- Variables
- type AppServices
- func (a *AppServices) KVDelete(botUserID, prefix, id string) error
- func (a *AppServices) KVGet(botUserID, prefix, id string, ref interface{}) error
- func (a *AppServices) KVSet(botUserID, prefix, id string, ref interface{}) (bool, error)
- func (a *AppServices) Subscribe(actingUserID string, sub *apps.Subscription) error
- func (a *AppServices) Unsubscribe(actingUserID string, sub *apps.Subscription) error
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotABot = errors.New("not a bot")
Functions ¶
This section is empty.
Types ¶
type AppServices ¶
type AppServices struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*AppServices) KVDelete ¶
func (a *AppServices) KVDelete(botUserID, prefix, id string) error
func (*AppServices) KVGet ¶
func (a *AppServices) KVGet(botUserID, prefix, id string, ref interface{}) error
func (*AppServices) KVSet ¶
func (a *AppServices) KVSet(botUserID, prefix, id string, ref interface{}) (bool, error)
TODO use raw byte API: for now all JSON is re-encoded to use api.Mattermost API
func (*AppServices) Subscribe ¶
func (a *AppServices) Subscribe(actingUserID string, sub *apps.Subscription) error
func (*AppServices) Unsubscribe ¶
func (a *AppServices) Unsubscribe(actingUserID string, sub *apps.Subscription) error
type Service ¶
type Service interface {
Subscribe(actingUserID string, _ *apps.Subscription) error
Unsubscribe(actingUserID string, _ *apps.Subscription) error
KVSet(botUserID, prefix, id string, ref interface{}) (bool, error)
KVGet(botUserID, prefix, id string, ref interface{}) error
KVDelete(botUserID, prefix, id string) error
}
Click to show internal directories.
Click to hide internal directories.