Documentation ¶
Index ¶
- Constants
- Variables
- func ExportToJSON(path, filename string, value interface{}) error
- func ExportToPostgresql(db *sqlx.DB, blockID int, value string) error
- func ExportToRedisStream(rdb *redis.Client, key, symbol string, value map[string]interface{}) error
- func GetRedisDbClient() *redis.Client
- func PostgreSQLConnection() (*sqlx.DB, error)
- type Exporter
Constants ¶
View Source
const ( // JSONFILE ... JSONFILE = "json" // KAFKA ... KAFKA = "kafka" // POSTGRESQL ... POSTGRESQL = "postgresql" // REDIS ... REDIS = "redis" )
View Source
const (
// TXS_STREAM_KEY ...
TXS_STREAM_KEY = "txs"
)
View Source
const (
// TXS_TOPIC_KEY ...
TXS_TOPIC_KEY = "txs"
)
Variables ¶
View Source
var ( // ErrRedisDbCheckConn ... ErrRedisDbCheckConn = errors.NewError("Redis: Fail to check connection") // ErrRedisXADDStreamID ... ErrRedisXADDStreamID = errors.NewError("ERR The ID specified in XADD is equal or smaller than the target stream top item") )
Functions ¶
func ExportToJSON ¶
ExportToJSON ...
func ExportToPostgresql ¶
ExportToPostgresql ...
func ExportToRedisStream ¶
ExportToRedisStream ...
func PostgreSQLConnection ¶
PostgreSQLConnection func for connection to PostgreSQL database.
Types ¶
Click to show internal directories.
Click to hide internal directories.