sql

package
v0.0.0-...-df4207d Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 New

func New(config *viper.Viper) (store.Store, error)

func NewSQLMessageStore

func NewSQLMessageStore(sqlStore *Store) store.MessageStore

func NewSQLRouteStore

func NewSQLRouteStore(sqlStore *Store) store.RouteStore

func Plugin

func Plugin(config *viper.Viper) (store.Store, error)

Types

type MessageStore

type MessageStore struct {
	*Store
}

func (*MessageStore) Get

func (ms *MessageStore) Get(id string) store.Channel

func (*MessageStore) GetByIds

func (ms *MessageStore) GetByIds(ids []string) store.Channel

func (*MessageStore) GetByProviderAndMessageID

func (ms *MessageStore) GetByProviderAndMessageID(provider, providerMessageID string) store.Channel

func (*MessageStore) Save

func (ms *MessageStore) Save(message *model.Message) store.Channel

func (*MessageStore) Search

func (ms *MessageStore) Search(params map[string]interface{}) store.Channel

func (*MessageStore) Update

func (ms *MessageStore) Update(message *model.Message) store.Channel

type RouteStore

type RouteStore struct {
	*Store
}

func (*RouteStore) GetAll

func (rs *RouteStore) GetAll() store.Channel

func (*RouteStore) SaveAll

func (rs *RouteStore) SaveAll(routes []*model.Route) store.Channel

type Store

type Store struct {
	// contains filtered or unexported fields
}

func (*Store) Message

func (s *Store) Message() store.MessageStore

func (*Store) Route

func (s *Store) Route() store.RouteStore

Jump to

Keyboard shortcuts

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