Documentation
¶
Index ¶
- Variables
- func CodeBlock(in string) string
- func DialogError(w http.ResponseWriter, err error)
- func GetPluginURL(client *pluginapi.Client) string
- func JSON(ref interface{}) string
- func JSONBlock(ref interface{}) string
- func SlackAttachmentError(w http.ResponseWriter, err error)
- type KVStore
- type LogAPI
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func DialogError ¶ added in v0.0.23
func DialogError(w http.ResponseWriter, err error)
func GetPluginURL ¶
GetPluginURL returns a url like siteURL/plugins/pluginID based on the information from the client. If any error happens in the process, a empty string is returned.
func SlackAttachmentError ¶
func SlackAttachmentError(w http.ResponseWriter, err error)
Types ¶
type KVStore ¶
type KVStore interface {
Set(key string, value interface{}, options ...pluginapi.KVSetOption) (bool, error)
SetWithExpiry(key string, value interface{}, ttl time.Duration) error
CompareAndSet(key string, oldValue, value interface{}) (bool, error)
CompareAndDelete(key string, oldValue interface{}) (bool, error)
Get(key string, o interface{}) error
Delete(key string) error
DeleteAll() error
ListKeys(page, count int, options ...pluginapi.ListKeysOption) ([]string, error)
}
Click to show internal directories.
Click to hide internal directories.