Documentation ¶
Index ¶
- type Attachment
- type Information
- type LegacyStorage
- func (s *LegacyStorage) FindMessageByTickerID(id int) ([]Message, error)
- func (s *LegacyStorage) FindSetting(name string) (Setting, error)
- func (s *LegacyStorage) FindTickers() ([]Ticker, error)
- func (s *LegacyStorage) FindUploads() ([]Upload, error)
- func (s *LegacyStorage) FindUsers() ([]User, error)
- type Location
- type Mastodon
- type Message
- type Migration
- type Setting
- type Telegram
- type TelegramMeta
- type Ticker
- type Tweet
- type Upload
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Information ¶
type LegacyStorage ¶
type LegacyStorage struct {
// contains filtered or unexported fields
}
func NewLegacyStorage ¶
func NewLegacyStorage(db *storm.DB) *LegacyStorage
func (*LegacyStorage) FindMessageByTickerID ¶
func (s *LegacyStorage) FindMessageByTickerID(id int) ([]Message, error)
func (*LegacyStorage) FindSetting ¶
func (s *LegacyStorage) FindSetting(name string) (Setting, error)
func (*LegacyStorage) FindTickers ¶
func (s *LegacyStorage) FindTickers() ([]Ticker, error)
func (*LegacyStorage) FindUploads ¶
func (s *LegacyStorage) FindUploads() ([]Upload, error)
func (*LegacyStorage) FindUsers ¶
func (s *LegacyStorage) FindUsers() ([]User, error)
type Message ¶
type Message struct { ID int `storm:"id,increment"` CreationDate time.Time `storm:"index"` Ticker int `storm:"index"` Text string Attachments []Attachment GeoInformation geojson.FeatureCollection Tweet Tweet Telegram TelegramMeta Mastodon mastodon.Status }
type Migration ¶
type Migration struct {
// contains filtered or unexported fields
}
func NewMigration ¶
func NewMigration(oldStorage *LegacyStorage, newStorage *storage.SqlStorage) *Migration
type TelegramMeta ¶
Click to show internal directories.
Click to hide internal directories.