Documentation ¶
Index ¶
- Constants
- func New(config *viper.Viper) (store.Store, error)
- func NewSQLMessageStore(sqlStore *Store) store.MessageStore
- func NewSQLRouteStore(sqlStore *Store) store.RouteStore
- func Plugin(config *viper.Viper) (store.Store, error)
- type MessageStore
- func (ms *MessageStore) Get(id string) store.Channel
- func (ms *MessageStore) GetByIds(ids []string) store.Channel
- func (ms *MessageStore) GetByProviderAndMessageID(provider, providerMessageID string) store.Channel
- func (ms *MessageStore) Save(message *model.Message) store.Channel
- func (ms *MessageStore) Search(params map[string]interface{}) store.Channel
- func (ms *MessageStore) Update(message *model.Message) store.Channel
- type RouteStore
- type Store
Constants ¶
View Source
const SQLMessageTable = `` /* 871-byte string literal not displayed */
View Source
const SQLRouteTable = `` /* 443-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func NewSQLMessageStore ¶
func NewSQLMessageStore(sqlStore *Store) store.MessageStore
func NewSQLRouteStore ¶
func NewSQLRouteStore(sqlStore *Store) store.RouteStore
Types ¶
type MessageStore ¶
type MessageStore struct {
*Store
}
func (*MessageStore) GetByProviderAndMessageID ¶
func (ms *MessageStore) GetByProviderAndMessageID(provider, providerMessageID string) store.Channel
type RouteStore ¶
type RouteStore struct {
*Store
}
func (*RouteStore) GetAll ¶
func (rs *RouteStore) GetAll() store.Channel
Click to show internal directories.
Click to hide internal directories.