Documentation ¶
Index ¶
- Variables
- func NewAddonHandler(store ClientCredentialsStore, config *AddonConfig) http.Handler
- func NewRequestDecoder(store ClientCredentialsStore) operator.Decoder
- func NewSender(store ClientCredentialsStore, hostname string) operator.Sender
- type AddonConfig
- type Client
- type ClientConfig
- type ClientCredentials
- type ClientCredentialsStore
- type Clienter
- type Item
- type Message
- type MessageOptions
- type Payload
- type Room
- type RoomNotification
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultScopes = []string{"send_message", "send_notification", "view_group"}
Functions ¶
func NewAddonHandler ¶
func NewAddonHandler(store ClientCredentialsStore, config *AddonConfig) http.Handler
func NewRequestDecoder ¶
func NewRequestDecoder(store ClientCredentialsStore) operator.Decoder
Types ¶
type AddonConfig ¶
type Client ¶
type ClientConfig ¶
type ClientConfig struct { Hostname string Token string Credentials *ClientCredentials Scopes []string }
func (*ClientConfig) ID ¶
func (c *ClientConfig) ID() string
func (*ClientConfig) Secret ¶
func (c *ClientConfig) Secret() string
type ClientCredentials ¶
type ClientCredentialsStore ¶
type ClientCredentialsStore interface { Create(*ClientCredentials) error GetByOAuthID(string) (Clienter, error) }
func NewSQLStore ¶
func NewSQLStore(db *sql.DB, hostname string) ClientCredentialsStore
type MessageOptions ¶
type RoomNotification ¶
type RoomNotification struct { *MessageOptions Message string `json:"message"` MessageFormat string `json:"message_format"` RoomID int64 `json:"-"` }
Click to show internal directories.
Click to hide internal directories.