Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileStorage ¶
type FileStorage struct {
FilePath string
}
func (*FileStorage) ReadAll ¶
func (fs *FileStorage) ReadAll() ([]string, error)
type MongoDBStorage ¶
type MongoDBStorage struct {
Collection *mongo.Collection
}
func (*MongoDBStorage) ReadAll ¶
func (ms *MongoDBStorage) ReadAll() ([]string, error)
func (*MongoDBStorage) Save ¶
func (ms *MongoDBStorage) Save(data string) error
type PostgresStorage ¶
type PostgresStorage struct {
ConnStr string
}
func (*PostgresStorage) ReadAll ¶
func (ps *PostgresStorage) ReadAll() ([]string, error)
func (*PostgresStorage) Save ¶
func (ps *PostgresStorage) Save(data string) error
Click to show internal directories.
Click to hide internal directories.